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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, ecx
push esi
push 0
push 0
push 0x258
push 0x258
push 0
push closesocket
push 0xa0000
push 0x4e1710
push 0x4e16a8
push 0
mov dword [0x4e16a4], esi
call edi
mov dword [0x4e16a0], eax
test eax, eax
jne 0x404f84
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0x6a
push eax
push 0
push 0
push 0
push 0
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, eax
push 0
push esi
call edi
lea eax, [ebp - 0x10]
push eax
push 3
push 0x404
push esi
mov dword [ebp - 0x10], 0x87
mov dword [ebp - 0xc], 0xeb
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
mov edx, dword [0x4e16a0]
push ecx
push edx
call edi
mov eax, dword [0x4e16a0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
Function at 0x406bd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x42c]
push ebx
push esi
push edi
test eax, eax
js 0x406cd9
cmp eax, 2
jge 0x406cd9
mov esi, eax
imul esi, esi, 0x214
lea esi, [esi + ecx + 4]
push edx
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [ecx + 0x42c], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x406cd9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406cb4
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406cd9
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
Function at 0x406cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x406ee7
cmp eax, dword [ecx + 0x42c]
jge 0x406ee7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x406ee7
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x406d76
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x406d76
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x406e33
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406dfd
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x406e33
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ec0
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
Function at 0x406f00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
cmp ecx, 0xff
ja 0x406fbe
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov dword [ebp - 4], edx
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406f20
sub eax, dword [ebp - 4]
shl ecx, 4
mov edx, dword [ecx + 0x40e3e0]
mov dword [esi + 0x34], edx
mov edx, dword [ecx + 0x40e3e4]
mov dword [esi + 0x38], edx
mov edx, dword [ecx + 0x40e3e8]
mov dword [esi + 0x3c], edx
mov ecx, dword [ecx + 0x40e3ec]
mov edx, dword [ebp + 8]
mov dword [esi + 0x40], ecx
push edx
mov ecx, esi
call fcn.00407050
call fcn.00407140
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
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407e00
Capabilities:
Get common file path
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
jmp 0x407e28
jmp 0x407e3a
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x407e61
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x407e50
push ebx
push esi
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x11c]
movzx esi, word [ebp - 0x130]
movzx ebx, word [ebp - 0x10e]
mov ecx, eax
imul ecx, eax
shl edx, 0x10
or edx, eax
shr eax, 2
imul edx, edx, 0x14ce1989
shl esi, 0xe
or esi, eax
mov eax, dword [ebp - 0x110]
and eax, 0xf5fb
shl ebx, 0x10
or eax, ebx
xor eax, 0x15ca2020
push eax
push esi
push edx
sub ecx, 0x13b06451
push ecx
push 0x12ba1074
push 0x64
push 0x413c38
mov ecx, edi
call fcn.004089a0
push eax
add edi, 8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x407f1f
jmp 0x407f36
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov al, 1
pop edi
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
Function at 0x407f50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
jmp 0x407f76
jmp 0x407f88
cmp dword [esi + 4], 0xffffffff
je 0x407fa2
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x407f8e
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x408001
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x408001
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x408027
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x407f8e
jmp 0x408039
jmp 0x408050
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040bb18
mov esp, ebp
pop ebp
ret 8

Function at 0x408070
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
jmp 0x408098
jmp 0x4080aa
call fcn.00407e00
test al, al
jne 0x4080c6
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
movzx edx, word [0x4e169c]
push eax
lea ecx, [esi + 8]
push ecx
push edx
push 0x90
push 0x413b60
mov ecx, esi
call fcn.004089a0
push eax
lea edx, [ebp - 0x108]
call fcn.00408ad0
add esp, 0x10
push str.Content_type:_application_x_www_form_urlencoded
push 0x48
push 0x413bf0
mov ecx, esi
call fcn.004089a0
push eax
push str._HTTP_1.1_r_nHost:__s_r_n_s_r_n_r_n
lea edx, [ebp - 0x20c]
call fcn.00408ad0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_strcat_s]
lea eax, [ebp - 0x108]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408140
sub eax, edx
push 0
push eax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x408173
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4080b3
jmp 0x408185
jmp 0x40819c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040bb18
mov esp, ebp
pop ebp
ret 4
Function at 0x408550
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, eax
push 0x2d
lea eax, [esi + 8]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x10
mov dword [esi + 0x35], eax
push 0x18
mov dword [esi + 0x39], eax
push 0x413c9c
mov ecx, esi
mov dword [esi + 0x3d], eax
call fcn.004089a0
push eax
push 0x8c
push 0x413cb8
mov ecx, esi
call fcn.004089a0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]

