joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x42e340]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x42e394]
lea ecx, [ebp - 0xa4]
xor ebx, ebx
push edi
mov dword [0x42e7f8], ebx
mov dword [0x42e7fc], ebx
mov dword [0x42e800], ebx
call fcn.004158f0
push 1
push 0x105
lea ecx, [ebp - 0xa4]
call fcn.004154cb
push dword [ebp - 0x9c]
mov byte [ebp - 0x90], 1
push dword [ebp - 0x98]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x90], bl
call fcn.0041613c
push 0x5c
lea ecx, [ebp - 0xa4]
call fcn.00415353
cmp eax, 0xffffffff
jle 0x416d58
push eax
lea ecx, [ebp - 0xa4]
call fcn.00415743
mov edi, 0x402690
mov ecx, edi
call fcn.00415c83
push eax
push edi
lea ecx, [ebp - 0xa4]
call fcn.004161cd
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416e7e
push dword [ebp - 0x9c]
mov byte [ebp - 0x90], 1
push dword [ebp - 0x98]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x90], bl
call fcn.0041613c
push 0x5c
lea ecx, [ebp - 0xa4]
call fcn.00415353
cmp eax, 0xffffffff
jle 0x416dcf
push eax
lea ecx, [ebp - 0xa4]
call fcn.00415743
mov edi, 0x4026ac
mov ecx, edi
call fcn.00415c83
push eax
push edi
lea ecx, [ebp - 0xa4]
call fcn.004161cd
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416e7e
lea ecx, [ebp - 0xa4]
call fcn.00420a30
mov edi, 0x402690
mov ecx, edi
call fcn.00415c83
push eax
push edi
lea ecx, [ebp - 0xa4]
call fcn.004161cd
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416e7e
lea ecx, [ebp - 0xa4]
call fcn.0041669d
mov ecx, edi
call fcn.00415c83
push eax
push edi
lea ecx, [ebp - 0xa4]
call fcn.004161cd
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416e7e
mov esi, 0x800401f8
mov dword [ebp - 0xa4], 0x4010f8
lea ecx, [ebp - 0xa4]
call fcn.0041585e
jmp 0x416ed8
push dword [ebp - 0x98]
call fcn.00416b9b
push 0x42e7f8
push 0x4060d4
push 1
push ebx
push 0x4060f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0xa4], 0x4010f8
lea ecx, [ebp - 0xa4]
test eax, eax
jns 0x416ebc
mov esi, 0x80080001
jmp 0x416e77
call fcn.0041585e
cmp dword [0x42e7f8], ebx
jne 0x416ed0
mov esi, 0x800401f8
jmp 0x416ed8
push esi
call fcn.00416a18
mov esi, eax
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a920
leave
ret 4

