joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4175f0
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 0x41762e
xor ecx, ecx
cmp eax, 0x1388
setl cl
test ecx, ecx
je 0x41762e
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x41763e
mov ecx, ebx
call fcn.00417420
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 + 0x80024], ecx
mov ecx, dword [esi + 0x80024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x6c
add ebx, 0x47ac80
cmp ecx, eax
jl 0x417722
mov eax, dword [esi + 0x180028]
test eax, eax
jg 0x417681
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, 0x80000
jle 0x4176f0
lea eax, [esi + 0x80028]
push 0x80000
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x180028]
sub eax, 0x80000
push eax
lea ecx, [esi + 0x100028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x80028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x80000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x80000
mov dword [esi + 0x80024], 0
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
add dword [esi + 0x180028], 0xfff80000
jmp 0x417737
push eax
lea edx, [esi + 0x80028]
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x180028]
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 + 0x80024], eax
mov dword [esi + 0x180028], eax
jmp 0x417730
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 0x417798
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x417798
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00417be0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 0xc
call fcn.00417420
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 0x417b60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
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]
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 0x4181a0
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x476018]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Util:_GetHardwareId
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
push 0x100
push 0
push 0x505dc8
call sub.MSVCR100.dll_memset
mov eax, dword [0x47648c]
mov dl, byte [0x47648e]
add esp, 0xc
push 0
push 0
push 0
push 0
xor al, 0xb0
lea ecx, [ebp - 0x18]
push ecx
mov byte [0x505dc8], al
mov al, byte [0x47648f]
push 0
push 0
xor ah, 0xb0
xor dl, 0xb0
xor al, 0xb0
push 0x505dc8
mov byte [0x505dc9], ah
mov byte [0x505dca], dl
mov byte [0x505dcb], al
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x418281
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.RPCRT4.dll_UuidCreateSequential]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
movzx eax, word [ebp - 0x3c]
shl ecx, 0x10
or ecx, edx
mov edx, dword [ebp - 0xa]
xor ecx, 0xb542d8e1
push ecx
movzx ecx, word [ebp - 6]
shl eax, 0x10
or eax, ecx
xor eax, 0xf45bc123
push eax
mov eax, dword [ebp - 0x18]
xor edx, 0x5d78a569
push edx
xor eax, 0x12b586fe
push eax
push 0x4704bc
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a8f
mov esp, ebp
pop ebp
ret

Function at 0x4182f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x505dc8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x418335
mov ecx, dword [ebp + 8]
sub ecx, 0x505dc8
jmp 0x418320
mov dl, byte [ecx + eax + 0x505dc8]
xor dl, 0xb0
mov byte [eax + 0x505dc8], dl
inc eax
cmp eax, esi
jl 0x418320
mov eax, 0x505dc8
pop ebp
ret
Function at 0x4187c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460328
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x476018]
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 dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
push eax
mov ebx, 0x104
lea esi, [ebp - 0x48]
mov dword [ebp - 4], eax
call fcn.004010f0
push 0x100
xor ebx, ebx
push ebx
push 0x505dc8
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x418830
mov cl, byte [eax + 0x476190]
xor cl, 0xb0
mov byte [eax + 0x505dc8], cl
inc eax
cmp eax, 0xff
jl 0x418830
mov eax, 0x505dc8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418850
sub eax, edx
mov edi, eax
mov eax, 0x505dc8
lea esi, [ebp - 0x48]
call fcn.00401390
push 6
mov eax, str.notify
mov ecx, esi
call fcn.00405880
mov edi, 3
mov eax, 0x4704d8
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00401390
mov eax, 0x479c48
mov byte [ebp - 4], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4188a1
sub eax, ecx
push eax
mov eax, 0x479c48
lea ecx, [ebp - 0x2c]
call fcn.00405880
push 7
mov eax, str.text
lea ecx, [ebp - 0x2c]
call fcn.00405880
mov esi, dword [ebp - 0x68]
mov eax, esi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4188d0
sub eax, ecx
push eax
mov eax, esi
lea ecx, [ebp - 0x2c]
call fcn.00405880
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x68], esp
mov byte [ecx], bl
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.004012b0
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], esp
push eax
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.004012b0
lea ecx, [ebx + 1]
lea edi, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00412930
push esi
push 0x46f048
push 1
call fcn.00417be0
mov esi, 0x10
add esp, 0xc
cmp dword [ebp - 0x50], esi
jb 0x418962
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x18], esi
jb 0x418984
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x41899f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
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.00418a8f
mov esp, ebp
pop ebp
ret 4

