joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0bcc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4b0d6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x10]
mov ecx, 0x200
xor edx, edx
call fcn.00403ba0
push 0
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x4be684]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00403efc
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.0044d8c4
test eax, eax
jne 0x4b0d52
xor edx, edx
push ebp
push 0x4b0d47
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [esi + 4]
mov eax, dword [esi]
xor ecx, ecx
call fcn.00457fd8
xor ebx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00403d38
mov dword [ebp - 0x18], eax
cmp byte [ebp + 8], 0
je 0x4b0c84
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403f08
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
jmp 0x4b0ca3
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
call fcn.00403f08
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumValueA
sub eax, 1
jb 0x4b0cf1
sub eax, 0xe9
je 0x4b0cb6
sub eax, 0x19
je 0x4b0d30
jmp 0x4b0cea
mov eax, dword [ebp - 0x10]
call fcn.00403d38
cmp eax, 0x10000
jl 0x4b0ccf
call fcn.00403628
jmp 0x4b0d52
mov eax, dword [ebp - 0x10]
call fcn.00403d38
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00403ba0
jmp 0x4b0c52
call fcn.00403628
jmp 0x4b0d52
lea ecx, [ebx + 1]
mov edx, dword [esi + 4]
mov eax, dword [esi]
call fcn.00457fd8
lea eax, [ebp - 0x10]
call fcn.00403f08
mov edx, eax
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.00403ba0
lea ecx, [ebp - 0x24]
mov eax, esi
mov edx, ebx
call fcn.00464c84
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00456ef0
inc ebx
jmp 0x4b0c52
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0d4e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0d74
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403adc
ret
Function at 0x4b9980
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b9a28
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b9a40
push ebx
push 0x4b9a4c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403df8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402acc
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4b9a06
mov eax, dword [0x4bea70]
mov eax, dword [eax + 0x188]
call fcn.004b98d8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9a2f
lea eax, [ebp - 4]
call fcn.00403ab8
ret
Function at 0x4ba244
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ba42f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0044d4c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00475780
test al, al
jne 0x4ba2b1
xor eax, eax
push ebp
push 0x4ba2a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.00475ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ba2b1
push 0
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
mov eax, dword [0x4c078c]
call fcn.00403efc
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4ba2e0
mov eax, dword [0x4bea70]
mov eax, dword [eax + 0x184]
call fcn.004b98d8
push 0x80
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [0x4bf4dc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x4ba440
push 0x4ba444
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 8], eax
push 0x4b9a8c
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongA
mov dword [0x4c07b8], eax
xor eax, eax
push ebp
push 0x4ba3f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x4bea64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0044cfa0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x4ba454
call fcn.0040aa18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.0044ce88
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00403d40
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004b9980
mov dword [ebp - 0xc], eax
call fcn.004b9a50
test al, al
jne 0x4ba3d8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4ba3b6
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba3ff
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x4bb42c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4bb6e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4bea64]
mov eax, dword [eax]
mov edx, 0x4bb6fc
call fcn.0044a864
push 5
mov eax, dword [0x4bea64]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x4bb6aa
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004a1b20
lea eax, [ebp - 0x10]
call fcn.0044d418
mov eax, dword [ebp - 0x10]
call fcn.0040a28c
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0044cfa0
mov edx, dword [ebp - 0x14]
mov eax, 0x4c078c
call fcn.00403b0c
call fcn.004b9c30
lea ecx, [ebp - 0x18]
mov edx, 0x4bb710
mov eax, dword [0x4c078c]
call fcn.0044bf78
mov edx, dword [ebp - 0x18]
mov eax, 0x4c0790
call fcn.00403b0c
lea ecx, [ebp - 0x1c]
mov edx, 0x4bb720
mov eax, dword [0x4c078c]
call fcn.0044bf78
mov edx, dword [ebp - 0x1c]
mov eax, 0x4c0794
call fcn.00403b0c
push 2
push 0
push 1
mov ecx, dword [0x4c078c]
mov dl, 1
mov eax, dword [0x4720ac]
call fcn.00472398
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bb581
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.0047235c
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.00472334
cmp dword [ebp - 0xc], 0x67734d49
je 0x4bb55c
mov cl, 1
xor edx, edx
mov eax, dword [0x4c0794]
call fcn.00473328
jmp 0x4bb56b
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x4c078c]
call fcn.00473328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb588
mov eax, dword [ebp - 4]
call fcn.00402e48
ret
Function at 0x4bb848
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bb985
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
mov ecx, 0x4bb99c
mov edx, ebx
call fcn.00403d84
mov eax, dword [ebp - 0x14c]
call fcn.00403efc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4bb95f
xor eax, eax
push ebp
push 0x4bb958
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4bb9ac
lea eax, [ebp - 0x11c]
mov ecx, 5
call fcn.0040a414
test eax, eax
jne 0x4bb929
test byte [ebp - 0x148], 0x10
jne 0x4bb929
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.00403ce8
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403d84
mov esi, dword [ebp - 0x148]
test esi, 1
je 0x4bb921
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00403efc
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.00409e00
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4bb8b9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb95f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb98c
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00403adc
lea eax, [ebp - 8]
call fcn.00403ab8
ret
Function at 0x4bb9b4
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bbaaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403ab8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0044c3d0
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4bbac0
call fcn.0040aa18
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00403d84
mov eax, dword [ebp - 0x10]
call fcn.00403efc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x4bba52
test esi, 0x10
jne 0x4bba82
test esi, 1
je 0x4bba52
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 0x10]
call fcn.00403efc
push eax
call sub.kernel32.dll_SetFileAttributesA
push 1
mov eax, dword [ebp - 0x10]
call fcn.00403efc
push eax
mov eax, dword [ebp - 4]
call fcn.00403efc
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x4bba7c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00403b0c
jmp 0x4bba8f
inc edi
cmp edi, 0xa
je 0x4bba8f
inc ebx
cmp ebx, 0x3e8
jne 0x4bb9f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bbab1
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403adc
ret
Function at 0x40272c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040372c
test esi, esi
jne 0x402762
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040381c
jmp 0x402780
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402640
mov edi, eax
test esi, esi
je 0x402780
cmp dword [ebx], 0
je 0x402780
dec esi
jmp 0x402769
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bf8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x414008], 0x8088405
inc edx
mov dword [ebx + 0x414008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402e44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x414018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402edc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ebc
xor eax, eax
push ebp
push 0x402eb5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ef8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ebc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x414018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x414018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403534
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x415034], 0
je 0x403595
cmp word [0x415208], 0xd7b2
jne 0x40355d
cmp dword [0x415210], 0
jbe 0x40355d
mov eax, 0x415204
call dword [0x415220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x414084
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4035bc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x414024], 0
jne 0x4035b1
push 0
push 0x41407c
push 0x414084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036e8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004024d0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x415035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4036b0
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4043f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40445e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040388c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404448
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404465
lea eax, [ebp - 0x10]
call fcn.0040372c
ret

