joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e6f4
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406470
xor eax, eax
push ebp
push 0x42e7f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00406480
mov esi, eax
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42e7e1
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x42e7e1
xor eax, eax
push ebp
push 0x42e7da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov edx, eax
mov eax, ebx
xor ecx, ecx
call fcn.00406764
cmp dword [ebx], 0
je 0x42e7ba
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
xor edx, edx
call fcn.00405eec
call fcn.00406084
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReadFile_1
test eax, eax
je 0x42e7ba
mov eax, ebx
xor edx, edx
call fcn.00405eec
call fcn.00406084
cmp eax, dword [ebp - 0x10]
je 0x42e7be
xor eax, eax
jmp 0x42e7c0
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e7e1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e7fe
lea eax, [ebp - 4]
call fcn.00405cdc
ret
Function at 0x433a64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x433af8
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x433abc
inc esi
mov cl, 0xff
jmp 0x433ac0
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x433ad7
inc esi
mov dl, 0xff
jmp 0x433adb
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x433af2
inc esi
mov al, 0xff
jmp 0x433b25
add al, byte [esp + 7]
jmp 0x433b25
cmp cl, byte [esp + 5]
jae 0x433b03
inc esi
xor ecx, ecx
jmp 0x433b07
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x433b12
inc esi
xor edx, edx
jmp 0x433b16
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x433b21
inc esi
xor eax, eax
jmp 0x433b25
sub al, byte [esp + 7]
dec esi
jle 0x433b3c
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.00433a64
jmp 0x433b4f
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x434db8
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 0x434e3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.0040ade0
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.00434f58
mov eax, dword [ebp - 4]
call fcn.00406084
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00434f58
mov eax, dword [ebp - 8]
call fcn.00406480
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434e42
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405d00
ret

Function at 0x43535c
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 0x4353a7
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.00406764
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.00406084
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.00406764
mov eax, edi
mov edx, dword [ebx + 0x50]
call fcn.00405d30
pop edi
pop esi
pop ebx
ret

Function at 0x43f21c
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 0x43f335
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 0x43f310
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
push 0
call fcn.00406028
cmp dword [ebx], 0
je 0x43f317
push 0
mov eax, dword [ebx]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
mov eax, dword [ebx]
call fcn.00406084
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x43f2ab
mov eax, ebx
mov edx, 0x43f350
call fcn.004060b8
push dword [ebx]
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.0043eda8
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0043eddc
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0043efdc
push dword [ebp - 0x10c]
push 0x43f360
mov eax, ebx
mov edx, 3
call fcn.00406270
push 0
mov eax, dword [ebx]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
mov eax, ebx
mov edx, 0x43f350
call fcn.004060b8
jmp 0x43f317
mov eax, ebx
call fcn.00405cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f33c
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405d00
ret
Function at 0x43f36c
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 0x43f47e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0043f21c
cmp dword [ebp - 4], 0
je 0x43f458
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x43f458
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x43f498
mov edx, dword [ebp - 4]
call fcn.00406180
mov eax, dword [ebp - 0x148]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43f44a
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x118]
mov ecx, 0x104
push 0
call fcn.00406028
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 4]
call fcn.00406180
mov eax, dword [ebp - 0x14c]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x43f3f6
push ebx
call sub.KERNEL32.DLL_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f485
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00405d00
lea eax, [ebp - 4]
call fcn.00405cdc
ret

Function at 0x43f49c
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.00406028
add esp, 0x10c
pop ebx
ret
Function at 0x43f4d4
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.00406470
mov eax, dword [ebp - 8]
call fcn.00406470
xor eax, eax
push ebp
push 0x43f5d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405cdc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43f5b9
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.00406480
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0
je 0x43f5b0
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 0x43f5aa
cmp dword [ebp - 0x14], 1
jne 0x43f59c
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00405fa4
jmp 0x43f5aa
push 0
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00405e14
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 0x43f5db
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405d00
ret

