joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0d90
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x507e66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x54d544]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004f57eb
cmp dword [0x56dca4], ebx
je 0x4d0e00
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004f3368
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x54d544]
push ebp
push edi
mov edi, 1
mov dword [0x56dca4], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4d0e29
mov dword [esp + 0x20], ebx
jmp 0x4d0e30
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004f7995
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004f34a1
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4d0e8e
mov dword [esp + 0x14], ebx
jmp 0x4d0e95
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x4d0eaf
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x4d0ea9
cmp eax, 2
jne 0x4d0eaf
mov dword [esp + 0x18], edi
jmp 0x4d0eb3
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4d0ec1
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004f4e21
mov edi, eax
cmp edi, ebx
jne 0x4d0ed1
xor eax, eax
jmp 0x4d0ed4
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4d0efc
mov ecx, esi
call fcn.004f7995
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x4d0f14
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x56dca4], 0
test eax, eax
je 0x4d0f3d
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4d0f3d
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004f3368
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004f3368
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4d7820
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4d7869
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4d7ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5085a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d7890
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d7910
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d7910
lea ecx, [esi + 0xc]
call fcn.004f32f3
lea ecx, [esi + 0x10]
call fcn.004f32f3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d8ea0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d8ea0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d8ea0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004f3368
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004f3368
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d9090
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4d90f6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4d90f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4d90d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4f57eb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f5823
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f380f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f37e7
jmp 0x4f582f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f705c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f709e
call fcn.004fd82c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f709e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f7095
xor eax, eax
jmp 0x4f70a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f70ac
pop edi
pop esi
pop ebx
ret 4

Function at 0x4fdd5c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4fdd8a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fdda8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fdcc2
jmp 0x4fdda8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fdda8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fdcc2
test edi, edi
mov eax, edi
jne 0x4fdd92
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x500af4
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x500b1c
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x500b2d
push 2
call edi
test ax, ax
jge 0x500b2d
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004f4e21
cmp dword [esi + 0x30], ebx
jne 0x500c07
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004f4e21
cmp eax, dword [esp + 0x34]
jne 0x500c07
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x500ba3
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x500be8
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x500c07
cmp eax, 0x205
je 0x500c07
cmp eax, 0x201
je 0x500c07
cmp eax, 0x204
je 0x500c07
cmp eax, ebx
jne 0x500bce
cmp dword [esp + 0x1c], 0x1b
je 0x500c07
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x590404]
jbe 0x500bfd
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x500b60
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x404a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebp, dword [ecx]
jle 0x404ac6
mov ebx, 0x7bfc270f
jo 0x404a38
mov ch, 0xaa

Function at 0x406010
Capabilities:
Initialize winsock library

Disassembly:
dec dword [ebp - 0x1976b]
call dword [edx + 0x6a]
jle 0x405f98
call dword [sym.imp.WSOCK32.dll_WSAStartup]
adc eax, sym.imp.WSOCK32.dll_WSAStartup
test eax, eax
mov bh, byte [ecx]
mov ax, word [ebp + 0x7fffe68]
cmp al, 2
jne 0x405fd0
js 0x405f8e
mov ah, byte [eax - 0x7c]
leave
insd dword es:[edi], dx
sbb ecx, dword [ebx - 0x17ad03ab]
bound eax, qword [eax + eax]
pop eax
inc ebp
cld
push eax
call fcn.0040a430
mov esp, 0xc03308e2
mov esp, ebp
pop ebp
ret
xchg byte [sym.imp.WSOCK32.dll_WSACleanup], dl
mov eax, 0x11
mov esp, ebp
pop ebp
ret
push ebp
mov edi, edi
mov al, byte [ebp + 0x1d]
push edi
test al, 0x9d
je 0x405fad
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 0x6713
push es
xchg dword [ecx], edx
add dword [eax], eax
push ebp
ret 0xe12

Function at 0x406840
Capabilities:
Encode data using xor

