joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404840
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4220e8]
jne 0x40484a
repz ret
jmp fcn.00409a42

Function at 0x409765
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004052c9
and dword [ebp - 4], 0
cmp dword [0x424194], 0
mov ebx, eax
jne 0x409816
push 0x401a2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4098c7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a20
push edi
call esi
test eax, eax
je 0x4098c7
push eax
call fcn.00405257
mov dword [esp], 0x401a10
push edi
mov dword [0x424194], eax
call esi
push eax
call fcn.00405257
mov dword [esp], 0x4019fc
push edi
mov dword [0x424198], eax
call esi
push eax
call fcn.00405257
mov dword [esp], 0x4019e0
push edi
mov dword [0x42419c], eax
call esi
push eax
call fcn.00405257
pop ecx
mov dword [0x4241a4], eax
test eax, eax
je 0x409816
push 0x4019c8
push edi
call esi
push eax
call fcn.00405257
pop ecx
mov dword [0x4241a0], eax
mov eax, dword [0x4241a0]
cmp eax, ebx
je 0x40986e
cmp dword [0x4241a4], ebx
je 0x40986e
push eax
call fcn.004052d2
push dword [0x4241a4]
mov esi, eax
call fcn.004052d2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40986e
test edi, edi
je 0x40986e
call esi
test eax, eax
je 0x409865
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409865
test byte [ebp - 0xc], 1
jne 0x40986e
or dword [ebp + 0x10], 0x200000
jmp 0x4098a7
mov eax, dword [0x424198]
cmp eax, ebx
je 0x4098a7
push eax
call fcn.004052d2
pop ecx
test eax, eax
je 0x4098a7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4098a7
mov eax, dword [0x42419c]
cmp eax, ebx
je 0x4098a7
push eax
call fcn.004052d2
pop ecx
test eax, eax
je 0x4098a7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424194]
call fcn.004052d2
pop ecx
test eax, eax
je 0x4098c7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4098c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x507d7fde
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x331a782f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4012ea
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4118b1
call fcn.00406ae4
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
call fcn.00401022
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401022
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.00401022
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.00401022
lea eax, [ebp - 0x1a8]
mov dword [esi], 0x412588
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0xb0]
push eax
mov byte [esi + 0xb5], bl
mov byte [ebp - 0x14], 0x76
mov byte [ebp - 0x13], 0x32
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x31
mov byte [ebp - 0x10], 0x30
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret

Function at 0x401455
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401b03
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
mov byte [esi + 0xb5], bl
mov eax, dword [0x41856c]
cmp eax, ebx
je 0x401490
cmp eax, 4
je 0x401490
cmp eax, 5
jne 0x401524
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
je 0x401524
cmp dword [0x41856c], ebx
je 0x4014b6
push 0x418570
jmp 0x4014b9
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x401524
cmp dword [0x41856c], ebx
mov word [ebp - 0x10], 2
je 0x4014dc
mov ax, word [0x41616c]
push eax
jmp 0x4014df
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x401524
cmp dword [0x41856c], 5
jne 0x401528
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.00401552
test al, al
jne 0x401528
xor al, al
jmp 0x40154b
push 1
push ebx
push ebx
push esi
push 0x401807
push ebx
push ebx
mov byte [esi + 0xb5], 1
call fcn.004066a4
mov dword [esi + 0xa4], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401cb6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
mov ebx, ecx
mov dword [ebp + 8], eax
jb 0x401d16
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x401cf7
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x401cdc
cmp dword [ebp - 8], 0xf
je 0x401d4c
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x401cd8
cmp dword [ebp + 8], 0
jle 0x401d44
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x401d3b
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x401d20
cmp dword [ebp + 0x10], 0xf
je 0x401d4c
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x401d4f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401ff6
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4125a8
push 0x406b6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x40213a
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40209e
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40209e
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x402079
cmp al, 0x5c
je 0x402079
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x402061
cmp byte [esi], 0
je 0x402082
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x402097
cmp al, 0x5c
je 0x402097
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x40207f
cmp byte [esi], 0
je 0x4020bd
jmp 0x4020b9
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x4020bd
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x4020bd
cmp al, 0x5c
jne 0x4020bd
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x40211a
cmp al, 0x5c
jne 0x40210c
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x4020f5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402109
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x4020fa
and eax, 0x10
cmp al, 0x10
je 0x402109
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x40213e
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4020c0
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x402140
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402151
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x160]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x4022de
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022de
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x354]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x354]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x354]
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022de
push esi
push eax
lea eax, [ebp - 0x160]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x160]
push 0x4161e0
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x40229b
lea eax, [ebp - 0x160]
push 0x4161dc
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x40229b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x160]
push 0x4161d8
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x160]
push eax
call edi
jmp 0x4022a5
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x4022c2
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
xor al, al
pop ebx
leave
ret 8