Function at 0x418a8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x476018]
jne 0x418a99
repz ret
jmp fcn.00419039
Function at 0x419860
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4198b5
mov eax, dword [esp]
cmp al, 2
jne 0x4198af
shr eax, 8
cmp al, 2
jne 0x4198af
call fcn.0041d0b0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00418a8f
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00418a8f
add esp, 0x194
ret
Function at 0x41dc20
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x358], 2
jne 0x41dc32
jmp fcn.0041dbc0
mov eax, 1
ret
Function at 0x428880
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4288b2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4289f0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp dword [esi + 0x638], ebx
je 0x428a3a
push 1
push esi
call fcn.00426520
mov eax, dword [esi + 0x5c4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x638]
push edx
push eax
push esi
call ecx
push ebx
push esi
mov edi, eax
call fcn.00426520
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
test eax, eax
js 0x428a7a
cmp eax, 2
jg 0x428a7a
mov edx, dword [esi + 0x5c0]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x4627fc]
push 2
push eax
call edi
mov ecx, dword [esi + 0x5c0]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push 1
push edx
push eax
call edi
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x428a80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x804], eax
push esi
mov esi, dword [esp + 0x810]
test esi, esi
je 0x428bab
cmp dword [esi + 0x9dc], 0
je 0x428bab
mov ecx, dword [esp + 0x814]
push edi
lea eax, [esp + 0x81c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x801
push edx
call fcn.0042fc50
add esp, 0x10
cmp eax, 0x801
jb 0x428b1f
mov edx, dword [esp + 0x818]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428ae7
sub eax, edi
cmp byte [eax + edx - 1], 0xa
jne 0x428b08
push str...._n
push 5
lea eax, [esp + 0x80c]
push eax
jmp 0x428b17
push 0x462814
push 4
lea ecx, [esp + 0x80d]
push ecx
call fcn.0042fcb0
add esp, 0xc
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428b26
sub eax, edx
cmp dword [esi + 0x638], 0
mov edi, eax
je 0x428b7c
push 1
push esi
call fcn.00426520
mov edx, dword [esi + 0x5c4]
mov ecx, dword [esi + 0x638]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push esi
call ecx
push 0
push esi
call fcn.00426520
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00418a8f
add esp, 0x808
ret
mov edx, dword [esi + 0x5c0]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
push 2
push 0x4627fc
call ebx
mov eax, dword [esi + 0x5c0]
push eax
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x808]
pop esi
xor ecx, esp
call fcn.00418a8f
add esp, 0x808
ret
Function at 0x428bd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x9dc], 0
jne 0x428c02
cmp dword [esi + 0x5c8], 0
je 0x428cf9
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.0042fc50
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x428c30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428c30
sub eax, edx
mov edx, dword [esi + 0x5c8]
push edi
mov edi, eax
test edx, edx
je 0x428c67
cmp dword [esi + 0xe14], 0
jne 0x428c67
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x428c53
mov dword [esi + 0xe14], 1
cmp dword [esi + 0x9dc], 0
je 0x428cf8
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x638], 0
mov byte [esp + edi + 8], 0
je 0x428cca
push 1
push esi
call fcn.00426520
mov eax, dword [esi + 0x5c4]
mov edx, dword [esi + 0x638]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.00426520
add esp, 0x24
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00418a8f
add esp, 0x108
ret
mov eax, dword [esi + 0x5c0]
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x4627fc
call ebx
mov ecx, dword [esi + 0x5c0]
push ecx
push 1
lea edx, [esp + 0x24]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00418a8f
add esp, 0x108
ret

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