Disassembly:
push ebx
nop
push ebp
mov ebp, esp
xor ebx, 0xe9000210
inc esp
push 0x5756085d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0xa34069ef
mov ecx, dword [ebx + 0x10]
or cl, 0xf
test byte [ecx - 0x10ffffff], cl
jne 0x406875
mov ecx, dword [esi + 0x14]
lea esi, [eax]
sub byte [ecx + 0x7c], dl
push eax
call dword [0x9840c1a4]
adc eax, 0x9840c1a4
rol dword [eax - 0x68], 0x38
xlatb
cmp bh, dl
dec dword [edi]
test dword [eax - 0x74ffffff], esp
xor eax, 0x40c166
push dword [edi]
ror byte cs:[edi], 0xc3
mov bl, 0x7a
add byte [eax], al
call esi
add eax, 0xe3fc80
cmp eax, 0xbbeb3
rdmsr
push ecx
add dword [0x209a8b00], ecx
mov esi, dword [ebx + 0x24]
mov eax, edi
jecxz 0x406873
jne 0x4068bd
pop edi
pop esi
mov eax, 0xd20b23b4
pop ebx
mov ecx, dword [esi]
pop ebp
ret 8
mov byte [ebx + 4], 0xb9
add dword [eax], eax
add byte [edi - 0x7b], ah
test byte [ecx - 0x20b7b], 0xff
mov dword [eax - 0x10], edx
std
mov al, 0xff
mov dword [ebp + 0x6d29fe48], eax
mov dword [ebp - 0x6b7b0c], ecx
xor ecx, dword [edx]
jl 0x4068e7
invalid
xor eax, eax
jmp 0x40686c

Function at 0x40add0
Capabilities:
Encode data using xor