Function at 0x43f5e4
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.00406470
mov eax, dword [ebp - 8]
call fcn.00406470
mov eax, dword [ebp + 8]
call fcn.00406470
xor eax, eax
push ebp
push 0x43f6a6
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.00406480
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x43f681
lea eax, [ebp + 8]
xor edx, edx
call fcn.00405eec
call fcn.00406084
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00406480
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00406480
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 0x43f683
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f6ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405d00
lea eax, [ebp + 8]
call fcn.00405cdc
ret
Function at 0x43f6b8
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.00406470
mov eax, dword [ebp - 8]
call fcn.00406470
xor eax, eax
push ebp
push 0x43f742
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.00406480
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43f725
mov eax, dword [ebp - 8]
call fcn.00406480
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 0x43f727
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f749
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405d00
ret

Function at 0x43fa40
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.00425e34
test eax, eax
je 0x43fad0
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 0x43fad0
jmp 0x43faca
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x43fa86
push ebp
call fcn.0043f968
pop ecx
jmp 0x43fad0
cmp dword [esi + 0x10], 0
je 0x43fac7
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x43fac2
cmp edi, dword [ebx]
jne 0x43fabf
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x43fabf
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 0x43fa94
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x43fa75
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446ea8
Capabilities:
Create thread

Disassembly:
cmp dword [0x5d0fac], 0
jne 0x446f26
xor eax, eax
call fcn.004256b4
mov dword [0x5d0fac], eax
cmp dword [0x5d0fac], 0
je 0x446f26
mov eax, 0x446d3c
xor ecx, ecx
xor edx, edx
call fcn.00425b00
mov dword [0x5d0fb0], eax
push 0x5d0fa4
push 0
push 0
push 0x446d7c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x5d0fa8], eax
cmp dword [0x5d0fa8], 0
je 0x446f26
push 0
push 0
push 0
mov ecx, 0x446f34
mov edx, dword [0x5d0fa8]
mov eax, dword [0x5d0fa4]
call fcn.0043fb68
push 2
mov eax, dword [0x5d0fa8]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
ret

Function at 0x446f38
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x5d0fac], 0
je 0x446fb6
cmp dword [0x5d0fbc], 0
je 0x446f5d
mov eax, dword [0x5d0fbc]
xor edx, edx
mov dword [0x5d0fbc], edx
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov dword [0x5d0fb8], 0xffffffff
mov eax, 0x446d3c
xor ecx, ecx
xor edx, edx
call fcn.00425d04
push 0
mov eax, dword [0x5d0fa8]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov eax, dword [0x5d0fa8]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x5d0fa4]
call fcn.0043fb68
xor eax, eax
mov dword [0x5d0fa8], eax
xor eax, eax
mov dword [0x5d0fa4], eax
xor eax, eax
mov dword [0x5d0fac], eax
ret
Function at 0x44ef3c
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.00406470
xor eax, eax
push ebp
push 0x44ef99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406480
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44ef83
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44ef83
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 0x44efa0
lea eax, [ebp - 4]
call fcn.00405cdc
ret
Function at 0x44f70c
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.00406470
xor eax, eax
push ebp
push 0x44f7a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x44f77c
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405eec
call fcn.00406084
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x44f758
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405eec
lea eax, [ebp - 4]
call fcn.004064f8
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x44f793
add esi, ebx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405eec
call fcn.00406084
cmp esi, eax
jl 0x44f738
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f7b0
lea eax, [ebp - 4]
call fcn.00405cdc
ret

Function at 0x44f7bc
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.00406470
xor eax, eax
push ebp
push 0x44f829
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.00406480
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44f811
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize_1
mov esi, eax
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
jmp 0x44f813
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f830
lea eax, [ebp - 4]
call fcn.00405cdc
ret

