joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405500
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ecx, 0xff
ja 0x4055bf
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405520
sub eax, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x4227b0]
mov dword [esi + 0x34], edx
mov edx, dword [ecx + 0x4227b4]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x4227b8]
mov dword [esi + 0x3c], edx
mov ecx, dword [ecx + 0x4227bc]
mov edx, dword [ebp + 8]
mov dword [esi + 0x40], ecx
push edx
mov ecx, esi
call fcn.00405650
mov ecx, esi
call fcn.00405790
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x94]
mov dword [edi], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov byte [esi + 0x9c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x4066b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
push str.AllowableIpList.txt
lea ebx, [esi + 8]
push 0x100
push ebx
call fcn.0040b5b1
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40670b
push ebx
push str.__s__Could_not_open_file
add esi, 0x214
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 + 4], eax
mov eax, dword [esi]
test eax, eax
je 0x40672c
push eax
call fcn.0040b966
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
push eax
call fcn.0040acc6
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x406764
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x214
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 edx, dword [esi + 4]
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406789
push ebx
push str.__s__Could_not_read_file
jmp 0x406744
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x210], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407d30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4275f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5013c8]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x407d6b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x5013c8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5013c8], esi
mov eax, dword [0x5013c4]
cmp eax, esi
je 0x407d81
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5013c4], esi
mov ebx, 0x501394
call fcn.00407280
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x42b7d8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [0x42b7f8]
push 0x42b7d8
call edi
push 0x501394
call esi
mov esi, dword [0x5013bc]
push 0x501394
call edi
push 0x61a80
push ebx
push esi
lea ecx, [ebp - 0x108]
push str.MuEmu_JoinServer_Ex097__QueueSize_:__d___AccountCount_:__d__d_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4f4b90]
add esp, 0x14
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov esi, 0x10
mov eax, dword [esi + 0x501360]
xor edi, edi
cmp eax, edi
je 0x407e1a
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x501360]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x501360], edi
add esi, 4
cmp esi, 0x30
jb 0x407df3
mov eax, dword [0x50136c]
cmp eax, edi
je 0x407e46
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x50136c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x50136c], edi
mov eax, dword [0x501364]
cmp eax, edi
je 0x407e5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x501364], edi
mov eax, dword [0x501360]
cmp eax, 0xffffffff
je 0x407e77
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x501360], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aeaf
mov esp, ebp
pop ebp
ret
Function at 0x407e90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4275f0]
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 [0x501360], eax
cmp eax, 0xffffffff
jne 0x407ee2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSASocket___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aeaf
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 [0x501368]
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 [0x501360]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x407f45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__bind___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aeaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x501360]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x407f7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__listen___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aeaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040aeaf
mov esp, ebp
pop ebp
ret

