joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb30
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x448018
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [0x48b448]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
lea edi, [esi + 0x5b8]
push 0x459cc8
mov ecx, edi
mov dword [esp + 0x84], 0
call fcn.0043bd2c
lea ecx, [esi + 0x5c0]
push ecx
mov ecx, edi
call fcn.0043bf47
push 0x3e8
mov ecx, edi
call fcn.0043bf5f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
push 0
push edi
call ebx
mov edx, dword [esi + 0x1a0]
push eax
push edi
push edx
call sub.WSOCK32.dll_send
push 0x1f4
call ebp
mov ecx, dword [esi + 0x1a0]
push 0
lea eax, [esp + 0x18]
push 0x64
push eax
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
je 0x40eb9c
or esi, 0xffffffff
cmp eax, esi
jne 0x40ebfb
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], esi
call fcn.0043bba3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.0043bd2c
mov eax, dword [esp + 0x10]
push 0x459ce4
push eax
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40ec44
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], esi
call fcn.0043bba3
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov ecx, dword [esp + 0x10]
push 0x459ce0
push ecx
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40ec82
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], esi
call fcn.0043bba3
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov edx, dword [esp + 0x10]
push 0x459cdc
push edx
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40ecc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], esi
call fcn.0043bba3
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov eax, dword [esp + 0x10]
push 0x459cd8
push eax
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40ecfe
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], esi
call fcn.0043bba3
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x4a7c28
call fcn.00419230
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], esi
call fcn.0043bba3
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret
Function at 0x40eda0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 0x10]
push esi
push edi
push eax
mov esi, ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40edc8
pop edi
xor eax, eax
pop esi
add esp, 0x1a0
ret
mov eax, dword [esi + 0x1a8]
push eax
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ede6
pop edi
xor eax, eax
pop esi
add esp, 0x1a0
ret
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov cx, word [esi + 0x1a4]
mov dword [esi + 0x1a0], eax
push ecx
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htons
mov word [esp + 0xa], ax
mov eax, dword [esi + 0x1a0]
lea edx, [esp + 8]
push 0x10
push edx
push eax
mov dword [esp + 0x18], edi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x40ee37
pop edi
xor eax, eax
pop esi
add esp, 0x1a0
ret
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x1a0]
push 1
push 0x467
push ecx
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x40ee5e
pop edi
xor eax, eax
pop esi
add esp, 0x1a0
ret
push 0x48f63c
lea ecx, [esi + 0x5bc]
call fcn.0043bd2c
pop edi
mov eax, 1
pop esi
add esp, 0x1a0
ret
Function at 0x40ee80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x448060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x48b448]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov bl, 3
mov byte [esp + 0x2c], bl
call fcn.0040f0e0
push 0x4a7c8a
lea ecx, [ebp + 0x5c0]
mov word [ebp + 0x1a4], 0x21b4
call fcn.0043bd2c
mov edi, 0x4a7c8a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jbe 0x40ef25
push 0x48f458
call fcn.0042c42e
add esp, 4
push 1
push esi
push 0x48f458
push str.SetRoom.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp + 0x1c]
push esi
push esi
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x4a7c38
lea ecx, [esp + 0x18]
call fcn.0043bd2c
push esi
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.0043bff6
inc eax
lea ecx, [esp + 0x14]
push eax
push 0x2e
call fcn.0043bff6
inc eax
lea ecx, [esp + 0x14]
push eax
push 0x2e
call fcn.0043bff6
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00439d26
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.0043bcdc
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0043bba3
mov eax, dword [0x4a7c30]
xor edi, edi
cmp eax, esi
jle 0x40f03a
mov edx, dword [0x4a7c34]
lea ecx, [esp + 0x10]
lea eax, [esi + edx]
push eax
call fcn.0043bd2c
push 0
push 0x2e
lea ecx, [esp + 0x18]
call fcn.0043bff6
inc eax
lea ecx, [esp + 0x10]
push eax
push 0x2e
call fcn.0043bff6
inc eax
lea ecx, [esp + 0x10]
push eax
push 0x2e
call fcn.0043bff6
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00439d26
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.0043bcdc
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0043bba3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x40f029
lea ecx, [esp + 0x10]
push ecx
lea ecx, [ebp + 0x1a8]
call fcn.0043bcdc
mov ecx, ebp
call fcn.0040eda0
test eax, eax
jne 0x40f08a
mov eax, dword [0x4a7c30]
inc edi
add esi, 0x10
cmp edi, eax
jl 0x40ef93
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0043bba3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0043bba3
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0043bba3
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043bba3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0043bba3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 1
call fcn.0043bba3
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0043bba3
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043bba3
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x414400
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4485b4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x44c62c
mov eax, dword [esi + 0x64]
mov dword [esp + 0x10], 0xa
cmp eax, 1
jne 0x414475
mov eax, dword [esi + 0x68]
test eax, eax
je 0x414475
mov eax, dword [esi + 0x74]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call edi
mov ecx, dword [esi + 0x6c]
push ecx
call edi
mov edx, dword [esi + 0x74]
push edx
call edi
mov eax, dword [esi + 0x78]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x74]
push ecx
call edi
mov edx, dword [esi + 0x68]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
lea ecx, [esi + 0xec]
mov dword [esi + 0x64], 0
call fcn.0043bba3
lea ecx, [esi + 0xe8]
mov byte [esp + 0x10], 9
call fcn.0043bba3
lea ecx, [esi + 0xe4]
mov byte [esp + 0x10], 8
call fcn.0043bba3
lea ecx, [esi + 0xdc]
mov byte [esp + 0x10], 7
call fcn.0043bba3
lea ecx, [esi + 0xd8]
mov byte [esp + 0x10], 6
call fcn.0043bba3
lea ecx, [esi + 0xd4]
mov byte [esp + 0x10], 5
call fcn.0043bba3
lea ecx, [esi + 0xd0]
mov byte [esp + 0x10], 4
call fcn.0043bba3
lea ecx, [esi + 0xc8]
mov byte [esp + 0x10], 3
call fcn.0043bba3
lea ecx, [esi + 0xac]
mov byte [esp + 0x10], 2
call fcn.0043bba3
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 1
call fcn.0043bba3
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0
call fcn.0043bba3
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00416b40
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x414e10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x68]
test eax, eax
je 0x414e4f
mov eax, dword [esi + 0x74]
push eax
call edi
mov ecx, dword [esi + 0x6c]
push ecx
call edi
mov edx, dword [esi + 0x78]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x68]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x68], 0
cmp dword [esi + 0x64], 1
jne 0x414e72
mov eax, dword [esi + 0x68]
test eax, eax
jne 0x414e72
push 0
push 0
push 0
push 0
push esi
push 0x414e80
call fcn.0043ac89
mov dword [esi + 0x68], eax
mov ecx, dword [esi + 0x6c]
push ecx
call edi
pop edi
pop esi
ret
Function at 0x41932c
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov ecx, 0x4a7f80
jmp 0x419310
push 0xffffffffffffffff
push 0x448b62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x48b448]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x30], eax
mov ecx, dword [0x48b448]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x34], ecx
mov edx, dword [0x48b448]
mov dword [esi + 0x38], edx
mov eax, dword [0x48b448]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x48b448]
mov dword [esi + 0x48], ecx
mov edx, dword [0x48b448]
mov dword [esi + 0x4c], edx
mov eax, vtable.CFont.0
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], eax
mov dword [esi + 0x84], ebx
mov dword [esi + 0x80], eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x88], eax
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], eax
push 0x4718
mov byte [esp + 0x1c], 0xa
mov dword [esi + 4], 0x64
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x98], ebx
call fcn.0043c073
mov edi, eax
mov eax, dword [esi + 4]
mov dword [esi], edi
mov dword [esi + 0x9c], ebx
lea ecx, [eax + eax*4]
add esp, 4
lea ecx, [ecx + ecx*8]
lea ecx, [eax + ecx*2]
xor eax, eax
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41be10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [esp + 0x18]
push edi
xor ebx, ebx
lea edi, [esi + 8]
mov dword [esp + 0x10], ebx
push edi
mov dword [esp + 0x18], ebx
call ebp
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x24], ebx
je 0x41bf06
push edi
call ebp
mov edx, dword [esi + 0x28]
lea ebx, [esi + 0x3c]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41beb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x10], eax
je 0x41be8f
push str.ReadFile__
jmp 0x41beaa
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x41beb1
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call fcn.0041bcc0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
and eax, 0xff
push edx
push eax
mov edx, dword [ecx + 0x1c]
push 0x411
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call ebp
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call ebx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41be56
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x41c1e0
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0
je 0x41c1f9
dec eax
jne 0x41c203
push 0
push 9
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret 4
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret 4

Function at 0x41c210
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41c231
add esp, 0x14
ret 4
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41c27d
xor eax, eax
add esp, 0x14
ret 4
mov eax, dword [esp + 0x18]
push 0
cmp eax, 1
jne 0x41c29b
push 9
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0x14
ret 4
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0x14
ret 4
Function at 0x41ff20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4491d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov dword [esp + 0x18], 0
mov eax, dword [0x48b448]
mov dword [esp + 0x2c], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov bl, 5
push 0x48f63c
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.0043bd2c
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 8]
cmp eax, 0xc
jge 0x41ff9c
mov esi, dword [esp + 0x34]
push 0x48f63c
mov ecx, esi
call fcn.0043bc11
mov dword [esp + 0x18], 1
jmp 0x4200ce
push 8
lea ecx, [esp + 0x20]
push 2
push ecx
lea ecx, [esp + 0x44]
call fcn.00439c14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 6
call fcn.0043bcdc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0043bba3
push 1
lea edx, [esp + 0x20]
push 0xb
push edx
lea ecx, [esp + 0x44]
call fcn.00439c14
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 7
call fcn.0043bcdc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0043bba3
mov eax, dword [esp + 8]
push 0x4594ac
push eax
call fcn.0042c273
add esp, 8
test eax, eax
jne 0x420015
push str..mpg
jmp 0x42001a
push str..mp2
lea ecx, [esp + 0xc]
call fcn.0043bd2c
push 0
push 0x459524
lea ecx, [esp + 0x40]
call fcn.00439d9e
add eax, 0xfffffff4
lea ecx, [esp + 0x1c]
push eax
push 0xc
push ecx
lea ecx, [esp + 0x44]
call fcn.00439c14
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 8
call fcn.0043bcdc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.0043bba3
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0043bdd2
lea edx, [esp + 8]
mov byte [esp + 0x2c], 9
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0043bdd2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0xa
call fcn.0043bcdc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 9
call fcn.0043bba3
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0043bba3
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0043b918
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.0043bba3
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.0043bba3
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.0043bba3
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.0043bba3
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.0043bba3
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x42c22d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c24d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d730
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42c270
test byte [esp + 8], 2
je 0x42c270
call fcn.0042d7a3
mov dword [eax], 0xd
call fcn.0042d7ac
mov dword [eax], 5
jmp 0x42c249
xor eax, eax
ret
Function at 0x43ccb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x43ccd2
cmp dword [edi + 0x3c], 0
jne 0x43ccd2
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00443527
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0043ccff
pop edi
pop esi
pop ebx
ret 8

Function at 0x43fc43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x43fc85
call fcn.00443527
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x43fc85
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x43fc7c
xor eax, eax
jmp 0x43fc8d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0043fc93
pop edi
pop esi
pop ebx
ret 4

Function at 0x44617a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x446191
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc

Function at 0x10d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x12504]
push edi
push 0
push dword [0x129b4]
call esi
push 0
push dword [0x129b4]
call esi
push 0x20
mov byte [ebp - 4], 0x6a
pop edi
push dword [ebp - 4]
push dword [0x129b4]
call esi
mov al, byte [ebp - 4]
mov cl, byte [ebp - 4]
and al, 0xfe
shl cl, 1
xor al, cl
mov cl, byte [ebp - 4]
shl al, 6
shr cl, 1
or al, cl
dec edi
mov byte [ebp - 4], al
jne 0x10da7
push 2
call fcn.0001150a
pop edi
pop esi
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401056
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push str.ProxyEnable
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401056
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], esi
je 0x401064
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40106a
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov al, byte [0x4090b0]
push ebx
push esi
push edi
mov byte [ebp - 0x408], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
xor esi, esi
push eax
push 1
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010ff
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x400
push eax
lea eax, [ebp - 0x408]
push eax
push esi
push esi
push str.ProxyServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4010ff
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
push 1
pop ebx
cmp dword [ebp - 4], esi
je 0x40110d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4013cc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
xor edi, edi
push esi
lea eax, [ebp - 0x54]
push edi
push eax
mov ebx, 0x80004005
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x54], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40143b
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor ebx, ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x404dc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
push edi
xor esi, esi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404e03
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret
pop edi
mov eax, 1
pop esi
add esp, 0x190
ret

Function at 0x404e30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x110
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov dword [esp + 0xc], ebp
mov eax, dword [esi + 4]
mov dword [esp + 0x10], ebp
cmp eax, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x404e9c
mov edi, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push ebp
push edx
inc eax
push ebp
push eax
mov dword [esp + 0x2c], 1
call edi
cmp eax, 0xffffffff
jne 0x404e90
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
je 0x404e5f
jmp 0x404e9c
cmp eax, ebp
jle 0x404e9c
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebp
pop edi
pop esi
pop ebp
setne al
add esp, 0x110
ret

Function at 0x404ec0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
or ebp, 0xffffffff
mov ebx, ecx
test edi, edi
je 0x404f2f
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x404f2f
push esi
mov esi, str.255.255.255.255
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404f0a
test cl, cl
je 0x404f06
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404f0a
add eax, 2
add esi, 2
test cl, cl
jne 0x404ee6
xor eax, eax
jmp 0x404f0f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
je 0x404f2f
mov eax, dword [ebx]
push 6
mov ecx, ebx
call dword [eax + 8]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404f2f
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ebp, dword [edx]
push ebp
call dword [sym.imp.WS2_32.dll_ntohl]
pop edi
pop ebp
pop ebx
ret 4