Disassembly:
fmul dword [ebx - 0x74b103bb]
jl 0x40ad98
ror byte [ebx + 0x55], 1
or al, 0xa
fmul dword [eax + 0x28bff59]
test eax, eax
mov dword [ebp - 4], eax
inc ebp
cld
jne 0xb440ac10
pop edi
scasb al, byte es:[edi]
pop ebx
mov ebp, dword [esi + 0x5d]
invalid
pop ebx
jge 0x40ad56
pop ebp
ret 0x10
add dh, byte [eax + edx - 1]
adc eax, 0x14c12c
mov dword [eax], 0x273f
daa
add byte [eax], al
xor eax, eax
jge 0x40ad6e
mov eax, dword [ebp + 0x14]
dec edx
dec ebp
adc ah, bh
and eax, 0x1951500c
call 0x40add0
add esp, 0xc
pop ebp
xor dword [edi - 0x6f6fbf70], esp
nop
nop
nop
nop
nop
out dx, eax
sbb dword [eax - 0x74aa6f89], edx
in al, dx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x10
jae 0x40ada4
salc
adc eax, sym.imp.MSVCRT.dll__errno
invalid
Function at 0x402a3d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423790]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ad1
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a8e
cmp dword [ebp + 0x10], ebx
jne 0x402ac5
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a3d
test eax, eax
jne 0x402aa0
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a75
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00405ee8
cmp eax, ebx
je 0x402ad8
push ebx
push dword [0x423790]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423790], ebx
jne 0x402ace
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ace
jmp 0x402ad1
Function at 0x402e62
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e7f
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e8e
mov ebx, 0x40e888
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ea3
mov ecx, dword [0x423738]
add ecx, eax
push ecx
call fcn.0040306b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403055
test eax, eax
je 0x403000
test byte [ebp + 0x17], 0x80
je 0x402fe9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40a7f8
mov dword [ebp - 0xc], eax
call fcn.00405fc8
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40304b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ef3
mov esi, dword [ebp + 0x14]
mov edi, 0x40a888
push esi
push edi
call fcn.00403055
test eax, eax
je 0x403000
sub dword [ebp + 0x14], esi
mov dword [0x40a810], edi
mov dword [0x40a814], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40a7f8
mov dword [0x40a818], ebx
mov dword [0x40a81c], eax
call fcn.00405fe8
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fe1
mov esi, dword [0x40a818]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423794], 1
mov edi, eax
je 0x402f95
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f62
cmp dword [ebp + 0x14], 0
jne 0x402f95
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404ea6
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fd6
cmp dword [ebp + 0x10], eax
jne 0x402fbe
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fe5
cmp dword [ebp - 0x10], esi
jne 0x402fe5
add dword [ebp - 4], esi
jmp 0x402fca
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40a818]
cmp dword [ebp - 0x14], 1
jne 0x402f16
jmp 0x40304b
cmp dword [ebp + 0x14], eax
jg 0x402ee6
jmp 0x40304b
push 0xfffffffffffffffc
jmp 0x403002
push 0xfffffffffffffffe
jmp 0x403002
test edi, edi
je 0x403040
cmp dword [ebp + 0x14], esi
jge 0x402ff5
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403055
test eax, eax
jne 0x403048
push 0xfffffffffffffffd
pop eax
jmp 0x40304e
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403010
mov esi, dword [ebp + 0x14]
mov edi, 0x40a888
push esi
push edi
call fcn.00403055
test eax, eax
je 0x403000
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fe5
cmp esi, dword [ebp + 0x10]
jne 0x402fe5
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403005
jmp 0x40304b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40536c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4214e0], 0x44
push eax
xor eax, eax
push 0x4214e0
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053ab
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405435
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405829
mov edi, eax
cmp edi, 0xffffffff
je 0x405476
test byte [esp + 0x10], 1
push esi
je 0x405458
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40545e
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405467
xor eax, eax
inc eax
jmp 0x405478
test byte [esp + 0x10], 4
jne 0x405476
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40547d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040573b
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054bc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423768], eax
jmp 0x405646
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054d6
test eax, eax
je 0x4055f4
test bl, 2
je 0x4055f4
mov esi, 0x420ce0
push edi
push esi
call fcn.00405bbd
cmp dword [ebp + 8], 0
je 0x4054f5
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054fb
push edi
call fcn.00405694
cmp byte [edi], 0
jne 0x405509
cmp byte [0x420ce0], 0x5c
jne 0x405514
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055ea
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405678
cmp byte [eax], 0
je 0x40555a
cmp byte [ebp - 0x1c], 0
je 0x40555a
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405570
mov al, byte [esi + 1]
test al, al
je 0x4055c9
cmp al, 0x2e
jne 0x405570
cmp byte [esi + 2], 0
je 0x4055c9
push esi
push ebx
call fcn.00405bbd
test byte [ebp - 0x14c], 0x10
je 0x405595
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c9
push dword [ebp + 0xc]
push edi
call fcn.0040547d
jmp 0x4055c9
push dword [ebp - 4]
push edi
call fcn.00405435
test eax, eax
jne 0x4055c1
cmp dword [ebp - 4], eax
je 0x4055b9
push edi
push 0xfffffffffffffff1
call fcn.00404ea6
push 0
push edi
call fcn.00405a71
jmp 0x4055c9
inc dword [0x423768]
jmp 0x4055c9
push edi
push 0xfffffffffffffff2
call fcn.00404ea6
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405538
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055f4
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405646
cmp dword [ebp - 0xc], esi
jne 0x405608
inc dword [0x423768]
jmp 0x405646
push edi
call fcn.00405ec1
test eax, eax
je 0x405646
push edi
call fcn.0040564d
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405435
test eax, eax
jne 0x40563e
cmp dword [ebp - 4], esi
je 0x405600
push edi
push 0xfffffffffffffff1
call fcn.00404ea6
push esi
push edi
call fcn.00405a71
jmp 0x405646
push edi
push 0xffffffffffffffe5
call fcn.00404ea6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40573b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4210e0
push esi
call fcn.00405bbd
push esi
call fcn.004056e6
mov edi, eax
test edi, edi
jne 0x40575c
xor eax, eax
jmp 0x4057ae
push edi
call fcn.00405e28
test byte [0x4236f8], 0x80
je 0x405775
mov al, byte [edi]
test al, al
je 0x405758
cmp al, 0x5c
je 0x405758
sub edi, esi
jmp 0x40578d
call fcn.00405ec1
test eax, eax
je 0x405787
test byte [eax], 0x10
je 0x405758
push esi
call fcn.00405694
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405779
call fcn.0040564d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405829
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405848
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x40584e
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40587d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409384]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058c2
test edi, edi
jne 0x405888
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058bc