Function at 0x4085c0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
jmp 0x4085de
jmp 0x4085f0
jmp 0x408602
push 0x10000000
pop dword [0x4e231c]
jmp 0x40861b
cmp dword [0x4e231c], 0x10000000
je 0x40868d
xor eax, eax
mov dword [0x40e37c], eax
mov dword [0x40e380], eax
mov dword [0x40e384], eax
mov dword [str.Rwu__], eax
mov dword [0x40e38c], eax
mov dword [0x40e390], eax
mov dword [0x40e394], eax
mov dword [0x40e398], eax
mov dword [0x40e39c], eax
mov dword [0x40e3a0], eax
mov dword [str.p_H:], eax
mov dword [0x40e3a8], eax
mov dword [0x40e3ac], eax
mov dword [0x40e3b0], eax
mov dword [0x40e3b4], eax
mov dword [0x40e3b8], eax
mov dword [0x40e3bc], eax
mov dword [str.r_], eax
mov dword [0x40e3c4], eax
mov dword [0x40e3c8], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
add ebx, eax
push edx
mov dword [ebp - 0x14], ebx
call fcn.00408840
test al, al
je 0x408786
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
mov eax, edi
call fcn.004088f0
test al, al
je 0x408786
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0x10
push edi
call ebx
mov ecx, 0x40e38c
mov eax, edi
sub ecx, edi
mov esi, 0x10
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec esi
jne 0x408705
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push 0x10
push edi
call ebx
mov esi, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
push 0x40
push 0x10
push esi
call ebx
mov ecx, 0x40e39c
mov eax, esi
sub ecx, esi
mov dword [ebp - 8], 0x10
lea esp, [esp]
mov dl, byte [ecx + eax]
xor dl, 0x9f
mov byte [eax], dl
inc eax
dec dword [ebp - 8]
jne 0x408740
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push ecx
push 0x10
push esi
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, esi
sub edx, edi
sub edx, 0x10
push edx
add edi, 0x10
push edi
call fcn.004087c0
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
call fcn.00408840
test al, al
jne 0x4086d0
jmp 0x408798
jmp 0x4087af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4087c0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x4087d9
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push esi
call ebx
xor eax, eax
test edi, edi
jle 0x40880f
mov ecx, eax
and ecx, 0xf
mov dl, byte [ecx + 0x40e37c]
xor dl, byte [eax + esi]
inc eax
add dl, 0x51
mov byte [eax + esi - 1], dl
cmp eax, edi
jl 0x4087f5
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push edi
push esi
call ebx
jmp 0x40882d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4089a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x4089b5
push 0x104
push 0
push 0x4e2110
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x4089f2
push esi
mov esi, dword [ebp + 8]
jmp 0x4089e0
mov dl, byte [esi + eax*4]
xor dl, 0x80
mov byte [eax + 0x4e2110], dl
inc eax
cmp eax, ecx
jl 0x4089e0
pop esi
jmp 0x408a04
mov eax, 0x4e2110
pop ebp
ret 8

Function at 0x409620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.AllowableIpList.txt
push 0x64
push edi
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push 0x40fcbc
lea esi, [edi + 0x64]
push str.AllowableIpList.txt
push esi
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0x18
test eax, eax
je 0x40965f
mov dword [edi + 0xd0], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push eax
push 4
lea ecx, [ebp - 4]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCR100.dll_rewind]
mov eax, dword [ebp - 4]
add esp, 0x14
cmp al, 0xef
jne 0x40969e
cmp ah, 0xbb
jne 0x40969e
cmp byte [ebp - 2], 0xbf
jne 0x40969e
mov eax, dword [esi]
push 0
push 3
push eax
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409c00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c9ec
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x413018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push 0x6a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test byte [0x4dfe78], 1
mov esi, eax
jne 0x409c61
or dword [0x4dfe78], 1
call fcn.00407d30
push 0x40d070
call fcn.0040bc27
add esp, 4
test byte [0x4dfe44], 1
jne 0x409c91
or dword [0x4dfe44], 1
mov dword [ebp - 4], 0
call fcn.00401e70
push 0x40cf60
call fcn.0040bc27
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x4dfe50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4dfe70]
push 0x4dfe50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx ecx, byte [0x4dfebf]
mov edx, dword [ecx*4 + 0x40e368]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edx
push edi
lea eax, [ebp - 0x110]
push str.UserCount:__d__d
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x10
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0x401
push esi
call edi
test byte [0x4dfec4], 1
jne 0x409d14
mov eax, 1
or dword [0x4dfec4], eax
mov dword [ebp - 4], eax
call fcn.0040a150
push 0x40d0b0
call fcn.0040bc27
add esp, 4
push 0x4dff08
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x4dff30]
push 0x4dff08
mov dword [ebp - 0x114], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x114]
push eax
lea ecx, [ebp - 0x110]
push str.QueueSize:__d
push ecx
call ebx
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 1
push 0x401
push esi
call edi
test byte [0x4dfe78], 1
jne 0x409d81
or dword [0x4dfe78], 1
call fcn.00407d30
push 0x40d070
call fcn.0040bc27
add esp, 4
mov ecx, 0x4dfe80
call fcn.00408a10
push eax
lea eax, [ebp - 0x110]
push eax
call ebx
add esp, 8
lea ecx, [ebp - 0x110]
push ecx
push 2
push 0x401
push esi
call edi
push 0
push 3
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret 4
Function at 0x40a430
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 0x40a458
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 0x40a465
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.004092f0
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x40a491
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 0x40a477
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40a4b6
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 0x40a4c7
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40a4dd
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 0x40a4f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x413018]
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 [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40a540
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__WSASocket___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
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 [esi + 0xc]
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 [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40a59e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__bind___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40a5d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__listen___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040bb18
mov esp, ebp
pop ebp
ret
Function at 0x40a5f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a624
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__socket___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
xor al, al
pop esi
pop ebp
ret 4
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
test eax, eax
jne 0x40a65f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
pop ebp
ret 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40a670
Capabilities:
Create thread

Disassembly:
push 0
push 0
push esi
push 0x40b020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x40a6a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40a6ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040b700
add esp, 0xc
xor al, al
ret
mov al, 1
ret

Function at 0x40a6d0
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 0x40a6ed
mov eax, 8
push ebx
xor ebx, ebx
push edi
mov dword [esi + 0x34], eax
test eax, eax
je 0x40a730
lea edi, [esi + 0x14]
jmp 0x40a700
push 0
push 0
push esi
push 0x40b190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x40a738
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x40a756
inc ebx
add edi, 4
cmp ebx, dword [esi + 0x34]
jb 0x40a700
pop edi
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.0040b700
add esp, 0xc
pop edi
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.0040b700
add esp, 0xc
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret