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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x43073c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040562c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x430721
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405ce8
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0
je 0x430718
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x430712
cmp dword [ebp - 0x14], 1
jne 0x430704
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.004058e0
jmp 0x430712
push 0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00405764
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430743
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
ret

Function at 0x43074c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
mov eax, dword [ebp + 8]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x43080e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4307e9
lea eax, [ebp + 8]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00405ce8
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405ce8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4307eb
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430815
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
lea eax, [ebp + 8]
call fcn.0040562c
ret
Function at 0x430820
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x4308aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43088d
mov eax, dword [ebp - 8]
call fcn.00405ce8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x43088f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4308b1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
ret

Function at 0x430ba8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00416fe4
test eax, eax
je 0x430c38
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x430c38
jmp 0x430c32
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x430bee
push ebp
call fcn.00430ad0
pop ecx
jmp 0x430c38
cmp dword [esi + 0x10], 0
je 0x430c2f
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x430c2a
cmp edi, dword [ebx]
jne 0x430c27
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x430c27
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x430bfc
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x430bdd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4380a0
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x594bf8], 0
je 0x43811e
cmp dword [0x594c08], 0
je 0x4380c5
mov eax, dword [0x594c08]
xor edx, edx
mov dword [0x594c08], edx
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [0x594c04], 0xffffffff
mov eax, 0x437ea4
xor ecx, ecx
xor edx, edx
call fcn.00416eb4
push 0
mov eax, dword [0x594bf4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x594bf4]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x594bf0]
call fcn.00430cd0
xor eax, eax
mov dword [0x594bf4], eax
xor eax, eax
mov dword [0x594bf0], eax
xor eax, eax
mov dword [0x594bf8], eax
ret
Function at 0x4400a4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x440101
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ce8
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4400eb
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4400eb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440108
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x440874
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x440911
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x4408e4
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x4408c0
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
lea eax, [ebp - 4]
call fcn.00405d60
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x4408fb
add esi, ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
cmp esi, eax
jl 0x4408a0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440918
lea eax, [ebp - 4]
call fcn.0040562c
ret

Function at 0x440924
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x440991
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x440979
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x44097b
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440998
lea eax, [ebp - 4]
call fcn.0040562c
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x440c86
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x440c70
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x440c70
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x440c24
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x440c24
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x440c70
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x440c70
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440c8d
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x4411ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
mov eax, dword [ebp + 8]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x441425
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x4413f5
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x4413ef
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1d], 1
test ebx, ebx
jbe 0x4413df
cmp ebx, 0x39
jbe 0x441292
mov esi, 0x39
jmp 0x441294
mov esi, ebx
push 0
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x56]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4412ae
cmp esi, dword [ebp - 0x18]
je 0x4412ca
cmp byte [ebp - 0x1d], 0
jne 0x4412c1
mov edx, 0x441448
mov eax, dword [ebp - 0x10]
call fcn.00440874
mov byte [ebp - 0x11], 0
jmp 0x4413df
lea ecx, [ebp - 0x5c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0040bcd4
mov eax, dword [ebp - 0x5c]
mov edx, 0x441458
call fcn.0040bf3c
test al, al
je 0x4412fa
lea eax, [ebp - 0xc]
mov edx, 0x44146c
call fcn.004056dc
jmp 0x441307
lea eax, [ebp - 0xc]
mov edx, 0x441484
call fcn.004056dc
cmp byte [ebp - 0x1d], 0
je 0x44138a
push 0x4414ac
lea eax, [ebp - 0x64]
mov edx, dword [0x594c74]
mov ecx, 0
call fcn.004058e0
push dword [ebp - 0x64]
push 0x441448
push 0x4414bc
push dword [ebp - 0xc]
push 0x4414d8
push 0x4414e8
push dword [ebp - 8]
push 0x4414fc
push 0x441448
push 0x44150c
push 0x441448
push 0x44153c
push 0x44156c
push dword [ebp - 8]
push 0x4414fc
push 0x441448
push 0x441448
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.00405b3c
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.00440874
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x56]
mov edx, esi
call fcn.0041852c
lea eax, [ebp - 0x68]
mov edx, 0x441448
call fcn.004059f4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call fcn.00440874
sub ebx, esi
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x1c]
sub eax, ebx
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test ebx, ebx
ja 0x441286
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44142c
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00405650
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405650
lea eax, [ebp + 8]
call fcn.0040562c
ret
Function at 0x441eac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x441fa2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040dc10
mov eax, dword [ebp - 8]
mov edx, 0x441fc0
call fcn.00405cd0
jne 0x441f64
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x441fd0
call fcn.0040c370
mov esi, eax
test esi, esi
jle 0x441f87
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x441fe8
call fcn.0040c284
test eax, eax
jle 0x441f87
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.00405dcc
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405dcc
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x441f87
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040dc10
mov eax, dword [ebp - 0xc]
mov edx, 0x441ff8
call fcn.00405cd0
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441fa9
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405650
ret

