joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 4
mov dword [ebp - 0x208], edi
movzx ebx, byte [edx + edi + 0x3049c]
mov ecx, ebx
mov esi, ebx
and esi, 1
shr ecx, 1
dec ecx
or esi, 2
shl esi, cl
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 1
sub edi, esi
mov dword [ebp - 0x214], ecx
test ecx, ecx
je 0x408e33
jmp 0x408de6
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
sub ecx, ebx
add ecx, esi
movzx ecx, word [edx + ecx*2 + 0x3290a]
mov eax, edi
and eax, 1
mov ebx, eax
neg ebx
shr ecx, 4
sar ebx, 4
and ebx, 0x7f
xor ecx, ebx
mov ecx, dword [edx + ecx*4 + 0x30c9c]
add dword [ebp - 0x20c], ecx
mov ecx, dword [ebp - 0x210]
add ecx, ecx
or ecx, eax
shr edi, 1
dec dword [ebp - 0x214]
mov dword [ebp - 0x210], ecx
jne 0x408de0
mov edi, dword [ebp - 0x208]
mov eax, dword [ebp - 0x20c]
mov dword [ebp + edi*4 - 0x204], eax
inc edi
mov dword [ebp - 0x208], edi
cmp edi, 0x80
jb 0x408da1
lea esi, [ebp - 0x204]
sub esi, edx
lea ecx, [edx + 0x3270c]
lea ebx, [edx + 0x31b54]
sub esi, 0x31b4c
lea edi, [edx + 0x3174c]
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], 4
jmp 0x408ea0
xor ecx, ecx
mov dword [ebp - 0x214], ecx
cmp dword [edx + 0x32390], ecx
jbe 0x408f10
mov eax, ecx
or eax, 0x40
xor esi, esi
cmp eax, 1
je 0x408ef8
lea esp, [esp]
mov ebx, dword [ebp - 0x208]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebx, word [ebx + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebx, 4
xor ebx, eax
add esi, dword [edx + ebx*4 + 0x30c9c]
mov eax, ecx
cmp eax, 1
jne 0x408ec0
mov ebx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x214]
mov dword [edi + ecx*4], esi
inc ecx
mov dword [ebp - 0x214], ecx
cmp ecx, dword [edx + 0x32390]
jb 0x408eb0
mov esi, dword [ebp - 0x210]
mov eax, 0xe
cmp dword [edx + 0x32390], eax
jbe 0x408f36
lea ecx, [ecx]
mov ecx, eax
shr ecx, 1
sub ecx, 5
shl ecx, 4
add dword [edi + eax*4], ecx
inc eax
cmp eax, dword [edx + 0x32390]
jb 0x408f20
mov eax, dword [edi]
mov dword [ebx - 8], eax
mov ecx, dword [edi + 4]
mov dword [ebx - 4], ecx
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov ecx, dword [edi + 0xc]
mov dword [ebx + 4], ecx
mov eax, 4
lea ecx, [ebx + 8]
jmp 0x408f60
movzx ebx, byte [edx + eax + 0x3049c]
mov ebx, dword [edi + ebx*4]
add ebx, dword [esi + ecx]
inc eax
mov dword [ecx], ebx
add ecx, 4
cmp eax, 0x80
jb 0x408f60
mov ebx, dword [ebp - 0x20c]
sub dword [ebp - 0x208], 0xffffff80
add ebx, 0x200
sub esi, 0x200
add edi, 0x100
dec dword [ebp - 0x218]
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x210], esi
jne 0x408ea0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [edx + 0x3baf0], 0
pop ebx
call fcn.0040dae7
mov esp, ebp
pop ebp
ret
Function at 0x40a590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4aee00], ecx
inc edx
cmp edx, 0x100
jb 0x40a592
ret

Function at 0x40a640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40a66a
push esi
lea ecx, [ecx]
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4aee00]
inc edx
dec ecx
jne 0x40a650
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], 0x20
mov dword [eax + 0x50], 1
mov dword [eax + 0x48], 4
mov dword [eax + 0x4c], edx
mov dword [eax + 0x54], edx
lea esi, [eax + 0x6c]
lea ecx, [ecx]
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jb 0x40c6a0
pop esi
pop ebp
ret

