joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4075d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f634]
push ebx
push esi
push edi
push 0x6a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x412c64
mov esi, eax
call ebx
mov edi, dword [0x412c84]
push 0x412c64
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x2710
push edi
lea ecx, [ebp - 0x104]
push str.UserCount:__d__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
push 0
push 0x401
push esi
call edi
push 0x4dc4f0
call ebx
mov ebx, dword [0x4dc518]
push 0x4dc4f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x2000
push ebx
lea eax, [ebp - 0x104]
push str.QueueSize:__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x401
push esi
call edi
push 0
push 2
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091cb
mov esp, ebp
pop ebp
ret

Function at 0x407c80
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 0x407ca8
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 0x407cb5
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.00407030
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x407ce1
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 0x407cc7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x407d06
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 0x407d17
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407d2d
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 0x407d40
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40f018]
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 [0x4dc4b4], eax
cmp eax, 0xffffffff
jne 0x407d92
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__WSASocket___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091cb
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 [0x4dc4bc]
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 [0x4dc4b4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x407df5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__bind___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4dc4b4]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x407e2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__listen___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004091cb
mov esp, ebp
pop ebp
ret

Function at 0x407e40
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 0x407e6e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__socket___failed_with_error:__d
push 1
call fcn.00408ea0
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 [0x4dc4b8], eax
test eax, eax
jne 0x407ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.00408ea0
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 0x407eb0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x4dc4b0
push 0x4087c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dc4c0], eax
test eax, eax
jne 0x407eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x407f10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x407f20
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 0x407f3d
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x4dc4e4], eax
test eax, eax
je 0x407f89
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x4dc4c4
push 0
push 0
push 0x4dc4b0
push 0x408950
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x407f92
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x407fb1
inc edi
add esi, 4
cmp edi, dword [0x4dc4e4]
jb 0x407f56
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._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00408ea0
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._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407fd0
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x4dc520], eax
test eax, eax
jne 0x408003
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateSemaphore___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x4dc4b0
push 0x408a40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4dc524], eax
test eax, eax
jne 0x40803d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x408063
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x408290
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0x4dc52c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
js 0x4082fb
xor eax, eax
cmp esi, 0x14
setl al
test eax, eax
je 0x4082fb
mov edi, esi
imul edi, edi, 0x70
add edi, 0x4dbbf0
mov eax, dword [edi + 4]
test eax, eax
js 0x4082fb
xor ecx, ecx
cmp eax, 0x14
setl cl
mov eax, ecx
test eax, eax
je 0x4082fb
cmp dword [edi + 8], 0
je 0x4082fb
cmp dword [edi + 0x1c], 0xffffffff
je 0x4082fb
cmp ebx, 0x2000
jle 0x408310
push ebx
push esi
push str._SocketTCP__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00408ea0
add esp, 0x10
push 0x4dc52c
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 0x40838f
mov eax, dword [esi + 0x12028]
lea ecx, [eax + ebx]
cmp ecx, 0x10000
jle 0x40835f
mov esi, dword [ebp + 8]
push ecx
push esi
push str._SocketTCP__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00408ea0
add esp, 0x10
mov eax, esi
mov ecx, 0x4dc4b0
call fcn.00408410
push 0x4dc52c
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 sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x12028], ebx
push 0x4dc52c
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 sub.MSVCR100.dll_memcpy
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 0x40837a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x40837a
call esi
push eax
push str._SocketTCP__WSASend___failed_with_error:__d
push 1
call fcn.00408ea0
mov eax, dword [ebp + 8]
add esp, 0xc
jmp 0x408340
Function at 0x4084b0
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 0x4084eb
xor eax, eax
cmp ebx, 0x14
setl al
test eax, eax
je 0x4084eb
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4084fa
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00408410
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.00408070
test al, al
jne 0x40852d
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00408410
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 + 0x4dbc0c]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x4085b2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4085b2
call esi
push eax
push str._SocketTCP__WSARecv___failed_with_error:__d
push 1
call fcn.00408ea0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.00408410
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 0x4085d0
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 0x40860c
xor ecx, ecx
cmp eax, 0x14
setl cl
test ecx, ecx
je 0x40860c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40861c
mov ecx, ebx
call fcn.00408410
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, 0x4dbbf0
cmp ecx, eax
jl 0x408700
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x40865f
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 0x4086ce
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call sub.MSVCR100.dll_memcpy
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 dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
add dword [esi + 0x12028], 0xffffe000
jmp 0x408715
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call sub.MSVCR100.dll_memcpy
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 0x40870e
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 0x408776
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x408776
call esi
push eax
push str._SocketTCP__WSASend___failed_with_error:__d
push 1
call fcn.00408ea0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
call fcn.00408410
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 0x408b70
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 0x408b9d
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 0x408bb3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x408bc3
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x408bd0
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 [0x4107ec], eax
cmp eax, 0xffffffff
jne 0x408c4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__WSASocket___failed_with_error:__d
push 1
call fcn.00408ea0
mov eax, dword [0x410800]
add esp, 0xc
test eax, eax
je 0x408c2a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x410800]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x410800], 0
mov eax, dword [0x4107ec]
cmp eax, 0xffffffff
je 0x408c45
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x4107ec], 0xffffffff
xor al, al
pop esi
pop ebp
ret 4
mov ecx, 2
push esi
mov word [0x4107f0], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 8]
push edx
mov dword [0x4107f4], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x4107f4], 0xffffffff
mov word [0x4107f2], ax
jne 0x408cc7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x408caf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__gethostbyname___failed_with_error:__d
push 1
call fcn.00408ea0
add esp, 0xc
mov esi, 0x4107e8
call fcn.00408cf0
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 0x4107f4
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push 0x1000
push 0
push 0x411808
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [0x412808], 0
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x408cf0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x18]
test eax, eax
je 0x408d11
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 0x408d27
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
ret
Function at 0x408d30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4107ec], 0xffffffff
push esi
mov esi, eax
je 0x408d7a
mov eax, dword [0x412808]
lea ecx, [eax + esi]
push esi
cmp ecx, 0x1000
jle 0x408d81
push str._SocketUDP__Max_msg_size__Size:__d_
push 1
call fcn.00408ea0
push 0x1000
push 0
push 0x411808
call sub.MSVCR100.dll_memset
add esp, 0x18
mov dword [0x412808], 0
xor al, al
pop esi
pop ebp
ret 4
mov edx, dword [ebp + 8]
push edx
lea eax, [eax + 0x411808]
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x412808]
mov ecx, dword [0x4107ec]
add esp, 0xc
push 0x10
push 0x4107f0
push 0
add eax, esi
push eax
push 0x411808
push ecx
mov dword [0x412808], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x408ddd
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x408e01
call esi
push eax
push str._SocketUDP__sendto___failed_with_error:__d
jmp 0x408d55
mov ecx, dword [0x412808]
sub ecx, eax
push ecx
lea edx, [eax + 0x411808]
push edx
push 0x411808
mov dword [0x412808], ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x408e10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x408e35
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x408e8d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4091cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f018]
jne 0x4091d5
repz ret
jmp fcn.00409704
Function at 0x401890
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x214]
sub esp, 0x288
mov dword [ebp - 0x270], eax
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor ecx, ecx
sub esp, 4
mov word [ebp - 0x214], cx
mov edi, eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
test eax, eax
jne 0x4018ec
test byte [section..data], 2
jne 0x401a94
lea eax, [ebp - 0x268]
mov dword [esp + 0x10], 0
xor edx, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x264]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x268], 0x28
mov word [ebp - 0x264], dx
call sub.msi.dll_MsiGetFileVersionW
sub esp, 0x14
test eax, eax
je 0x40193f
test byte [section..data], 2
jne 0x401a67
mov edx, dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x26c]
mov dword [esp], edi
mov dword [esp + 0xc], 0
mov dword [ebp - 0x27c], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0xa
call edx
mov ecx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x268], eax
add eax, 1
sub esp, 0x10
lea ebx, [eax + eax]
mov dword [ebp - 0x274], ecx
mov dword [esp], ebx
add ebx, 0x50
mov dword [ebp - 0x278], eax
call ecx
mov dword [esp], ebx
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x26c], eax
mov esi, eax
call ecx
mov ebx, eax
test eax, eax
je 0x401a42
test esi, esi
je 0x401a42
xor eax, eax
mov edx, dword [ebp - 0x27c]
mov word [esi], ax
mov eax, dword [ebp - 0x278]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xa
mov dword [esp], edi
call edx
lea eax, [ebp - 0x264]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x26c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x268]
add eax, 0x29
mov dword [esp + 4], eax
call fcn.00401310
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
mov dword [esp + 0x14], 0
movzx eax, ax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.msi.dll_MsiMessageBoxW
sub esp, 0x18
mov eax, dword [ebp - 0x26c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x270]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.MsiGetFileVersion_failed_with__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401840
jmp 0x40193f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.GetModuleFileName_failed:__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401840
jmp 0x4018ec
Function at 0x401bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [eax + eax + 6]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x401c51
mov ecx, eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ecx + eax + 4], dx
add eax, 2
test dx, dx
jne 0x401c20
mov eax, dword [ebx]
mov dword [ecx], 0
test eax, eax
je 0x401c48
lea esi, [esi]
mov ebx, eax
mov eax, dword [eax]
test eax, eax
jne 0x401c40
mov dword [ebx], ecx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [section..data], 2
jne 0x401c67
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.Out_of_memory__n
mov dword [esp + 8], str.StringListAppend
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401840
jmp 0x401c5a