Disassembly:
mov ecx, dword [ebx + 0x350]
push ebp
mov ebp, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x42913f
cmp dword [ebx + eax*4 + 0x1c0], 0x428e10
jne 0x42913f
cmp dword [esi], 0
je 0x4290da
test edi, edi
je 0x42913f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0041d3d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x42913f
test al, 1
je 0x42913f
cmp dword [esi], 0
jne 0x429121
mov edx, dword [ebx]
mov eax, dword [edx + 0x960]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x47604c]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x42913c
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42913f
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret
Function at 0x429150
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.004290a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x20]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x4291d2
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4291a9
pop ebp
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push ebx
call fcn.00454480
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00428bd0
mov eax, dword [ebx]
mov dword [eax + 0xe18], ebp
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42b3a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x42b3ce
movzx eax, byte [esi]
push eax
call fcn.0042ebc0
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x42b3b1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x42d280
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0xb64], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42d2d4
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00428a80
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00418a8f
add esp, 0x18
ret
mov edx, dword [esi + 0xb68]
push edx
mov dword [esp + 0xc], 1
call fcn.0042afc0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb6c]
push eax
call fcn.0042afc0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42d34d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00428a80
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00418a8f
add esp, 0x18
ret
Function at 0x42db10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
cmp dword [ebx + 0x90], 2
push ebp
mov ebp, dword [ebx]
je 0x42dc9f
cmp dword [ebx + 0x2a4], 0
push esi
push edi
jne 0x42dc94
cmp dword [ebx + 0x314], 0
jne 0x42dc94
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42dba4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00454480
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00428bd0
add esp, 0x18
jmp 0x42dc9d
push edi
lea edx, [esp + 0x18]
push 0
push edx
mov dword [esp + 0x1c], edi
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42dbf1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00454480
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00428bd0
add esp, 0x18
jmp 0x42dc9d
lea edx, [ebx + 0x138]
push edx
lea esi, [ebx + 0x10a]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.0042da70
add esp, 0xc
test eax, eax
jne 0x42dc3e
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, eax
call esi
mov ecx, dword [edi]
push ecx
push ebx
mov esi, eax
call fcn.00454480
mov edx, dword [esi]
push eax
push edx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00428bd0
add esp, 0x18
jmp 0x42dc9d
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea ecx, [ebx + 0x13c]
push ecx
lea edx, [esp + 0x1c]
push edx
movsw word es:[edi], word [esi]
call fcn.0042da70
add esp, 0xc
test eax, eax
jne 0x42dc94
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
mov eax, dword [edi]
push eax
push ebx
call fcn.00454480
mov ecx, dword [esi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00428bd0
add esp, 0x18
jmp 0x42dc9d
push ebx
call fcn.0042d9f0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00418a8f
add esp, 0x108
ret

Function at 0x42dcc0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42dd09
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00454480
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00428a80
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00428a80
add esp, 8
pop edi
pop esi
ret
Function at 0x42ddc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1f0], 0
je 0x42dddd
push eax
call fcn.0041f160
add esp, 4
test eax, eax
jne 0x42ddfd
xor eax, eax
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x42ddda
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x42ddfd
ret
mov eax, 1
ret
Function at 0x42f350
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x42f36a
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x4633d8
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
test eax, eax
je 0x42f3b7
test edi, edi
je 0x42f3a8
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x42f3dd
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42f3dd
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x42f490
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f3f6
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x47604c]
mov esi, eax
add esp, 4
test esi, esi
je 0x42f486
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x42f486
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f424
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x42f440
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f440
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x42f450
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42f47d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x476050]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x476050]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret