joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4309b8
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.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x430ab8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405828
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x430a9d
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.00405ee4
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0
je 0x430a94
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
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 0x430a8e
cmp dword [ebp - 0x14], 1
jne 0x430a80
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00405adc
jmp 0x430a8e
push 0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00405960
push esi
call sub.KERNEL32.DLL_LocalFree
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430abf
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret

Function at 0x430ac8
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.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
mov eax, dword [ebp + 8]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x430b8a
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.00405ee4
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x430b65
lea eax, [ebp + 8]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00405ee4
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405ee4
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
jmp 0x430b67
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430b91
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
lea eax, [ebp + 8]
call fcn.00405828
ret
Function at 0x430b9c
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.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x430c26
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.00405ee4
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x430c09
mov eax, dword [ebp - 8]
call fcn.00405ee4
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
jmp 0x430c0b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430c2d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret

Function at 0x430f24
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.004171e4
test eax, eax
je 0x430fb4
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 0x430fb4
jmp 0x430fae
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x430f6a
push ebp
call fcn.00430e4c
pop ecx
jmp 0x430fb4
cmp dword [esi + 0x10], 0
je 0x430fab
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x430fa6
cmp edi, dword [ebx]
jne 0x430fa3
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x430fa3
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 0x430f78
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x430f59
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43838c
Capabilities:
Create thread

Disassembly:
cmp dword [0x549c04], 0
jne 0x43840a
xor eax, eax
call fcn.00416a64
mov dword [0x549c04], eax
cmp dword [0x549c04], 0
je 0x43840a
mov eax, 0x438220
xor ecx, ecx
xor edx, edx
call fcn.00416eb0
mov dword [0x549c08], eax
push 0x549bfc
push 0
push 0
push 0x438260
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x549c00], eax
cmp dword [0x549c00], 0
je 0x43840a
push 0
push 0
push 0
mov ecx, 0x438418
mov edx, dword [0x549c00]
mov eax, dword [0x549bfc]
call fcn.0043104c
push 2
mov eax, dword [0x549c00]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
ret

Function at 0x43841c
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x549c04], 0
je 0x43849a
cmp dword [0x549c14], 0
je 0x438441
mov eax, dword [0x549c14]
xor edx, edx
mov dword [0x549c14], edx
push eax
call sub.KERNEL32.DLL_CloseHandle
mov dword [0x549c10], 0xffffffff
mov eax, 0x438220
xor ecx, ecx
xor edx, edx
call fcn.004170b4
push 0
mov eax, dword [0x549c00]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov eax, dword [0x549c00]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x549bfc]
call fcn.0043104c
xor eax, eax
mov dword [0x549c00], eax
xor eax, eax
mov dword [0x549bfc], eax
xor eax, eax
mov dword [0x549c04], eax
ret
Function at 0x440420
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.00405ed4
xor eax, eax
push ebp
push 0x44047d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ee4
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x440467
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x440467
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 0x440484
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x440bf0
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.00405ed4
xor eax, eax
push ebp
push 0x440c8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x440c60
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x440c3c
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
lea eax, [ebp - 4]
call fcn.00405f5c
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x440c77
add esi, ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
cmp esi, eax
jl 0x440c1c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440c94
lea eax, [ebp - 4]
call fcn.00405828
ret

Function at 0x440ca0
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.00405ed4
xor eax, eax
push ebp
push 0x440d0d
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.00405ee4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x440cf5
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov esi, eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x440cf7
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440d14
lea eax, [ebp - 4]
call fcn.00405828
ret