Function at 0x40dae7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d080]
jne 0x40daf1
repz ret
jmp fcn.0040efbf
Function at 0x418dfc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410716
and dword [ebp - 0x14], 0
cmp dword [0x4aecb8], 0
mov dword [ebp - 0x18], eax
jne 0x418eaf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418f57
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x418f57
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4aecb8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4aecbc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4aecc0], eax
call edi
push eax
call esi
mov dword [0x4aecc8], eax
test eax, eax
je 0x418eaf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4aecc4], eax
mov eax, dword [0x4aecc4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418f08
cmp dword [0x4aecc8], ecx
je 0x418f08
push eax
call esi
push dword [0x4aecc8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418f08
test ebx, ebx
je 0x418f08
call edi
test eax, eax
je 0x418eff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418eff
test byte [ebp - 8], 1
jne 0x418f08
or dword [ebp + 0x10], 0x200000
jmp 0x418f3b
mov eax, dword [0x4aecbc]
cmp eax, dword [ebp - 0x18]
je 0x418f3b
push eax
call esi
test eax, eax
je 0x418f3b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418f3b
mov eax, dword [0x4aecc0]
cmp eax, dword [ebp - 0x18]
je 0x418f3b
push eax
call esi
test eax, eax
je 0x418f3b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4aecb8]
call esi
test eax, eax
je 0x418f57
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418f59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dae7
leave
ret
Function at 0x402f50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmpsd dword [esi], dword es:[edi]
call fcn.00402cb2
inc ebp
cld
or eax, 0xa8458dab
push eax
call fcn.00402cc2
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00402c77
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x402fa0
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00402cb2
cmp al, 0xe1
dec ebp
and dword [ebp - 0x17af3fbb], ecx
invalid

Function at 0x406750
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004099d0
test eax, eax
je 0x406782
mov eax, 1
jmp 0x406827
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067a1
xor eax, eax
jmp 0x406827
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40680e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406827
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x401060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401079
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4010b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4010b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010a0
cmp esi, eax
jb 0x4010ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401190
Capabilities:
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x14124
call fcn.0047f7e0
mov eax, dword [0x4f2888]
xor eax, esp
mov dword [esp + 0x14120], eax
push ebx
push esi
push edi
push 4
lea eax, [esp + 0x14]
push eax
mov esi, ecx
mov ecx, dword [esi + 0x14]
push 0x1001
push 0xffff
push ecx
mov dword [esp + 0x24], 0x14000
mov byte [esi + 0x49], 0
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edx, dword [esi]
mov eax, dword [edx + 0x380]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401322
cmp byte [esi + 0x48], 0
mov dword [esp + 0x18], 0xb4
mov dword [esp + 0x1c], 0
je 0x401322
mov eax, dword [esi]
cmp byte [eax + 0x1310], 0
jne 0x401322
mov edx, dword [esi + 4]
mov edx, dword [edx + 0x34]
lea ecx, [esi + 4]
push 0x14000
lea eax, [esp + 0x12c]
push eax
xor edi, edi
call edx
mov ebx, eax
test ebx, ebx
je 0x401313
cmp byte [esi + 0x48], 0
je 0x401322
jmp 0x401250
mov eax, dword [esi]
cmp byte [eax + 0x1310], 0
jne 0x401307
cmp ebx, edi
jle 0x401307
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x401303
cmp eax, 0xffffffff
je 0x4012e2
mov edx, dword [esi + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4012f7
mov ecx, dword [esp + 0x10]
mov eax, ebx
sub eax, edi
cmp eax, ecx
jl 0x4012b5
mov eax, ecx
mov ecx, dword [esi + 0x14]
push 0
push eax
lea eax, [esp + edi + 0x130]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jle 0x4012dd
mov ecx, dword [esp + 0x14]
add edi, eax
cdq
add dword [ecx + 0x38], eax
adc dword [ecx + 0x3c], edx
jmp 0x4012f7
cmp eax, 0xffffffff
jne 0x401303
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x401303
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x48], 0
jne 0x401250
jmp 0x401322
mov byte [esi + 0x48], 0
cmp byte [esi + 0x48], 0
jne 0x401208
jmp 0x401322
push 0xc8
mov byte [esi + 0x49], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x4c]
lea ecx, [esi + 4]
call eax
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esp + 0x1412c]
pop edi
mov byte [esi + 0x48], 0
pop esi
pop ebx
xor ecx, esp
call fcn.0047f7c9
mov esp, ebp
pop ebp
ret
Function at 0x401bd0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4f2888]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, ecx
lea ecx, [esi + 4]
call fcn.0043102f
call fcn.0042f8f6
test eax, eax
jne 0x401c02
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x28], eax
call fcn.0042f8f6
test eax, eax
jne 0x401c24
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 4]
add eax, 0x10
push ecx
mov dword [esi + 0x30], eax
push 2
mov byte [esi + 0x49], 0
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
mov byte [esi + 0x48], 0
mov eax, esi
pop esi
xor ecx, esp
call fcn.0047f7c9
add esp, 0x194
ret

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

Disassembly:
sub esp, 0x68
mov eax, dword [0x4f2888]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push 1
push 0
push 0
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0xc], eax
pop esi
cmp eax, 0xffffffff
jne 0x40497a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea eax, [esp + 4]
push str.Failed_in_Socket_Creation:__d
push eax
call fcn.004809ea
add esp, 0xc
push 0x10
push str.Socket_Creation
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0047f7c9
add esp, 0x68
ret
mov ecx, dword [esp + 0x64]
xor ecx, esp
mov eax, 1
call fcn.0047f7c9
add esp, 0x68
ret

Function at 0x404990
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4dcf90
push 0x480bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4f2888]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or edi, 0xffffffff
cmp dword [esi + 0xc], edi
je 0x404a25
mov eax, dword [esi + 0x20]
test eax, eax
je 0x404a25
mov ecx, 1
mov word [ebp - 0x1c], cx
xor edx, edx
mov word [ebp - 0x1a], dx
mov eax, dword [eax]
cmp eax, edi
je 0x404a11
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov edx, dword [esi + 0x20]
mov eax, dword [edx]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esi + 0x20]
mov dword [ecx], edi
mov dword [esi + 0xc], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00404a46
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404dc0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4b04cc
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4f2888]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, esp
push eax
lea eax, [esp + 0x1ac]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
push ebx
mov esi, ecx
push ebx
mov dword [esi], vtable.NetworkController.0
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x5c], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x60], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x64], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x68], eax
call edi
mov dword [esi + 0x6c], eax
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x24], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x26], bl
mov byte [esi + 4], bl
push 0x32001
mov dword [0x4f3cf8], esi
call fcn.0042d6ea
push 0x32000
push ebx
push eax
mov dword [esi + 0x70], eax
call fcn.00480970
push 0x32001
mov dword [esi + 0x74], ebx
call fcn.0042d6ea
push 0x32000
push ebx
push eax
mov dword [esi + 0x78], eax
call fcn.00480970
push 0x44
mov dword [esi + 0x80], ebx
mov dword [esi + 0x7c], ebx
call fcn.0042d6b0
push 0x24
mov dword [esi + 0x20], eax
call fcn.0042d6b0
push 0x5001
mov edi, eax
call fcn.0042d6ea
push 0x24
mov dword [edi + 0x1c], eax
call fcn.0042d6b0
push 0x5001
mov ebp, eax
call fcn.0042d6ea
push 0xc
mov dword [ebp + 0x1c], eax
call fcn.0042d6b0
add esp, 0x38
mov dword [esp + 0x14], eax
mov dword [esp + 0x1b4], ebx
cmp eax, ebx
je 0x404ee7
mov ecx, eax
call fcn.00404b20
jmp 0x404ee9
xor eax, eax
mov ecx, dword [esi + 0x20]
push 0xc
mov dword [esp + 0x1b8], 0xffffffff
mov dword [ecx + 0xc], eax
call fcn.0042d6b0
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x1b4], 1
cmp eax, ebx
je 0x404f20
mov ecx, eax
call fcn.00404b20
jmp 0x404f22
xor eax, eax
mov edx, dword [esi + 0x20]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0x20]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x20], ebx
mov eax, 0x5000
mov dword [ebp + 0x14], eax
mov edx, dword [esi + 0x20]
mov dword [edx + 8], ebp
mov ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
mov dword [edi + 0x20], ebx
mov edx, dword [esi + 0x20]
mov dword [edx + 4], edi
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add eax, 0x14
push eax
call edi
mov ecx, dword [esi + 0x20]
add ecx, 0x2c
push ecx
call edi
lea edx, [esp + 0x18]
push edx
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
lea eax, [esi + 0x44]
push eax
call edi
mov eax, esi
mov ecx, dword [esp + 0x1ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0047f7c9
add esp, 0x1a4
ret
Function at 0x405b00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
xor eax, eax
cmp dword [ecx + 0xc], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], eax
jne 0x405b18
xor eax, eax
add esp, 8
ret
mov edx, dword [ecx + 0x20]
mov edx, dword [edx + 4]
push esi
mov esi, dword [edx + 0x1c]
mov dword [edx + 0x18], esi
mov edx, dword [ecx + 0x20]
mov edx, dword [edx + 4]
mov dword [edx + 0x14], 0x5000
mov edx, dword [ecx + 0x20]
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx + 4]
push 0x405aa0
push eax
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x14]
push edx
push 1
add eax, 0x14
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
pop esi
cmp eax, 0xffffffff
jne 0x405b7e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x405b12
mov eax, 1
add esp, 8
ret

Function at 0x405ce0
Capabilities:
Connect socket
Create thread
Get system information on windows
Set socket configuration

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00404fc0
mov ecx, esi
call fcn.00404910
movzx ecx, word [esi + 0x40]
mov eax, 2
lea ebp, [esi + 0x10]
push ecx
mov word [ebp], ax
call dword [sym.imp.WSOCK32.dll_htons]
lea edx, [esi + 0x27]
push edx
mov word [esi + 0x12], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ebx, dword [sym.imp.WS2_32.dll_WSAConnect]
mov dword [esi + 0x14], eax
xor edi, edi
mov eax, dword [esi + 0xc]
push 0
push 0
push 0
push 0
push 0x10
push ebp
push eax
call ebx
cmp eax, 0xffffffff
jne 0x405d59
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esi + 0x24], 0
cmp edi, 2
je 0x405e09
inc edi
cmp edi, 3
jl 0x405d25
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x18]
mov dword [eax], ecx
push edx
mov byte [esi + 0x24], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x405660
push 0
push 0
call fcn.0048015c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push eax
call edi
cmp byte [esi + 0x25], 0
jne 0x405dc8
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push 0x405af0
push 0
push 0
call fcn.0048015c
add esp, 0x18
push eax
call edi
cmp byte [esi + 0x26], 0
jne 0x405dea
lea edx, [esp + 0x10]
push edx
push 0
push esi
push 0x405c30
push 0
push 0
call fcn.0048015c
add esp, 0x18
push eax
call edi
mov eax, dword [esi + 0x68]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push eax
call edi
mov ecx, dword [esi + 0x64]
push ecx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
Function at 0x4084a0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4b06b8
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4bb7e4
mov dword [esp + 0x1c], 0
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
push 0x4bb7e4
call esi
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0xc]
test esi, esi
jg 0x40852c
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
lea ebx, [esi + 1]
push ebx
call fcn.0042d6ea
push ebx
mov edi, eax
push 0
push edi
call fcn.00480970
mov edx, dword [esp + 0x30]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
add esp, 0x10
or eax, ecx
jge 0x408566
push esi
lea ecx, [esp + 0x24]
call fcn.00401a00
mov edx, dword [esp + 0x20]
push esi
push edx
push edi
call fcn.00480600
add esp, 0xc
push 0
push 0
push 0
push 0
push edi
push 0x4082a0
call fcn.00436b4e
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4085ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4