joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a640
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44a673
push esi
call fcn.004589e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44a66c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44a6f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44a6e2
mov eax, dword [esi + 8]
test eax, eax
je 0x44a697
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44a6de
cmp eax, 2
je 0x44a6e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44a68a
cmp eax, 3
je 0x44a6bd
cmp eax, 1
jne 0x44a68a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44a68a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44a68a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044a720
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44a708
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044a720
add esp, 4
pop esi
ret

Function at 0x44af90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44afb1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44afb1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44afb1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x466aa0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x466aea
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x466b19
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x466b5b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46cb20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4f083c]
xor edx, edx
cmp eax, edx
jne 0x46cb46
xor eax, eax
mov byte [eax + 0x4f073c], al
inc eax
cmp eax, 0x100
jl 0x46cb2e
mov dword [0x4f083c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4f073c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x46cbd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46cbaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x46cb78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x46cc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46cca3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46cc8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x473650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0c7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00473f70
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4accb4
call fcn.0049239d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4736e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049239d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4736dc
push 0
mov ecx, eax
call fcn.0046a750
mov dword [esi + 0xc], eax
jmp 0x4736e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4736e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x494a2a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x494a62
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00492ab7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00492a8f
jmp 0x494a6e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x496118
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49615a
call fcn.0049bbcf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49615a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x496151
xor eax, eax
jmp 0x496162
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00496168
pop edi
pop esi
pop ebx
ret 4

Function at 0x49c0ff
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49c12d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49c14b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049c065
jmp 0x49c14b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49c14b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049c065
test edi, edi
mov eax, edi
jne 0x49c135
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x4580e4], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push bind
push 0
push bind
push 0xcf0000
push 0x4580e8
push 0x458080
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x458194], eax
cmp dword [0x458194], 0
jne 0x40347d
xor eax, eax
jmp 0x4034e7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x458194]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x458194]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0x5dc
push 0x64
mov edx, dword [0x458194]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], 0xdbba00
push 0
mov eax, dword [ebp - 4]
push eax
push 0x65
mov ecx, dword [0x458194]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xea60
push 0x66
mov edx, dword [0x458194]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4047a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xd8], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004345d0
add esp, 4
cmp eax, 0x14
jbe 0x4047e7
push 0x14
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xd8]
add edx, 0xf087
push edx
call fcn.00435460
add esp, 0xc
jmp 0x404800
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xd8]
add ecx, 0xf087
push ecx
call fcn.00434060
add esp, 8
mov byte [ebp - 0xd0], 0
push 0xc7
push 0
lea edx, [ebp - 0xcf]
push edx
call fcn.00433530
add esp, 0xc
push str.._Setting.ini
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [ebp - 0xd0]
push ecx
push 0xda9a
push str.Port
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0xd8]
mov dword [ecx + 0xefc4], eax
mov edx, dword [ebp - 0xd8]
cmp dword [edx + 0xefc4], 0xffffffff
je 0x4049b7
lea eax, [ebp - 0xd0]
push eax
push 0xa
push str.MaxConnections
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0xd4], eax
lea edx, [ebp - 0xd0]
push edx
push 0xb
mov eax, dword [ebp - 0xd8]
add eax, 0xf07c
push eax
push str.Admin
push str.AdminName
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0xd0]
push edx
push 0x1e
mov eax, dword [ebp - 0xd8]
add eax, 0xf004
push eax
push str.MuOnline
push str.ServerODBC
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0xd0]
push edx
push 0x14
mov eax, dword [ebp - 0xd8]
add eax, 0xeff0
push eax
push str.MuOnline
push str.Name
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0xd0]
push edx
push 0x14
mov eax, dword [ebp - 0xd8]
add eax, 0xefc8
push eax
push 0x4466cc
push str.Login
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0xd0]
push edx
push 0x14
mov eax, dword [ebp - 0xd8]
add eax, 0xefdc
push eax
push str.654321
push str.Password
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xd8]
call fcn.004046a0
push str.Initializing_IOCP_system_connection
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xd8]
push ecx
mov edx, dword [eax]
call edx
add esp, 8
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xd8]
mov edx, dword [ecx + 0xefc4]
push edx
mov ecx, dword [ebp - 0xd8]
call fcn.004065b0
push str.Initialized_IOCP_system_connection
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xd8]
push edx
mov eax, dword [ecx]
call eax
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret 4
Function at 0x4065b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1a4], ecx
cmp dword [ebp + 0xc], 0x3e8
jle 0x4065d9
mov dword [ebp + 0xc], 0x3e8
mov dword [ebp - 0x19c], 0
jmp 0x4065f4
mov eax, dword [ebp - 0x19c]
add eax, 1
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
cmp ecx, dword [ebp + 0xc]
jge 0x406696
mov edx, dword [ebp - 0x19c]
shl edx, 5
mov eax, dword [ebp - 0x1a4]
mov byte [eax + edx + 0x1c], 0
mov ecx, dword [ebp - 0x19c]
shl ecx, 5
mov edx, dword [ebp - 0x1a4]
mov dword [edx + ecx + 8], 0xffffffff
mov eax, dword [ebp - 0x19c]
shl eax, 5
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx + eax + 0x20], 0xffffffff
push 0xdb2c
call fcn.0043519f
add esp, 4
mov dword [ebp - 0x1a0], eax
mov edx, dword [ebp - 0x19c]
shl edx, 5
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a0]
mov dword [eax + edx + 0x24], ecx
push 0xf
push 0
mov edx, dword [ebp - 0x19c]
shl edx, 5
mov eax, dword [ebp - 0x1a4]
lea ecx, [eax + edx + 0xc]
push ecx
call fcn.00433530
add esp, 0xc
jmp 0x4065e5
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x198]
push ecx
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1a4]
call fcn.004066e0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret 8

