joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42229b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4998ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x318]
mov dword [esi], 0x4b79f4
mov ecx, ebx
mov dword [esi + 4], 0x4b79e8
mov dword [esi + 8], 0x4b79dc
mov byte [esi + 0x738], 1
call fcn.004123fe
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [esi + 0x400]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add esi, 0x440
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00422894
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + 0x720]
call fcn.00402f3d
mov ecx, esi
call fcn.004119d5
mov ecx, edi
call fcn.0041374d
mov ecx, ebx
call fcn.0041238d
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x170]
call fcn.00422205
lea esi, [ebx + 0x138]
lea ecx, [esi + 8]
call fcn.0040e046
mov ecx, esi
call fcn.00423de3
lea ecx, [ebx + 0x38]
call fcn.00431d9c
lea ecx, [ebx + 0x30]
call fcn.0040ba61
lea ecx, [ebx + 0x14]
call fcn.00402f3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x424c7c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], edx
lea ebx, [eax - 1]
mov dword [ebp - 8], ebx
sar ebx, 1
push edi
mov edi, ecx
mov ecx, esi
cmp esi, ebx
jge 0x424cc7
lea edx, [ecx + ecx]
push dword [edi + edx*4 + 4]
push dword [edi + edx*4 + 8]
call fcn.0042315e
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, edx
mov eax, dword [edi + ecx*4]
mov dword [edi + esi*4], eax
mov esi, ecx
cmp ecx, ebx
jl 0x424c9c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp ecx, ebx
jne 0x424cd9
test al, 1
jne 0x424cd9
mov eax, dword [edi + eax*4 - 4]
mov dword [edi + esi*4], eax
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
cmp edx, esi
jge 0x424d00
push dword [ebx]
lea edx, [esi - 1]
sar edx, 1
push dword [edi + edx*4]
call fcn.0042315e
test al, al
je 0x424d00
mov eax, dword [edi + edx*4]
mov dword [edi + esi*4], eax
mov esi, edx
cmp dword [ebp - 4], edx
jl 0x424ce0
mov eax, dword [ebx]
mov dword [edi + esi*4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426679
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x426698
mov eax, dword [eax]
push 0
push 0x4ce5dc
push ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x4ce5dc
push 2
push 0x4b7ab8
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x430a10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x49a267
call fcn.00498a28
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
call fcn.0046f0e2
mov esi, eax
push 1
mov dword [ebp - 4], ebx
call fcn.0046d2d7
pop ecx
pop ecx
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00419b36
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x434a91
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], esi
mov ecx, edi
lea eax, [edx - 1]
sar eax, 1
mov dword [ebp - 8], eax
cmp edi, eax
jge 0x434ae1
lea esi, [ecx + ecx]
push dword [ebx + esi*4 + 4]
push dword [ebx + esi*4 + 8]
call fcn.00431bbc
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x434ab3
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp ecx, eax
jne 0x434af4
test dl, 1
jne 0x434af4
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], eax
lea edi, [edx - 1]
cmp esi, edi
jge 0x434b1b
mov eax, dword [ebp + 0xc]
lea esi, [edi - 1]
sar esi, 1
push dword [eax]
push dword [ebx + esi*4]
call fcn.00431bbc
test al, al
je 0x434b1b
mov eax, dword [ebx + esi*4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp - 4], esi
jl 0x434af8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x434bb8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [ebp + 8]
mov esi, edi
mov dword [ebp - 4], esi
mov ecx, edi
lea eax, [edx - 1]
sar eax, 1
mov dword [ebp - 8], eax
cmp edi, eax
jge 0x434c0b
lea esi, [ecx + ecx]
lea ecx, [ebx + 8]
lea ecx, [ecx + esi*4]
lea eax, [ecx - 4]
push eax
push ecx
call fcn.004348dd
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, esi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + edi*4], eax
mov edi, ecx
mov eax, dword [ebp - 8]
cmp ecx, eax
jl 0x434bda
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp ecx, eax
jne 0x434c1e
test dl, 1
jne 0x434c1e
mov eax, dword [ebx + edx*4 - 4]
mov dword [ebx + edi*4], eax
lea edi, [edx - 1]
cmp esi, edi
jge 0x434c44
push dword [ebp + 0xc]
lea esi, [edi - 1]
sar esi, 1
lea eax, [ebx + esi*4]
push eax
call fcn.004348dd
test al, al
je 0x434c44
mov eax, dword [ebx + esi*4]
mov dword [ebx + edi*4], eax
mov edi, esi
cmp dword [ebp - 4], esi
jl 0x434c22
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + edi*4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b321
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x49ec39
call fcn.00498a28
sub esp, 0x88
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
xor ebx, ebx
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esi + 0x94], al
je 0x43b400
push ebx
push ebx
push 0xe
push dword [esi + 0x9c]
call edi
mov ebx, 0x3e8
lea ecx, [ebp - 0x24]
cmp eax, ebx
push 0
cmovg eax, ebx
push eax
call fcn.00405d1f
cmp dword [ebp - 0x10], 7
lea eax, [ebp - 0x24]
push ebx
cmova eax, dword [ebp - 0x24]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x43b3fe
xor edx, edx
xor ecx, ecx
call fcn.0040bdc2
push str.Failed_to_get_complaint_text
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xe3
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x2c], str.C:BooCode_OffergateMultiSetup_srcwindowscomplaint_reporting_window.cpp
mov dword [ebp - 0x28], str.void___thiscall_ComplaintReportingWindow::SendComplaint_void_
call fcn.00403061
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.0040be49
xor ebx, ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00402fc0
jmp 0x43b400
xor ebx, ebx
push ebx
push ebx
push 0x147
push dword [esi + 0x98]
call edi
push ebx
push eax
push 0x150
push dword [esi + 0x98]
call edi
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
cmove edi, eax
call fcn.00422a8d
lea esi, [eax + 0x440]
lea ecx, [eax + 0x170]
lea eax, [ebp - 0x24]
push eax
push edi
lea eax, [ebp - 0x94]
push eax
call fcn.004387b9
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00411a9e
lea ecx, [ebp - 0x94]
call fcn.00403883
lea ecx, [ebp - 0x24]
call fcn.00402f3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43cde5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov eax, dword [edi + 0x84]
mov dword [esp + 0x14], eax
mov dword [edi + 0x84], esi
test bl, bl
je 0x43ce51
test esi, esi
jne 0x43ce35
push esi
push dword [edi + 0x6cc]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0
push 0x404
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
jmp 0x43ce9e
mov ecx, dword [edi + 0x10d0]
lea eax, [esi + 0x14]
push eax
add ecx, 0x38
call fcn.00433363
cmp byte [esi + 0x10], 0
je 0x43ce55
mov al, 1
jmp 0x43ce57
test esi, esi
je 0x43ce5d
xor al, al
mov byte [esp + 0x10], al
jmp 0x43ce61
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
lea ecx, [edi + 0x6ac]
call fcn.00405ca6
mov eax, dword [edi + 0x84]
test eax, eax
jne 0x43ce82
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43ce9e
cmp dword [eax + 0xc], 2
je 0x43ce9e
cmp dword [eax + 0xc], 0
mov ecx, edi
push esi
push ebx
jne 0x43ce99
call fcn.0043cfe7
jmp 0x43ce9e
call fcn.0043cea7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43cea7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x43cfad
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43cfad
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x9fc]
call ebx
push 0
push dword [edi + 0x944]
call ebx
push 1
push dword [edi + 0x9a0]
call ebx
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x3e9
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
cmp dword [esi + 8], 0
jne 0x43cf36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov dword [esi + 8], eax
mov dword [eax + 0xc], esi
mov esi, dword [esi + 8]
mov ecx, edi
sub dword [ebp - 0x10], 4
add dword [ebp - 8], 4
mov dword [edi + 0x80], esi
call fcn.004049dc
mov dword [edi + 0x60], esi
lea eax, [ebp - 0x10]
push dword [esi + 4]
mov ecx, edi
push eax
call fcn.00404677
cmp dword [edi + 0x60], 0
je 0x43cfe0
push 0
push dword [edi + 0x604]
call ebx
mov ecx, dword [edi + 0x60]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0x60]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [edi + 0x60]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x91c]
push dword [edi + 0x920]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x80]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
jmp 0x43cfe0
call fcn.004049dc
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x604]
call esi
push 1
push dword [edi + 0x9fc]
call esi
push 1
push dword [edi + 0x944]
call esi
push 0
push dword [edi + 0x9a0]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43ffe3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
or dword [0x4cf150], 0xffffffff
lea ecx, [ebp - 0x208]
sub esp, 0x208
mov eax, 0x4ce7bc
cmp dword [0x4ce7d0], 7
cmova eax, dword [0x4ce7bc]
push edi
mov edi, 0x104
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
js 0x44003a
lea ecx, [ebp - 0x208]
call fcn.00416088
test al, al
je 0x44003a
mov dword [0x4cf150], 0xa
jmp 0x440079
cmp dword [0x4ce7e8], 7
lea ecx, [ebp - 0x208]
push edi
mov eax, 0x4ce7d4
cmova eax, dword [0x4ce7d4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
js 0x440079
lea ecx, [ebp - 0x208]
call fcn.00416088
test al, al
je 0x440079
mov dword [0x4cf150], 0x14
mov eax, 0x4cf150
pop edi
leave
ret
Function at 0x451a40
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x4cb040]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x120]
push ecx
push eax
mov ebx, dword [eax + ecx*4 + 0x148]
push ebp
call fcn.00451eb0
add esp, 0xc
test eax, eax
je 0x451a98
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x451afd
push 0
push dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x451afb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x451ad0
xor edi, edi
mov dword [esi], 0x51
jmp 0x451afb
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004438b0
push eax
push str.Send_failure:__s
push ebp
call fcn.00451700
mov dword [ebp + 0x954], ebx
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f83f
add esp, 0x104
ret

Function at 0x451eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x298]
mov ebx, dword [ecx + edx*4 + 0x148]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x451f65
cmp dword [ecx + edx*4 + 0x160], 0x451960
jne 0x451f65
cmp dword [esi], 0
je 0x451ef6
test edi, edi
je 0x451f65
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0045f170
add esp, 0x14
cmp eax, 0xffffffff
je 0x451f65
test al, 1
je 0x451f65
cmp dword [esi], 0
jne 0x451f4e
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x451f3d
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x451f65
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x452310
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4cb040]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.00470c60
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x452397
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.004438b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4523d8
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00451f70
add esp, 0x10
test al, al
jne 0x4523e1
call fcn.00479ba5
mov esi, eax
call fcn.00479ba5
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.004438b0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00451700
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046f83f
add esp, 0x188
ret

Function at 0x452b90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x4cca34]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x452be1
push 3
push 2
push eax
push eax
push 6
call fcn.004676b0
add esp, 0x14
test al, al
je 0x452bd5
mov dword [0x4cca34], 2
add esp, 0xc
ret
mov dword [0x4cca34], 1
jmp 0x452be6
cmp eax, 2
je 0x452c2c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x452c11
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x452c2c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x4538a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x4cb040]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x71b], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x453900
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.004517d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046f83f
add esp, 0x18
ret
push dword [esi + 0x6b8]
mov dword [esp + 0x14], 1
call fcn.00453b20
push dword [esi + 0x6bc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.00453b20
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x453977
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.004517d0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.0046f83f
add esp, 0x18
ret

Function at 0x453990
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x4cb040]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4539f5
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004438b0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.004517d0
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0046f83f
add esp, 0x108
ret
Function at 0x453b60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4a3728
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x453b7a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4a3744
push esi
call fcn.00480680
add esp, 8
test eax, eax
je 0x453bc2
test ebp, ebp
je 0x453bb3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x453be8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x453be8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x453c9f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453c05
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x453c95
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x453c95
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453c37
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453c50
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x453c60
test ebp, ebp
je 0x453c8c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4cb004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4cb004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x459940
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x45995c
cmp dword [esi + 0x78], 0
je 0x45995c
push 2
push 3
push esi
call fcn.00454d30
add esp, 0xc
push dword [esp + 0xc]
call fcn.00459450
add esp, 4
test esi, esi
je 0x45997d
cmp dword [esi + 0x78], 0
je 0x45997d
push 3
push esi
call fcn.00454d70
add esp, 8
pop esi
ret
Function at 0x4607a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x4cb040]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push 6
push 1
push 2
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x460992
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x18], xmm0
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x460980
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x460980
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x460980
cmp dword [esp + 8], 0x10
jl 0x460980
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x460980
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x460980
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x460980
push 1
push esi
call fcn.004674c0
add esp, 8
test eax, eax
js 0x460980
push 0
push 0x2710
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push 1
push eax
mov dword [esp + 0x20], 0x300
call fcn.0045ee70
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x460980
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x460980
cmp dword [esp + 8], 0x10
jl 0x460980
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x460980
cmp dword [esp + 8], 0x10
jl 0x460980
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x460980
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x460980
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x460980
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0046f83f
add esp, 0x34
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.0046f83f
add esp, 0x34
ret