Function at 0x407f90
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 0x407fbe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.004091a0
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 [0x501364], eax
test eax, eax
jne 0x407ff5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.004091a0
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 0x408000
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x501360
push 0x408ab0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x50136c], eax
test eax, eax
jne 0x40803a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x408060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x408070
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jbe 0x408090
mov eax, 8
xor edi, edi
mov dword [0x501390], eax
test eax, eax
je 0x4080d9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x501370
push 0
push 0
push 0x501360
push 0x408c20
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x4080e2
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x408101
inc edi
add esi, 4
cmp edi, dword [0x501390]
jb 0x4080a6
mov al, 1
pop edi
pop esi
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.004091a0
add esp, 0xc
xor al, al
pop edi
pop esi
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.004091a0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408120
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x5013c4], eax
test eax, eax
jne 0x408155
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateSemaphore___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
pop ecx
ret
push 0
push 0
push 0x501360
push 0x408d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5013c8], eax
test eax, eax
jne 0x408190
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
pop ecx
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4081b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret
Function at 0x4084c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
push edi
cmp ebx, 5
jle 0x4084d6
movzx edi, byte [eax + 5]
jmp 0x4084d8
xor edi, edi
cmp ebx, 4
jle 0x4084e6
movzx ecx, byte [eax + 4]
mov dword [ebp - 4], ecx
jmp 0x4084ed
mov dword [ebp - 4], 0
cmp ebx, 3
jle 0x4084f8
movzx esi, byte [eax + 3]
jmp 0x4084fa
xor esi, esi
cmp ebx, 2
jle 0x408505
movzx edx, byte [eax + 2]
jmp 0x408507
xor edx, edx
cmp ebx, 1
jle 0x408512
movzx ecx, byte [eax + 1]
jmp 0x408514
xor ecx, ecx
test ebx, ebx
jle 0x40851d
movzx eax, byte [eax]
jmp 0x40851f
xor eax, eax
push edi
mov edi, dword [ebp - 4]
push edi
push esi
push edx
push ecx
push eax
push str.SEND_0:__02X__1:__02X__2:__02X__3:__02X__4:__02X__5:__02X
push 0x428764
mov ecx, 2
call fcn.00403750
add esp, 0x20
push 0x5013cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
test eax, eax
js 0x4085a4
xor ecx, ecx
cmp eax, 0x190
setl cl
test ecx, ecx
je 0x4085a4
mov edi, eax
imul edi, edi, 0x6c
add edi, 0x4f6aa0
mov esi, dword [edi]
test esi, esi
js 0x4085a4
xor ecx, ecx
cmp esi, 0x190
setl cl
test ecx, ecx
je 0x4085a4
cmp dword [edi + 4], 0
je 0x4085a4
cmp dword [edi + 0x18], 0xffffffff
je 0x4085a4
cmp ebx, 0x2000
jle 0x4085b9
push ebx
push eax
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.004091a0
add esp, 0x10
push 0x5013cc
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 + 0x20]
cmp dword [esi + 0x20], 0
jle 0x408638
mov eax, dword [esi + 0x12028]
lea ecx, [eax + ebx]
cmp ecx, 0x10000
jle 0x408608
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.004091a0
add esp, 0x10
mov eax, esi
mov ecx, 0x501360
call fcn.004086b0
push 0x5013cc
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.0040c420
add esp, 0xc
add dword [esi + 0x12028], ebx
push 0x5013cc
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.0040c420
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 + 0x18]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x408623
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408623
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.004091a0
mov eax, dword [ebp + 8]
add esp, 0xc
jmp 0x4085e9
Function at 0x408750
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
add ebx, 0x6c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x408817
xor eax, eax
cmp edi, 0x190
setl al
test eax, eax
je 0x408817
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40880d
add dword [esi + 0x2024], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [esi + 0x24]
push eax
call fcn.004081c0
test al, al
je 0x40880d
mov eax, dword [esi + 0x2024]
lea ecx, [eax + esi + 0x24]
mov edx, 0x2000
sub edx, eax
xor eax, eax
push eax
mov dword [esi + 0x1c], eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov dword [esi + 0x18], ecx
mov eax, edi
lea ecx, [esi + 0x14]
imul eax, eax, 0x6c
mov dword [ecx], edx
lea edx, [ebp - 8]
push edx
push 1
push ecx
mov ecx, dword [eax + 0x4f6ab8]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x408817
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408817
call esi
push eax
push str._SocketManager__WSARecv___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, edi
call fcn.004086b0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408830
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 + 0x6c]
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 0x40886e
xor ecx, ecx
cmp eax, 0x190
setl cl
test ecx, ecx
je 0x40886e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40887e
mov ecx, ebx
call fcn.004086b0
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, 0x6c
add ebx, 0x4f6aa0
cmp ecx, eax
jl 0x408964
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x4088c1
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 0x408932
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call fcn.0040c420
mov eax, dword [esi + 0x12028]
add esp, 0xc
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.0040b250
add esp, 0xc
add dword [esi + 0x12028], 0xffffe000
jmp 0x408979
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call fcn.0040c420
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 0x408972
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 + 0x18]
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 0x4089da
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4089da
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.004091a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
call fcn.004086b0
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 0x408ee0
Capabilities:
Create udp socket
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x428770], eax
cmp eax, 0xffffffff
jne 0x408f58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__WSASocket___failed_with_error:__d
push 1
call fcn.004091a0
mov eax, dword [0x428784]
add esp, 0xc
test eax, eax
je 0x408f37
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x428784]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x428784], 0
mov eax, dword [0x428770]
cmp eax, 0xffffffff
je 0x408f52
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x428770], 0xffffffff
xor al, al
pop ebp
ret 4
mov ecx, 2
push esi
mov word [0x428774], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 8]
push edx
mov dword [0x428778], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x428778], 0xffffffff
mov word [0x428776], ax
jne 0x408fcd
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408fb5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManagerUdp__gethostbyname___failed_with_error:__d
push 1
call fcn.004091a0
add esp, 0xc
call fcn.00409000
xor al, al
pop ebp
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push 0x428778
call fcn.0040c420
add esp, 0xc
push 0x1000
push 0
push 0x42978c
call fcn.0040c790
add esp, 0xc
mov dword [0x42a78c], 0
mov al, 1
pop ebp
ret 4

