joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call fcn.0040c463
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x407cd7
push ebx
push str.__s__Could_not_open_file
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x407cfa
push eax
call fcn.0040c7af
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.0040c26b
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x407d33
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407d58
push ebx
push str.__s__Could_not_read_file
jmp 0x407d13
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408d70
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x42e188
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x42e1a8]
push 0x42e188
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x61a80
push esi
push str.1.0.0.1
lea eax, [ebp - 0x108]
push str.__s__JoinServer__AccountCount_:__d__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x4f711c]
add esp, 0x14
lea ecx, [ebp - 0x108]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
call fcn.00408df0
call fcn.00408f40
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c454
mov esp, ebp
pop ebp
ret
Function at 0x4095b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x74]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x4095d8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x74]
push eax
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x4095e5
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.00408960
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x409611
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call ebx
mov dword [edi], 0
add edi, 4
dec dword [ebp - 4]
jne 0x4095f7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x409636
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edx
call ebx
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x409647
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40965d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x502a8c], eax
cmp eax, 0xffffffff
jne 0x4096c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSASocket___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [0x502a94]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [0x502a8c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x409725
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__bind___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x502a8c]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40975f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__listen___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c454
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040c454
mov esp, ebp
pop ebp
ret
Function at 0x409770
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40979e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x502a90], eax
test eax, eax
jne 0x4097d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x4097e0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x502a88
push 0x40a0f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x502a98], eax
test eax, eax
jne 0x40981a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x409840
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
ret
mov al, 1
ret