Function at 0x44fa4c
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.00406470
xor eax, eax
push ebp
push 0x44fb1e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x44fb08
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x44fb08
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x44fabc
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x44fabc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x44fb08
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 0x44fb08
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 0x44fb25
lea eax, [ebp - 4]
call fcn.00405cdc
ret
Function at 0x450084
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.00406470
mov eax, dword [ebp - 8]
call fcn.00406470
mov eax, dword [ebp + 8]
call fcn.00406470
xor eax, eax
push ebp
push 0x4502bd
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.00406480
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x45028d
push 0
push edi
call sub.KERNEL32.DLL_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x450287
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1d], 1
test ebx, ebx
jbe 0x450277
cmp ebx, 0x39
jbe 0x45012a
mov esi, 0x39
jmp 0x45012c
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 0x450146
cmp esi, dword [ebp - 0x18]
je 0x450162
cmp byte [ebp - 0x1d], 0
jne 0x450159
mov edx, 0x4502e0
mov eax, dword [ebp - 0x10]
call fcn.0044f70c
mov byte [ebp - 0x11], 0
jmp 0x450277
lea ecx, [ebp - 0x5c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0041ab24
mov eax, dword [ebp - 0x5c]
mov edx, 0x4502f0
call fcn.0041ad8c
test al, al
je 0x450192
lea eax, [ebp - 0xc]
mov edx, 0x450304
call fcn.00405d8c
jmp 0x45019f
lea eax, [ebp - 0xc]
mov edx, 0x45031c
call fcn.00405d8c
cmp byte [ebp - 0x1d], 0
je 0x450222
push 0x450344
lea eax, [ebp - 0x64]
mov edx, dword [0x5d1028]
mov ecx, 0
call fcn.00405fa4
push dword [ebp - 0x64]
push 0x4502e0
push 0x450354
push dword [ebp - 0xc]
push 0x450370
push 0x450380
push dword [ebp - 8]
push 0x450394
push 0x4502e0
push 0x4503a4
push 0x4502e0
push 0x4503d4
push 0x450404
push dword [ebp - 8]
push 0x450394
push 0x4502e0
push 0x4502e0
lea eax, [ebp - 0x60]
mov edx, 0x12
call fcn.00406270
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.0044f70c
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x56]
mov edx, esi
call fcn.0042737c
lea eax, [ebp - 0x68]
mov edx, 0x4502e0
call fcn.004060b8
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x10]
call fcn.0044f70c
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 0x45011e
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 0x4502c4
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00405d00
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405d00
lea eax, [ebp + 8]
call fcn.00405cdc
ret
Function at 0x450d44
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.00406470
xor eax, eax
push ebp
push 0x450e3a
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.0041ca60
mov eax, dword [ebp - 8]
mov edx, 0x450e58
call fcn.00406468
jne 0x450dfc
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x450e68
call fcn.0041b1c0
mov esi, eax
test esi, esi
jle 0x450e1f
push 0x7fffffff
lea ecx, [esi + 0xa]
mov edx, dword [ebp - 4]
mov eax, 0x450e80
call fcn.0041b0d4
test eax, eax
jle 0x450e1f
lea edx, [ebp - 4]
mov ecx, 0x7fffffff
xchg edx, eax
call fcn.00406564
lea ecx, [esi + 9]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00406564
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406480
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
jmp 0x450e1f
lea eax, [ebp - 0xc]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0041ca60
mov eax, dword [ebp - 0xc]
mov edx, 0x450e90
call fcn.00406468
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450e41
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405d00
ret

Function at 0x450e94
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 0x450fff
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 [0x5d07c0]
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 0x450fd9
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.00405e14
lea eax, [ebp - 0x1518]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0041ca60
mov eax, dword [ebp - 0x1518]
mov edx, 0x45101c
call fcn.00406468
jne 0x450fcf
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x45102c
call fcn.0041b0d4
test eax, eax
jle 0x450fbf
lea ecx, [eax + 3]
lea eax, [ebp - 4]
mov edx, 1
call fcn.00406564
lea eax, [ebp - 0x151c]
push eax
mov cl, 0x20
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0041ca60
mov eax, dword [ebp - 0x151c]
call fcn.00406084
cmp eax, 3
jne 0x450faf
mov eax, dword [ebp - 4]
call fcn.00450d44
mov ebx, eax
jmp 0x450fd9
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00450e94
pop ecx
mov ebx, eax
jmp 0x450fd9
mov eax, dword [ebp + 8]
push eax
mov eax, esi
call fcn.00450e94
pop ecx
mov ebx, eax
jmp 0x450fd9
mov eax, dword [ebp - 4]
call fcn.00450d44
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451006
lea eax, [ebp - 0x151c]
mov edx, 2
call fcn.00405d00
lea eax, [ebp - 4]
call fcn.00405cdc
ret