Function at 0x4066e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x7d74], ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0x4068e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x7d78], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x7d78], 0
jne 0x406745
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateThread___failed_with_error__d
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx]
call eax
add esp, 0xc
xor eax, eax
jmp 0x40674a
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x406750
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ecx
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x7d7c], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x7d7c], 0xffffffff
jne 0x4067b2
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.WSASocket___failed_with_error__d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ecx]
call eax
add esp, 0xc
xor eax, eax
jmp 0x4068cd
mov ecx, 2
mov word [ebp - 0x18], cx
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
movzx eax, word [edx + 0x7d74]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x7d7c]
push eax
call dword [sym.imp.WSOCK32.dll_bind]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x406847
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.bind___failed_with_error__d
push 2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 4]
call ecx
add esp, 0x10
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x7d74]
push eax
push str.error_L3_:_cant_bind_port:__d
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00408190
add esp, 0xc
push 1
call fcn.0043390e
xor eax, eax
jmp 0x4068cd
push 5
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x7d7c]
push eax
call dword [sym.imp.WSOCK32.dll_listen]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4068a6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.listen___failed_with_error__d
push 2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [edx + 4]
call ecx
add esp, 0x10
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.error_L3_:_listen___failed_with_error__d
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00408190
add esp, 0xc
push 1
call fcn.0043390e
xor eax, eax
jmp 0x4068cd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x7d74]
push ecx
push str.Server_Listen_OK._Port:__d
push 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [eax + 4]
call edx
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x407aa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0xfa
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
call fcn.00407000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 0x6d98
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6d8c], 0
jle 0x407afb
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
jmp 0x407c7c
mov eax, dword [ebp - 8]
mov dword [eax + 0x6d80], 0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x6d7c], 0
jle 0x407b58
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6d7c]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x36cc
push ecx
mov edx, dword [ebp - 8]
add edx, 0x1c
push edx
call fcn.00434160
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6d7c]
mov dword [eax + 0x6d80], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x6d7c], 0
jmp 0x407b76
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
jmp 0x407c7c
mov eax, dword [ebp - 8]
add eax, 0x1c
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6d80]
mov dword [edx + 0x14], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x6d84], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x6d88], 1
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407c3e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x407c3c
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x2c7
push str.WSASend__d__failed_with_error__d__s
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx]
call ecx
add esp, 0x14
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00407f20
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7d08]
mov eax, dword [edx + 0xc]
call eax
xor eax, eax
jmp 0x407c7c
jmp 0x407c53
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xdb28]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0xdb28], edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x6d8c], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x407c90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0xfa
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
call fcn.00407000
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
add edx, 0x6d98
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x6d80]
sub edx, dword [ecx + 0x6d84]
jns 0x407cf3
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x7d08]
mov eax, dword [edx + 0xc]
call eax
xor eax, eax
jmp 0x407dff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x6d84]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x1c]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 0x6d80]
sub edx, dword [ecx + 0x6d84]
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x6d88], 1
push 0
mov edx, dword [ebp - 8]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 4]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407dc1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x407dbf
mov edx, dword [ebp - 4]
shl edx, 5
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 0xc]
push ecx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 0x2f1
push str.WSASend__d__failed_with_error__d__s
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax]
call edx
add esp, 0x14
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00407f20
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
xor eax, eax
jmp 0x407dff
jmp 0x407dd6
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xdb28]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0xdb28], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x6d8c], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x7d08
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x7d08]
mov edx, dword [eax + 0xc]
call edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x408310
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x408355
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov esp, ebp
pop ebp
ret