Function at 0x404a80
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff54
cmp byte [0x4140dc], 0
jne 0x404b52
mov byte [0x4140dc], 1
xor eax, eax
mov dword [0x4140d4], eax
mov dword [esp + 0x18], 0x94
lea eax, [esp + 0x18]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [esp + 0x1c], 3
ja 0x404ac8
cmp dword [esp + 0x1c], 3
jne 0x404b28
cmp dword [esp + 0x20], 0x33
jbe 0x404b28
mov dword [esp + 4], 9
push esp
push 0x20019
push 0
push 0x404b5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404b52
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x404b8c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x404b52
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
cmp byte [esp + 8], 0x31
jne 0x404b52
cmp byte [esp + 9], 0
jne 0x404b52
jmp 0x404b3d
push 0
push 0x404b8c
push 0x404b94
call sub.KERNEL32.DLL_GetProfileIntA
test eax, eax
je 0x404b52
mov eax, dword [0x4140d0]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4140d4], eax
add esp, 0xac
ret

Function at 0x404ddc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
and eax, 0xff
bt dword [0x4140e0], eax
jae 0x404e15
xor eax, eax
mov al, byte [ebp - 2]
add eax, 1
jno 0x404e06
call fcn.00402f1c
cmp eax, 0xff
jbe 0x404e12
call fcn.00402f14
mov byte [ebp - 2], al
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
push 0
xor eax, eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_MapVirtualKeyA
cmp eax, 0xff
jbe 0x404e36
call fcn.00402f14
push eax
mov al, byte [ebp - 1]
push eax
call sub.user32.dll_keybd_event
pop ecx
pop ebp
ret
Function at 0x4057bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x4058bf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4058a9
mov eax, dword [ebp - 8]
mov edx, 0x73
call fcn.00403bd4
push 0
lea eax, [ebp - 0x10]
push eax
push 0x73
mov eax, dword [ebp - 8]
call fcn.00403afc
mov edx, 1
dec edx
test eax, eax
je 0x405837
cmp edx, dword [eax - 4]
jb 0x40583c
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4058d4
call fcn.00403b8c
test eax, eax
jne 0x405871
mov eax, dword [ebp - 8]
call fcn.0040372c
jmp 0x4058a9
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4058e0
call fcn.00403b8c
mov ecx, eax
sub ecx, 1
jno 0x405890
call fcn.00402f1c
sub ecx, 0x50
jno 0x40589a
call fcn.00402f1c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 0x51
call fcn.00403b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4058c6
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x4058e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x4059b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_OpenFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x405994
lea eax, [ebp - 0x10]
mov edx, 0x186a0
call fcn.00403bd4
push 0
lea eax, [ebp - 0x14]
push eax
push 0x186a0
lea eax, [ebp - 0x10]
call fcn.00403afc
mov edx, 1
dec edx
test eax, eax
je 0x40595e
cmp edx, dword [eax - 4]
jb 0x405963
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x405994
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x10]
mov eax, 0x4059c8
call fcn.00403b8c
test eax, eax
jle 0x405994
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059b9
lea eax, [ebp - 0x10]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x4059e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
mov eax, dword [ebp - 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405a7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 9]
xor al, 1
neg al
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00403aa4
push eax
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
and al, byte [ebp + 0x10]
je 0x405a5f
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x405a4b
call fcn.00402f14
mov edx, dword [ebp + 0xc]
test edx, edx
jns 0x405a57
call fcn.00402f14
mov eax, dword [ebp - 8]
call fcn.00405fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a81
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret
Function at 0x405b04
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
xor edx, edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405cbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038a4
cmp eax, 2
jl 0x405c8b
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x405cd4
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x154]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405c52
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.0040388c
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004038f0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.0040388c
test byte [ebp - 0x150], 0x10
je 0x405c0a
mov eax, dword [ebp - 0x10]
mov edx, 0x405ce0
call fcn.004039f0
je 0x405c3a
mov eax, dword [ebp - 0x10]
mov edx, 0x405cec
call fcn.004039f0
je 0x405c3a
lea eax, [ebp - 0x15c]
mov ecx, 0x405cf8
mov edx, dword [ebp - 0xc]
call fcn.004038f0
mov eax, dword [ebp - 0x15c]
call fcn.00405b04
jmp 0x405c3a
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
jne 0x405c3a
push 0x20
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x405b89
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
test eax, eax
jne 0x405c8b
push 0x20
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cc5
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00403750
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403750
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x405cfc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405d48
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d4f
lea eax, [ebp - 4]
call fcn.0040372c
ret