Function at 0x409000
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x428784]
test eax, eax
je 0x409028
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x428784]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x428784], 0
mov eax, dword [0x428770]
cmp eax, 0xffffffff
je 0x409043
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x428770], 0xffffffff
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x428770], 0xffffffff
push esi
mov esi, eax
je 0x40909a
mov eax, dword [0x42a78c]
lea ecx, [eax + esi]
push esi
cmp ecx, 0x1000
jle 0x4090a1
push str._SocketManagerUdp__Max_msg_size__Size:__d_
push 1
call fcn.004091a0
push 0x1000
push 0
push 0x42978c
call fcn.0040c790
add esp, 0x18
mov dword [0x42a78c], 0
xor al, al
pop esi
pop ebp
ret 4
mov edx, dword [ebp + 8]
push edx
lea eax, [eax + 0x42978c]
push eax
call fcn.0040c420
mov eax, dword [0x42a78c]
mov ecx, dword [0x428770]
add esp, 0xc
push 0x10
push 0x428774
push 0
add eax, esi
push eax
push 0x42978c
push ecx
mov dword [0x42a78c], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4090fd
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x409120
call esi
push eax
push str._SocketManagerUdp__sendto___failed_with_error:__d
jmp 0x409075
mov ecx, dword [0x42a78c]
sub ecx, eax
push ecx
lea edx, [eax + 0x42978c]
push edx
push 0x42978c
mov dword [0x42a78c], ecx
call fcn.0040b250
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x409130
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4275f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040c790
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040b751
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 0x40aeaf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4275f0]
jne 0x40aeb9
repz ret
jmp fcn.0040fb69

Function at 0x4118db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x411902
call fcn.004105b1
mov dword [eax], esi
call fcn.0041059e
push 0x16
pop esi
mov dword [eax], esi
call fcn.0041054c
mov eax, esi
jmp 0x411957
test dword [ebp + 0xc], 0xfffffff9
jne 0x4118e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41192f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004105c4
pop ecx
call fcn.0041059e
mov eax, dword [eax]
jmp 0x411957
test al, 0x10
jne 0x411955
test al, 1
je 0x411955
test byte [ebp + 0xc], 2
je 0x411955
call fcn.004105b1
mov dword [eax], 5
call fcn.0041059e
mov dword [eax], 0xd
jmp 0x411926
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41bb44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4275f0]
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.00412e79
and dword [ebp - 0x14], 0
cmp dword [0x42b790], 0
mov dword [ebp - 0x18], eax
jne 0x41bbf7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41bc9f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41bc9f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b790], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b794], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b798], eax
call edi
push eax
call esi
mov dword [0x42b7a0], eax
test eax, eax
je 0x41bbf7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b79c], eax
mov eax, dword [0x42b79c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41bc50
cmp dword [0x42b7a0], ecx
je 0x41bc50
push eax
call esi
push dword [0x42b7a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41bc50
test ebx, ebx
je 0x41bc50
call edi
test eax, eax
je 0x41bc47
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41bc47
test byte [ebp - 8], 1
jne 0x41bc50
or dword [ebp + 0x10], 0x200000
jmp 0x41bc83
mov eax, dword [0x42b794]
cmp eax, dword [ebp - 0x18]
je 0x41bc83
push eax
call esi
test eax, eax
je 0x41bc83
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41bc83
mov eax, dword [0x42b798]
cmp eax, dword [ebp - 0x18]
je 0x41bc83
push eax
call esi
test eax, eax
je 0x41bc83
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b790]
call esi
test eax, eax
je 0x41bc9f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41bca1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aeaf
leave
ret