Function at 0x409850
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jbe 0x40986d
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x502abc], eax
test eax, eax
je 0x4098b9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x502a9c
push 0
push 0
push 0x502a88
push 0x40a260
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x4098c2
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4098e1
inc edi
add esi, 4
cmp edi, dword [0x502abc]
jb 0x409886
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409900
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x502af8], eax
test eax, eax
jne 0x409933
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateSemaphore___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x502a88
push 0x40a350
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x502afc], eax
test eax, eax
jne 0x40996d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x409993
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x409bc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x502b04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
js 0x409c30
xor eax, eax
cmp esi, 0x190
setl al
test eax, eax
je 0x409c30
mov edi, esi
imul edi, edi, 0x70
add edi, 0x4f7b88
mov eax, dword [edi + 4]
test eax, eax
js 0x409c30
xor ecx, ecx
cmp eax, 0x190
setl cl
mov eax, ecx
test eax, eax
je 0x409c30
cmp dword [edi + 8], 0
je 0x409c30
cmp dword [edi + 0x1c], 0xffffffff
je 0x409c30
cmp ebx, 0x2000
jle 0x409c45
push ebx
push esi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0040a7b0
add esp, 0x10
push 0x502b04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x24]
cmp dword [esi + 0x20], 0
jle 0x409cc4
mov eax, dword [esi + 0x12028]
lea ecx, [eax + ebx]
cmp ecx, 0x10000
jle 0x409c94
mov esi, dword [ebp + 8]
push ecx
push esi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0040a7b0
add esp, 0x10
mov eax, esi
mov ecx, 0x502a88
call fcn.00409d40
push 0x502b04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [eax + esi + 0x2028]
push eax
call fcn.0040de00
add esp, 0xc
add dword [esi + 0x12028], ebx
push 0x502b04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esi + 0x24]
push ecx
push eax
call fcn.0040de00
add esp, 0xc
xor ecx, ecx
push ecx
push esi
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [esi + 0x24]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
push 1
mov dword [eax], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2024], ecx
push eax
mov eax, dword [edi + 0x1c]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x409caf
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x409caf
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040a7b0
mov eax, dword [ebp + 8]
add esp, 0xc
jmp 0x409c75
Function at 0x409de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x409e1e
xor eax, eax
cmp ebx, 0x190
setl al
test eax, eax
je 0x409e1e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x409e2d
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00409d40
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
add dword [esi + 0x2024], eax
mov eax, dword [ebp + 8]
push ebx
lea edi, [esi + 0x24]
push eax
call fcn.004099a0
test al, al
jne 0x409e60
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00409d40
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2024]
lea edx, [eax + esi + 0x24]
mov dword [esi + 0x18], edx
mov edx, 0x2000
sub edx, eax
xor eax, eax
push eax
mov dword [esi + 0x1c], eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
lea ecx, [esi + 0x14]
imul eax, eax, 0x70
mov dword [ecx], edx
lea edx, [ebp - 0xc]
push edx
push 1
push ecx
mov ecx, dword [eax + 0x4f7ba4]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x409ee5
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x409ee5
call esi
push eax
push str._SocketManager__WSARecv___failed_with_error:__d
push 1
call fcn.0040a7b0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.00409d40
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409f00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x7c]
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x409f3e
xor ecx, ecx
cmp eax, 0x190
setl cl
test ecx, ecx
je 0x409f3e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x409f4e
mov ecx, ebx
call fcn.00409d40
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], ecx
mov ecx, dword [esi + 0x2024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x70
add ebx, 0x4f7b88
cmp ecx, eax
jl 0x40a031
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x409f91
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x409fff
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call fcn.0040de00
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x2028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call fcn.0040c980
add esp, 0x18
add dword [esi + 0x12028], 0xffffe000
jmp 0x40a046
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call fcn.0040de00
mov eax, dword [esi + 0x12028]
mov dword [esi + 0x18], edi
lea edi, [esi + 0x14]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x2024], eax
mov dword [esi + 0x12028], eax
jmp 0x40a03f
lea edx, [ecx + esi + 0x24]
lea edi, [esi + 0x14]
sub eax, ecx
mov dword [esi + 0x18], edx
mov dword [edi], eax
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40a0a7
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x40a0a7
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040a7b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
call fcn.00409d40
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a4a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x40a4cd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40a4e3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x40a4f2
push esi
call fcn.0040c76a
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x40a500
Capabilities:
Create udp socket
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 2
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42ae7c], eax
cmp eax, 0xffffffff
jne 0x40a57c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
push 1
call fcn.0040a7b0
mov eax, dword [0x42ae90]
add esp, 0xc
test eax, eax
je 0x40a55a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x42ae90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42ae90], 0
mov eax, dword [0x42ae7c]
cmp eax, 0xffffffff
je 0x40a575
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x42ae7c], 0xffffffff
xor al, al
pop esi
pop ebp
ret 4
mov ecx, 2
push esi
mov word [0x42ae80], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 8]
push edx
mov dword [0x42ae84], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x42ae84], 0xffffffff
mov word [0x42ae82], ax
jne 0x40a5f7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40a5df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
push 1
call fcn.0040a7b0
add esp, 0xc
mov esi, 0x42ae78
call fcn.0040a620
xor al, al
pop esi
pop ebp
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push 0x42ae84
call fcn.0040de00
add esp, 0xc
push 0x1000
push 0
push 0x42be98
call fcn.0040e170
add esp, 0xc
mov dword [0x42ce98], 0
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40a620
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40a641
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40a657
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
ret
Function at 0x40a660
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42ae7c], 0xffffffff
push esi
mov esi, eax
je 0x40a6aa
mov eax, dword [0x42ce98]
lea ecx, [eax + esi]
push esi
cmp ecx, 0x1000
jle 0x40a6b1
push str._SocketManagerUdp__Max_msg_size__Size:__d_
push 1
call fcn.0040a7b0
push 0x1000
push 0
push 0x42be98
call fcn.0040e170
add esp, 0x18
mov dword [0x42ce98], 0
xor al, al
pop esi
pop ebp
ret 4
mov edx, dword [ebp + 8]
push edx
lea eax, [eax + 0x42be98]
push eax
call fcn.0040de00
mov eax, dword [0x42ce98]
mov ecx, dword [0x42ae7c]
add esp, 0xc
push 0x10
push 0x42ae80
push 0
add eax, esi
push eax
push 0x42be98
push ecx
mov dword [0x42ce98], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40a70d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x40a730
call esi
push eax
push str._SocketManagerUdp__sendto___failed_with_error:__d
jmp 0x40a685
mov ecx, dword [0x42ce98]
sub ecx, eax
push ecx
lea edx, [eax + 0x42be98]
push edx
push 0x42be98
mov dword [0x42ce98], ecx
call fcn.0040c980
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40a740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4295f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040e170
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040ceb7
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40aa70
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 3
cmp edi, ecx
jle 0x40aaa9
lea esp, [esp]
mov eax, 0xcccccccd
mul ecx
shr edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
mov dl, byte [eax + 0x42a858]
xor dl, byte [ecx + esi]
inc ecx
sub dl, byte [eax + 0x42a860]
mov byte [ecx + esi - 1], dl
cmp ecx, edi
jl 0x40aa80
ret

Function at 0x40c454
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4295f0]
jne 0x40c45e
repz ret
jmp fcn.0041159e
Function at 0x41d2eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4295f0]
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.00414296
and dword [ebp - 0x14], 0
cmp dword [0x42df70], 0
mov dword [ebp - 0x18], eax
jne 0x41d39e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d446
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41d446
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42df70], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42df74], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42df78], eax
call edi
push eax
call esi
mov dword [0x42df80], eax
test eax, eax
je 0x41d39e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42df7c], eax
mov eax, dword [0x42df7c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41d3f7
cmp dword [0x42df80], ecx
je 0x41d3f7
push eax
call esi
push dword [0x42df80]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d3f7
test ebx, ebx
je 0x41d3f7
call edi
test eax, eax
je 0x41d3ee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d3ee
test byte [ebp - 8], 1
jne 0x41d3f7
or dword [ebp + 0x10], 0x200000
jmp 0x41d42a
mov eax, dword [0x42df74]
cmp eax, dword [ebp - 0x18]
je 0x41d42a
push eax
call esi
test eax, eax
je 0x41d42a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d42a
mov eax, dword [0x42df78]
cmp eax, dword [ebp - 0x18]
je 0x41d42a
push eax
call esi
test eax, eax
je 0x41d42a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42df70]
call esi
test eax, eax
je 0x41d446
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d448
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c454
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0xe0131cd
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..tls
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5c23737f
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219