Function at 0x420a30
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
push 0
push 0x105
mov esi, ecx
call fcn.004154cb
mov ecx, dword [esi + 0xc]
test eax, eax
jns 0x420a4f
xor edx, edx
mov word [ecx], dx
jmp 0x420a6a
push ecx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jns 0x420a70
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov word [eax], cx
mov eax, 0x80004005
and dword [esi + 0x10], 0
pop esi
ret
mov ecx, esi
call fcn.0041613c
xor eax, eax
pop esi
ret
Function at 0x428abe
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x400
xor ebx, ebx
add edi, edi
cmp edi, 0x7fffffff
ja 0x428b1d
push ebx
push edi
mov ecx, 0x42e9e0
call fcn.004154cb
mov edx, dword [0x42e9e8]
lea eax, [ebp + 0x10]
mov ecx, dword [0x42e9ec]
push eax
push dword [ebp + 0xc]
mov byte [0x42e9f4], 1
call fcn.0040e2f5
mov ecx, 0x42e9e0
mov byte [0x42e9f4], bl
mov esi, eax
call fcn.0041613c
cmp esi, 0x8007007a
je 0x428ace
push ecx
push edi
call fcn.0042a124
mov edx, dword [0x42e9ec]
test edx, edx
jne 0x428b3e
mov eax, dword [0x42e034]
mov byte [eax], bl
mov eax, ebx
mov dword [0x42e038], eax
jmp 0x428b5f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x428b43
sub ecx, esi
sar ecx, 1
push ecx
push ecx
push edx
call fcn.0042a51c
mov eax, dword [0x42e038]
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
push ecx
push eax
push dword [0x42e034]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428b82
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x4d4
mov eax, 0x42cc79
call fcn.0042bade
mov eax, ecx
mov dword [ebp - 0x4c4], eax
push 0x2b
pop ecx
mov dword [ebp - 0x4e0], eax
lea edi, [ebp - 0xc0]
lea eax, [ebp - 0x4d4]
mov esi, 0x40d1c0
push eax
rep movsd dword es:[edi], dword [esi]
push 8
xor edi, edi
lea eax, [ebp - 0xc0]
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x428d5a
mov dword [ebp - 0x4cc], 0x200
mov esi, edi
mov dword [ebp - 0x4d0], edi
cmp ebx, 0x103
je 0x428d4e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x4cc], 0x200
push eax
lea eax, [ebp - 0x4c0]
push eax
push esi
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
mov dword [ebp - 0x4dc], ebx
test ebx, ebx
jne 0x428d19
lea eax, [ebp - 0x4c0]
push eax
push esi
push 0x40d26c
push dword [ebp - 0x4c4]
call fcn.00428abe
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x428c55
sub ecx, edx
lea edx, [ebp - 0x4c0]
lea eax, [edx + 2]
sar ecx, 1
mov dword [ebp - 0x4c8], eax
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x428c73
sub edx, dword [ebp - 0x4c8]
lea eax, [ecx + 2]
sar edx, 1
xor ecx, ecx
add eax, edx
push 2
pop edx
mov dword [ebp - 0x4d8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ad56
pop ecx
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x4c8], eax
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push 0x40d280
push dword [ebp - 0x4d8]
push eax
call fcn.0042b6b1
mov edx, dword [ebp - 0x4c8]
mov ecx, dword [ebp - 0x4c4]
push 1
call fcn.00428d6d
add esp, 0x18
push dword [ebp - 0x4c8]
call fcn.0042a934
or dword [ebp - 4], 0xffffffff
pop ecx
jmp 0x428d42
cmp ebx, 5
jne 0x428d26
push esi
push 0x40d290
jmp 0x428d34
cmp ebx, 0xea
jne 0x428d42
push esi
push 0x40d2d8
push dword [ebp - 0x4c4]
call fcn.00428abe
add esp, 0xc
inc esi
mov dword [ebp - 0x4d0], esi
jmp 0x428be9
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.0042ba54
ret
Function at 0x429227
Capabilities:
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x42ccf1
call fcn.0042baa2
mov esi, ecx
lea ecx, [ebp - 0x90]
xor ebx, ebx
call fcn.00429bfc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push ebx
push ebx
push 2
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push eax
push 3
push 0xc0000000
push dword [esi + 0xc]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa4], 0xc
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x94], edi
cmp edi, 0xffffffff
jne 0x4292c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
mov ebx, eax
mov edi, ecx
mov dword [ebp - 0x94], edi
test ebx, ebx
jle 0x4292bb
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x429391
mov ecx, dword [0x42e7e0]
mov eax, dword [ecx]
mov esi, dword [eax + 0x88]
lea eax, [ebp - 0x98]
push eax
push ecx
mov ecx, esi
call dword [0x42f314]
call esi
mov ebx, eax
test ebx, ebx
js 0x429386
mov ecx, dword [ebp - 0x98]
xor edx, edx
mov eax, ecx
cmp word [ecx], dx
je 0x429302
add eax, 2
cmp word [eax], dx
jne 0x4292fa
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00429daa
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x429324
mov ecx, dword [ebp - 0x28]
inc edx
call fcn.00415afb
push 6
pop ecx
lea esi, [ebp - 0x40]
xor eax, eax
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.00429c91
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x429352
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x94]
xor ecx, ecx
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push dword [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x429386
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x429386
movzx ebx, bx
or ebx, 0x80070000
test edi, edi
je 0x429391
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00429c91
lea ecx, [ebp - 0x90]
call fcn.00429bd2
mov eax, ebx
call fcn.0042ba3f
ret

Function at 0x42aaa9
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x42aae6
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x42aadf
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x42aaeb
add edx, 0x28
cmp edx, esi
jne 0x42aad0
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x42aae8

Function at 0x42b049
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b088
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b088
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b088
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b088
cmp dword [ecx + 0x74], 0xe
jbe 0x42b088
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
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 + 0x41d008], 0x8088405
inc edx
mov dword [ebx + 0x41d008], 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 [0x41d018]
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 [0x41d018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41d018], ax
mov esp, ebp
pop ebp
ret

