joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407878
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004044a4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40789a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x408c60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408c99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040fc
jmp 0x408ca2
mov eax, ebx
mov edx, esi
call fcn.00404060
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408cac
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408ccd
mov al, byte [esp]
jmp 0x408ccf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409354
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4091cc
mov eax, dword [0x4244a0]
cmp byte [eax], 0
je 0x4093bc
mov eax, dword [0x4243b0]
call fcn.00402ae8
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407b80
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409404
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4093f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x424388]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x425710]
call fcn.00404f8c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x409d84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x409de8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040425c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407724
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409def
lea eax, [ebp - 0xc]
call fcn.0040400c
ret

Function at 0x410538
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, edx
dec eax
test eax, eax
jb 0x410566
inc eax
xor edx, edx
mov dl, byte [ebx]
mov esi, dword [ecx]
and esi, 0xff
xor edx, esi
mov edx, dword [edx*4 + 0x4239b4]
mov esi, dword [ecx]
shr esi, 8
xor edx, esi
mov dword [ecx], edx
inc ebx
dec eax
jne 0x410544
pop esi
pop ebx
ret
Function at 0x4107f4
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x41084f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041072c
mov ebx, eax
test ebx, ebx
jne 0x410839
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x410839
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 0x410856
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x4108f4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410950
mov eax, esp
xor ecx, ecx
mov edx, 0x10
call fcn.00402d18
mov word [esp], 2
mov eax, esi
xchg al, ah
mov word [esp + 2], ax
push 0x10
lea eax, [esp + 4]
push eax
push ebx
call sub.wsock32.dll_bind
test eax, eax
jne 0x410947
push 0
push ebx
call sub.wsock32.dll_listen
test eax, eax
je 0x410950
push ebx
call sub.wsock32.dll_closesocket
or ebx, 0xffffffff
mov eax, ebx
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x410974
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x410a01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4109eb
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d18
mov word [ebp - 0x14], 2
mov eax, esi
xchg al, ah
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
call fcn.004107f4
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
je 0x4109eb
mov eax, ebx
call fcn.00410a10
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a08
lea eax, [ebp - 4]
call fcn.0040400c
ret

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

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, eax
push 1
push ebx
call sub.wsock32.dll_shutdown
push 0
push 0x400
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_recv
test eax, eax
jg 0x410a21
push ebx
call sub.wsock32.dll_closesocket
add esp, 0x404
pop ebx
ret

Function at 0x410a48
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
sete byte [0x425878]
add esp, 0x190
ret
Function at 0x410b38
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x410c1d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00410ad4
mov esi, eax
test esi, esi
jle 0x410bff
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404504
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
push edi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x410bff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042ac
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404504
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410c24
lea eax, [ebp - 0xc]
call fcn.0040400c
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x410c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x410d5a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 4]
mov al, 0x5c
call fcn.00410ad4
mov esi, eax
test esi, esi
jle 0x410d3c
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404504
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x410d3c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004042ac
mov ecx, eax
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 4]
call fcn.00404504
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004044a4
mov edi, eax
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x410d33
mov eax, dword [ebp - 0x18]
call fcn.00402544
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x410d2c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x410d23
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov bl, 1
jmp 0x410d33
mov eax, esi
call fcn.00402564
jmp 0x410d33
mov eax, esi
call fcn.00402564
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410d61
lea eax, [ebp - 0xc]
call fcn.0040400c
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x411f9c
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x412029
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
push 1
push 0
push 0x41203c
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x412013
push 4
mov eax, dword [ebp - 4]
call fcn.004044a4
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x41200d
mov dword [ebp - 8], 0x2b5c
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call sub.advapi32.dll_QueryServiceStatusEx
mov edi, dword [ebp - 0x10]
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412030
lea eax, [ebp - 4]
call fcn.0040400c
ret
Function at 0x412040
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x412160
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41207d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
lea eax, [ebp - 0x10]
push eax
push 0x412178
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x4120a7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4120ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
push esi
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jne 0x412107
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x41211d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x412154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41216c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4123d8
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffaf4
mov esi, edx
mov ebx, eax
lea edi, [esp + 0x408]
mov ebp, esp
mov eax, edi
call fcn.004122cc
mov edx, edi
mov eax, ebx
call fcn.004122bc
mov edx, edi
mov eax, esi
call fcn.004122bc
mov dword [ebp], 0xf
xor eax, eax
mov dword [ebp + 4], eax
push ebp
push 0
push 0
push edi
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x4123ef
mov edx, edi
mov eax, ebx
call fcn.004122a4
test al, al
je 0x412464
lea eax, [esp + 8]
mov edx, 0x400
call fcn.00405b8c
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_recv_1
test eax, eax
jle 0x4124ac
push 0
push eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_send_1
mov edx, edi
mov eax, esi
call fcn.004122a4
test al, al
je 0x4123ef
lea eax, [esp + 8]
mov edx, 0x400
call fcn.00405b8c
push 0
push 0x400
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_recv_1
test eax, eax
jle 0x4124ac
push 0
push eax
lea eax, [esp + 0x10]
push eax
push ebx
call sub.wsock32.dll_send_1
jmp 0x4123ef
add esp, 0x50c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x412878
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x412979
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.0040400c
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.00405b8c
push 0
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_recv_1
inc eax
je 0x412963
lea edx, [ebp - 0x408]
lea eax, [ebp - 3]
mov ecx, 3
call fcn.00405b84
cmp byte [ebp - 3], 5
jne 0x4128ec
cmp byte [ebp - 2], 1
je 0x4128f0
xor eax, eax
jmp 0x4128f2
mov al, 1
test al, al
jne 0x41290f
lea eax, [ebp - 8]
mov edx, 0x412990
call fcn.004040a4
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00412354
jmp 0x412963
mov al, byte [ebp - 1]
sub al, 1
jae 0x41294c
lea eax, [ebp - 0x408]
mov edx, 0x400
call fcn.00405b8c
mov byte [ebp - 0x408], 5
mov byte [ebp - 0x407], 0
push 0
push 2
lea eax, [ebp - 0x408]
push eax
push esi
call sub.wsock32.dll_send_1
inc eax
je 0x412963
mov bl, 1
jmp 0x412963
lea eax, [ebp - 8]
mov edx, 0x412990
call fcn.004040a4
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00412354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412980
lea eax, [ebp - 8]
call fcn.0040400c
ret

Function at 0x412994
Capabilities:
Create tcp socket

Disassembly:
push ebx
push ecx
mov ebx, dword [0x4258e4]
push 6
push 1
push 2
call sub.wsock32.dll_socket_1
mov dword [esp], eax
mov eax, ebx
call fcn.00412878
test al, al
je 0x4129ef
mov edx, esp
mov eax, ebx
call fcn.004124b8
test al, al
je 0x4129dd
mov edx, dword [esp]
mov eax, ebx
call fcn.004123d8
mov eax, dword [esp]
push eax
call sub.wsock32.dll_closesocket_1
push ebx
call sub.wsock32.dll_closesocket_1
jmp 0x4129fe
mov eax, dword [esp]
push eax
call sub.wsock32.dll_closesocket_1
push ebx
call sub.wsock32.dll_closesocket_1
pop edx
pop ebx
ret
mov eax, dword [esp]
push eax
call sub.wsock32.dll_closesocket_1
push ebx
call sub.wsock32.dll_closesocket_1
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404494
mov eax, dword [ebp - 8]
call fcn.00404494
xor eax, eax
push ebp
push 0x412bd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00410974
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412bb4
mov dword [0x4258e4], ebx
lea eax, [ebp - 0x3b]
mov edx, dword [ebp - 4]
call fcn.00407bdc
push 0
push 0x33
lea eax, [ebp - 0x3b]
push eax
push ebx
call sub.wsock32.dll_send
inc eax
je 0x412b7a
call fcn.00412994
jmp 0x412b7a
mov eax, dword [0x424494]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412bde
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404030
ret
Function at 0x412e78
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 1
xor edx, edx
push ebp
push 0x413060
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x40ab34]
call fcn.00403544
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x41304f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call sub.wsock32.dll_recv
inc eax
je 0x413035
cmp dword [ebp - 0x14], 0
je 0x41302f
mov eax, dword [ebp - 8]
call fcn.00402544
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x413028
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx]
cmp dword [ebp - 0x14], 0
jle 0x412f94
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jle 0x412f16
mov eax, dword [ebp - 8]
jmp 0x412f19
mov eax, dword [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
je 0x412f84
cmp ebx, 0xffffffff
je 0x412f84
xor eax, eax
push ebp
push 0x412f63
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [ebp - 0x20]
call fcn.0040acfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x412f78
sub dword [ebp - 0x14], ebx
add dword [ebp - 0x10], ebx
mov byte [ebp - 9], 1
jmp 0x412f8a
mov byte [ebp - 9], 0
jmp 0x412f94
cmp dword [ebp - 0x14], 0
jg 0x412f09
cmp byte [ebp - 9], 0
je 0x413012
mov eax, dword [ebp - 0x20]
call fcn.0040abc0
mov dword [ebp - 0x14], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
call fcn.0040b628
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b1bc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040acfc
mov eax, dword [ebp - 0x1c]
call fcn.00402564
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413039
mov eax, dword [ebp - 0x18]
call fcn.00402564
ret
mov byte [ebp - 9], 1
jmp 0x413039
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413056
mov eax, dword [ebp - 0x20]
call fcn.00403574
ret
Function at 0x413078
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404494
xor eax, eax
push ebp
push 0x4130ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004042ac
mov esi, eax
test esi, esi
jle 0x4130cc
mov ebx, 1
lea eax, [ebp - 4]
call fcn.004044fc
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ebx - 1]
xor edx, edi
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x4130b2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4130f4
lea eax, [ebp - 4]
call fcn.0040400c
ret

Function at 0x4130fc
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4131ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x29a
push 0
push 4
lea eax, [ebp - 4]
push eax
push ebx
call sub.wsock32.dll_send
inc eax
je 0x4131cd
push 0
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.wsock32.dll_recv
cmp eax, 0x1c
jne 0x4131c9
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x24]
call fcn.00404250
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00413078
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 8]
mov ecx, 0xff
call fcn.00404288
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x40]
mov cl, 0x14
call fcn.00402c40
push 0
push 0x1c
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.wsock32.dll_send
cmp eax, 0x1c
jne 0x4131c5
push 0
push 4
lea eax, [ebp - 4]
push eax
push ebx
call sub.wsock32.dll_recv
inc eax
je 0x4131c1
cmp dword [ebp - 4], 0xd
jne 0x4131bd
mov bl, 1
jmp 0x4131cf
xor ebx, ebx
jmp 0x4131cf
xor ebx, ebx
jmp 0x4131cf
xor ebx, ebx
jmp 0x4131cf
xor ebx, ebx
jmp 0x4131cf
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4131f4
lea eax, [ebp - 0x44]
call fcn.0040400c
lea eax, [ebp - 8]
call fcn.0040400c
ret
Function at 0x414d40
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov eax, esp
xor ecx, ecx
mov edx, 0x94
call fcn.00402d18
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x414dbb
cmp dword [esp + 0x10], 2
jne 0x414dbb
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x414d9d
mov edx, dword [esp + 8]
test edx, edx
jne 0x414d87
mov ebx, 0x32
jmp 0x414d9d
cmp edx, 2
jne 0x414d93
mov ebx, 0x34
jmp 0x414d9d
cmp edx, 1
jne 0x414d9d
mov ebx, 0x33
cmp eax, 6
jne 0x414dbb
mov eax, dword [esp + 8]
test eax, eax
jne 0x414db1
mov ebx, 0x3c
jmp 0x414dbb
cmp eax, 1
jne 0x414dbb
mov ebx, 0x3d
mov eax, ebx
add esp, 0x94
pop ebx
ret