Function at 0x441ffc
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffae4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x151c], edx
mov dword [ebp - 0x1518], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x442167
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x1514], 1
mov dword [ebp - 0x1510], esi
mov eax, dword [0x59440c]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x1514]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x442141
push 0
push 0
push 0x1400
lea eax, [ebp - 0x140d]
push eax
push esi
call sub.wsock32.dll_recv
mov ecx, eax
lea edx, [ebp - 0x140d]
lea eax, [ebp - 4]
call fcn.00405764
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040dc10
mov eax, dword [ebp - 0x1518]
mov edx, 0x442184
call fcn.00405cd0
jne 0x442137
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x442194
call fcn.0040c284
test eax, eax
jle 0x442127
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405dcc
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040dc10
mov eax, dword [ebp - 0x151c]
call fcn.004059c0
cmp eax, 3
jne 0x442117
mov eax, dword [ebp - 4]
call fcn.00441eac
mov ebx, eax
jmp 0x442141
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00441ffc
pop ecx
mov ebx, eax
jmp 0x442141
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00441ffc
pop ecx
mov ebx, eax
jmp 0x442141
mov eax, dword [ebp - 4]
call fcn.00441eac
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44216e
lea eax, [ebp - 0x151c]
mov edx, 2
call fcn.00405650
lea eax, [ebp - 4]
call fcn.0040562c
ret
Function at 0x44219c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 8]
call fcn.00405cd8
mov eax, dword [ebp + 8]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x442358
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne bl
test bl, bl
je 0x442328
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jbe 0x44231f
mov dword [ebp - 0x1c], edi
push 0x442378
lea eax, [ebp - 0x24]
mov edx, dword [0x594c74]
mov ecx, 0
call fcn.004058e0
push dword [ebp - 0x24]
push 0x44238c
push 0x44239c
push dword [ebp + 8]
push 0x4423d0
push dword [ebp - 8]
push 0x4423ec
push 0x44238c
push 0x4423fc
push 0x44238c
push 0x44238c
lea eax, [ebp - 0x20]
mov edx, 0xc
call fcn.00405b3c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00440874
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x400
call fcn.00405fcc
jmp 0x442307
cmp edi, 0x400
jbe 0x4422a7
mov esi, 0x400
jmp 0x4422a9
mov esi, edi
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call fcn.00405fcc
push 0
lea eax, [ebp - 0x18]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4422d2
cmp esi, dword [ebp - 0x18]
je 0x4422d6
xor ebx, ebx
jmp 0x44230f
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00440874
mov ebx, eax
sub edi, esi
mov eax, dword [ebp - 0x1c]
sub eax, edi
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test bl, bl
je 0x44230f
test edi, edi
ja 0x442298
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44235f
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00405650
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405650
lea eax, [ebp + 8]
call fcn.0040562c
ret
Function at 0x442da4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405cd8
mov eax, dword [ebp - 4]
call fcn.00405cd8
mov eax, dword [ebp - 0xc]
call fcn.00405cd8
mov eax, dword [ebp + 0x34]
call fcn.00405cd8
mov eax, dword [ebp + 0x30]
call fcn.00405cd8
mov eax, dword [ebp + 0x2c]
call fcn.00407c78
mov eax, dword [ebp + 0x28]
call fcn.00407c78
mov eax, dword [ebp + 0x24]
call fcn.00407c78
mov eax, dword [ebp + 0x20]
call fcn.00408464
mov eax, dword [ebp + 0x1c]
call fcn.00405cd8
mov eax, dword [ebp + 0x18]
call fcn.00405cd8
mov eax, dword [ebp + 0x14]
call fcn.00405cd8
mov eax, dword [ebp + 8]
call fcn.00408464
xor eax, eax
push ebp
push 0x442fb6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x442f53
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x20]
push 0
push 0x3e8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, 0x442fd4
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 8], 0
je 0x442e86
push ebp
call fcn.004425d0
pop ecx
mov ebx, eax
jmp 0x442f3c
cmp dword [ebp - 0xc], 0
je 0x442f3c
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x1c], 0
jne 0x442f0d
lea eax, [ebp - 0xc]
call fcn.0043e638
mov esi, eax
test esi, esi
jle 0x442eb8
push ebp
mov al, 1
call fcn.004409a0
pop ecx
mov dword [ebp - 0x10], eax
dec esi
jne 0x442ea9
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 0xc]
call fcn.0043e638
mov esi, eax
test esi, esi
jle 0x442f3c
mov edi, 1
push ebp
lea eax, [ebp - 0x1a4]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0040dc10
mov eax, dword [ebp - 0x1a4]
call fcn.00441578
pop ecx
or bl, al
mov edx, dword [ebp - 0x10]
imul edx, edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
inc edi
dec esi
jne 0x442ed5
jmp 0x442f3c
push ebp
xor eax, eax
call fcn.004409a0
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push ebp
mov eax, dword [ebp - 0xc]
call fcn.00441578
pop ecx
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
call sub.wsock32.dll_WSACleanup
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x442f53
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442fbd
lea eax, [ebp - 0x1a4]
call fcn.0040562c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405650
lea eax, [ebp + 8]
call fcn.004083f0
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.00405650
lea eax, [ebp + 0x20]
call fcn.004083f0
lea eax, [ebp + 0x24]
mov edx, dword [0x40b4dc]
mov ecx, 3
call fcn.00406fd4
lea eax, [ebp + 0x30]
mov edx, 2
call fcn.00405650
ret
Function at 0x443178
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cd8
xor eax, eax
push ebp
push 0x44324d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0042ffc0
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004056dc
cmp dword [ebp - 4], 0
je 0x443230
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x4431f0
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040583c
call fcn.004059c0
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00405dcc
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x44322c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00443178
pop ecx
test al, al
je 0x443228
push 0
mov eax, dword [ebp - 4]
call fcn.00405ce8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x44322c
xor ebx, ebx
jmp 0x443232
mov bl, 1
jmp 0x443232
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443254
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405650
ret