Function at 0x403534
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41e034], 0
je 0x403595
cmp word [0x41e208], 0xd7b2
jne 0x40355d
cmp dword [0x41e210], 0
jbe 0x40355d
mov eax, 0x41e204
call dword [0x41e220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41d084
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
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
pop edx
ret
cmp byte [0x41d024], 0
jne 0x4035b1
push 0
push 0x41d07c
push 0x41d084
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 [0x41e035], 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 0x4043a8
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 0x40440e
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 0x4043f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404415
lea eax, [ebp - 0x10]
call fcn.0040372c
ret

Function at 0x40548c
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 0x405597
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040372c
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_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x405581
mov eax, dword [ebp - 8]
mov edx, 0x73
call fcn.00403b84
push 0
lea eax, [ebp - 0x10]
push eax
push 0x73
mov eax, dword [ebp - 8]
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x40550f
cmp edx, dword [eax - 4]
jb 0x405514
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4055ac
call fcn.00403b3c
test eax, eax
jne 0x405549
mov eax, dword [ebp - 8]
call fcn.0040372c
jmp 0x405581
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, 0x4055b8
call fcn.00403b3c
mov ecx, eax
sub ecx, 1
jno 0x405568
call fcn.00402f1c
sub ecx, 0x50
jno 0x405572
call fcn.00402f1c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, 0x51
call fcn.00403afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40559e
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x4055bc
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 0x40568a
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 0x40566c
lea eax, [ebp - 0x10]
mov edx, 0x186a0
call fcn.00403b84
push 0
lea eax, [ebp - 0x14]
push eax
push 0x186a0
lea eax, [ebp - 0x10]
call fcn.00403af4
mov edx, 1
dec edx
test eax, eax
je 0x405636
cmp edx, dword [eax - 4]
jb 0x40563b
call fcn.00402f14
inc edx
lea eax, [eax + edx - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x40566c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 0x10]
mov eax, 0x4056a0
call fcn.00403b3c
test eax, eax
jle 0x40566c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405691
lea eax, [ebp - 0x10]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x4056b8
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 0x405752
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 0x405737
mov ecx, dword [ebp + 8]
test ecx, ecx
jns 0x405723
call fcn.00402f14
mov edx, dword [ebp + 0xc]
test edx, edx
jns 0x40572f
call fcn.00402f14
mov eax, dword [ebp - 8]
call fcn.00405c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405759
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret
Function at 0x4057dc
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 0x405996
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038a4
cmp eax, 2
jl 0x405963
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x4059ac
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 0x40592a
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 0x4058e2
mov eax, dword [ebp - 0x10]
mov edx, 0x4059b8
call fcn.004039f0
je 0x405912
mov eax, dword [ebp - 0x10]
mov edx, 0x4059c4
call fcn.004039f0
je 0x405912
lea eax, [ebp - 0x15c]
mov ecx, 0x4059d0
mov edx, dword [ebp - 0xc]
call fcn.004038f0
mov eax, dword [ebp - 0x15c]
call fcn.004057dc
jmp 0x405912
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x405912
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 0x405861
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 0x405963
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 0x40599d
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 0x4059d4
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 0x405a20
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 0x405a27
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x405b30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
xor edx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x405c5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 4]
call fcn.0040520c
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 4]
call fcn.004037c4
xor edx, edx
mov eax, 2
call fcn.00404cf0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], 0x128
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00404d10
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
jmp 0x405c27
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.0040388c
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x13c]
call fcn.0040520c
mov eax, dword [ebp - 0x13c]
mov edx, dword [ebp - 4]
call fcn.004039f0
jne 0x405c10
push 0
mov eax, dword [ebp - 0x12c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
call fcn.00404d30
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x405bb8
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 0x405c63
lea eax, [ebp - 0x140]
mov edx, 3
call fcn.00403750
lea eax, [ebp - 4]
call fcn.0040372c
ret