Function at 0x4022e7
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
mov dword [ebp - 0x28], 0x101
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor al, al
pop esi
leave
ret 8
Function at 0x40232e
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 0x20], ecx
push 0x100
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
pop esi
je 0x4024c7
jmp 0x402383
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [edi]
cmp al, 0x41
je 0x402431
cmp al, 0x42
je 0x402431
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x402431
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.00406b80
mov edx, dword [ebp - 0x18]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.00406b80
mov dword [ebp - 4], eax
jmp 0x402439
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [0x418874]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0xc]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x402381
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.0040659b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024dc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push esi
mov eax, 0x2800
push edi
mov esi, ecx
push eax
push 0x40
and dword [esi + 0x1c], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x24c]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40254d
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
mov byte [ebp + 0xb], 0x68
call fcn.0040659b
jmp 0x402650
push ebx
push 1
mov byte [edi], 0x68
pop esi
mov eax, dword [ebp - 4]
add eax, 0xfffffdf8
cmp esi, eax
jbe 0x402575
add dword [ebp - 4], 0x208
push 0x42
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [ebp - 0x11c]
push 0x416200
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x402619
lea eax, [ebp - 0x11c]
push 0x4161fc
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x402619
mov al, byte [ebp - 0x148]
and al, 0x10
mov byte [esi + edi], al
lea eax, [ebp - 0x11c]
push eax
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push ebx
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esi, ebx
lea eax, [ebp - 0x12c]
push 4
push eax
and byte [esi + edi], 0
inc esi
lea ebx, [esi + edi]
push ebx
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x128]
push 4
add ebx, 4
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esi, 8
lea eax, [ebp - 0x134]
push 8
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
add esi, 8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402554
mov ecx, dword [ebp - 8]
push esi
push edi
call fcn.0040659b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x402729
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea esi, [ecx + 0x20]
push 0x104
push edi
push esi
mov dword [ebp - 0xc], ecx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402775
xor eax, eax
jmp 0x4027ed
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov edi, eax
add edi, 0xa
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call ebx
inc eax
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
call fcn.0040659b
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4027f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 4], 0xffffffff
jne 0x402812
call fcn.004028b6
xor eax, eax
jmp 0x4028af
xor esi, esi
add ecx, 0x20
push esi
push 0x80
push 3
push esi
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4028af
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x6a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x40289d
mov ecx, dword [ebp - 4]
add eax, 9
push eax
push esi
call fcn.0040659b
mov dword [ebp - 4], eax
jmp 0x4028a5
mov ecx, dword [ebp - 4]
call fcn.004028b6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4029b6
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x41195d
call fcn.00406ae4
sub esp, 0x468
push ebx
push esi
push 0x104
lea eax, [ebp - 0x370]
push 0
mov ebx, ecx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov dword [ebp - 0x10], 0x416224
jne 0x4029ff
mov dword [ebp - 0x10], 0x418878
push dword [ebp - 0x10]
lea eax, [ebp - 0x370]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._s_s.
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x402a3d
xor al, al
jmp 0x402b09
push edi
mov edi, str._s_s_s
cmp byte [ebp - 0x13c], 0x2e
je 0x402ae5
lea eax, [ebp - 0x13c]
test byte [ebp - 0x168], 0x10
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
je 0x402a83
lea eax, [ebp - 0x474]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x474]
mov ecx, ebx
push eax
call fcn.004029b6
jmp 0x402ae5
lea eax, [ebp - 0x26c]
push eax
call esi
mov al, byte [ebp + 0xb]
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x26c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x10]
and dword [ebp - 4], 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402e77
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402a43
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4