Function at 0x440f30
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.00405ed4
xor eax, eax
push ebp
push 0x441002
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x440fec
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x440fec
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x440fa0
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x440fa0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x440fec
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 0x440fec
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 0x441009
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x441568
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.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
mov eax, dword [ebp + 8]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x4417a1
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.00405ee4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x441771
push 0
push edi
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
test ebx, ebx
jbe 0x44176b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1d], 1
test ebx, ebx
jbe 0x44175b
cmp ebx, 0x39
jbe 0x44160e
mov esi, 0x39
jmp 0x441610
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
test eax, eax
je 0x44162a
cmp esi, dword [ebp - 0x18]
je 0x441646
cmp byte [ebp - 0x1d], 0
jne 0x44163d
mov edx, 0x4417c4
mov eax, dword [ebp - 0x10]
call fcn.00440bf0
mov byte [ebp - 0x11], 0
jmp 0x44175b
lea ecx, [ebp - 0x5c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0040bed4
mov eax, dword [ebp - 0x5c]
mov edx, 0x4417d4
call fcn.0040c13c
test al, al
je 0x441676
lea eax, [ebp - 0xc]
mov edx, 0x4417e8
call fcn.004058d8
jmp 0x441683
lea eax, [ebp - 0xc]
mov edx, 0x441800
call fcn.004058d8
cmp byte [ebp - 0x1d], 0
je 0x441706
push 0x441828
lea eax, [ebp - 0x64]
mov edx, dword [0x549c80]
mov ecx, 0
call fcn.00405adc
push dword [ebp - 0x64]
push 0x4417c4
push 0x441838
push dword [ebp - 0xc]
push 0x441854
push 0x441864
push dword [ebp - 8]
push 0x441878
push 0x4417c4
push 0x441888
push 0x4417c4
push 0x4418b8
push 0x4418e8
push dword [ebp - 8]
push 0x441878
push 0x4417c4
push 0x4417c4
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.00405d38
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.00440bf0
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x56]
mov edx, esi
call fcn.0041872c
lea eax, [ebp - 0x68]
mov edx, 0x4417c4
call fcn.00405bf0
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call fcn.00440bf0
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 0x441602
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
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4417a8
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.0040584c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040584c
lea eax, [ebp + 8]
call fcn.00405828
ret
Function at 0x442228
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.00405ed4
xor eax, eax
push ebp
push 0x44231e
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.0040de10
mov eax, dword [ebp - 8]
mov edx, 0x44233c
call fcn.00405ecc
jne 0x4422e0
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x44234c
call fcn.0040c570
mov esi, eax
test esi, esi
jle 0x442303
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x442364
call fcn.0040c484
test eax, eax
jle 0x442303
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.00405fc8
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405fc8
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x442303
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040de10
mov eax, dword [ebp - 0xc]
mov edx, 0x442374
call fcn.00405ecc
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442325
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040584c
ret

Function at 0x442378
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 0x4424e3
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 [0x549418]
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 0x4424bd
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.00405960
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040de10
mov eax, dword [ebp - 0x1518]
mov edx, 0x442500
call fcn.00405ecc
jne 0x4424b3
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x442510
call fcn.0040c484
test eax, eax
jle 0x4424a3
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00405fc8
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0040de10
mov eax, dword [ebp - 0x151c]
call fcn.00405bbc
cmp eax, 3
jne 0x442493
mov eax, dword [ebp - 4]
call fcn.00442228
mov ebx, eax
jmp 0x4424bd
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00442378
pop ecx
mov ebx, eax
jmp 0x4424bd
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00442378
pop ecx
mov ebx, eax
jmp 0x4424bd
mov eax, dword [ebp - 4]
call fcn.00442228
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4424ea
lea eax, [ebp - 0x151c]
mov edx, 2
call fcn.0040584c
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x442518
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.00405ed4
mov eax, dword [ebp - 8]
call fcn.00405ed4
mov eax, dword [ebp + 8]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x4426d4
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.00405ee4
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne bl
test bl, bl
je 0x4426a4
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
test edi, edi
jbe 0x44269b
mov dword [ebp - 0x1c], edi
push 0x4426f4
lea eax, [ebp - 0x24]
mov edx, dword [0x549c80]
mov ecx, 0
call fcn.00405adc
push dword [ebp - 0x24]
push 0x442708
push 0x442718
push dword [ebp + 8]
push 0x44274c
push dword [ebp - 8]
push 0x442768
push 0x442708
push 0x442778
push 0x442708
push 0x442708
lea eax, [ebp - 0x20]
mov edx, 0xc
call fcn.00405d38
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00440bf0
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x400
call fcn.004061c8
jmp 0x442683
cmp edi, 0x400
jbe 0x442623
mov esi, 0x400
jmp 0x442625
mov esi, edi
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call fcn.004061c8
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
test eax, eax
je 0x44264e
cmp esi, dword [ebp - 0x18]
je 0x442652
xor ebx, ebx
jmp 0x44268b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00440bf0
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 0x44268b
test edi, edi
ja 0x442614
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
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4426db
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040584c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040584c
lea eax, [ebp + 8]
call fcn.00405828
ret
Function at 0x443120
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.00405ed4
mov eax, dword [ebp - 4]
call fcn.00405ed4
mov eax, dword [ebp - 0xc]
call fcn.00405ed4
mov eax, dword [ebp + 0x34]
call fcn.00405ed4
mov eax, dword [ebp + 0x30]
call fcn.00405ed4
mov eax, dword [ebp + 0x2c]
call fcn.00407f9c
mov eax, dword [ebp + 0x28]
call fcn.00407f9c
mov eax, dword [ebp + 0x24]
call fcn.00407f9c
mov eax, dword [ebp + 0x20]
call fcn.00408788
mov eax, dword [ebp + 0x1c]
call fcn.00405ed4
mov eax, dword [ebp + 0x18]
call fcn.00405ed4
mov eax, dword [ebp + 0x14]
call fcn.00405ed4
mov eax, dword [ebp + 8]
call fcn.00408788
xor eax, eax
push ebp
push 0x443332
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 0x4432cf
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, 0x443350
mov ecx, dword [eax]
call dword [ecx + 0x1c]
cmp dword [ebp - 8], 0
je 0x443202
push ebp
call fcn.0044294c
pop ecx
mov ebx, eax
jmp 0x4432b8
cmp dword [ebp - 0xc], 0
je 0x4432b8
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x1c], 0
jne 0x443289
lea eax, [ebp - 0xc]
call fcn.0043e9b4
mov esi, eax
test esi, esi
jle 0x443234
push ebp
mov al, 1
call fcn.00440d1c
pop ecx
mov dword [ebp - 0x10], eax
dec esi
jne 0x443225
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
lea eax, [ebp - 0xc]
call fcn.0043e9b4
mov esi, eax
test esi, esi
jle 0x4432b8
mov edi, 1
push ebp
lea eax, [ebp - 0x1a4]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.0040de10
mov eax, dword [ebp - 0x1a4]
call fcn.004418f4
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 0x443251
jmp 0x4432b8
push ebp
xor eax, eax
call fcn.00440d1c
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.004418f4
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 0x4432cf
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 0x443339
lea eax, [ebp - 0x1a4]
call fcn.00405828
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040584c
lea eax, [ebp + 8]
call fcn.00408714
lea eax, [ebp + 0x14]
mov edx, 3
call fcn.0040584c
lea eax, [ebp + 0x20]
call fcn.00408714
lea eax, [ebp + 0x24]
mov edx, dword [0x40b6dc]
mov ecx, 3
call fcn.00407170
lea eax, [ebp + 0x30]
mov edx, 2
call fcn.0040584c
ret
Function at 0x4434f4
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.00405ed4
xor eax, eax
push ebp
push 0x4435c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0043033c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004058d8
cmp dword [ebp - 4], 0
je 0x4435ac
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x44356c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405a38
call fcn.00405bbc
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00405fc8
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4435a8
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004434f4
pop ecx
test al, al
je 0x4435a4
push 0
mov eax, dword [ebp - 4]
call fcn.00405ee4
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x4435a8
xor ebx, ebx
jmp 0x4435ae
mov bl, 1
jmp 0x4435ae
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4435d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040584c
ret