joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1953
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
sub edx, 0x21
mov dword [ebp - 0x214], edx
cmp dword [ebp - 0x214], 0xd
ja case.0x4b194c.8
mov eax, dword [ebp - 0x214]
movzx ecx, byte [eax + 0x4b19f4]
jmp dword [ecx*4 + 0x4b19ec]
mov edx, dword [ebp - 0x210]
or edx, 0x100
mov dword [ebp - 0x210], edx
cmp dword [ebp + 0x10], 0
je 0x4b197c
mov eax, dword [ebp - 0x210]
or eax, 0x1000000
mov dword [ebp - 0x210], eax
xor ecx, ecx
mov word [ebp - 0x20c], cx
push 0x206
push 0
lea edx, [ebp - 0x20a]
push edx
call fcn.005619c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x210]
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00424270
mov eax, dword [ebp - 0x218]
or eax, 1
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b74c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5959b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f1414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.004ba030
add esp, 4
lea ecx, [esi + 0xc]
call fcn.00410010
test byte [ebp + 8], 1
je 0x4b751b
push 0x44
push esi
call fcn.004fb534
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5959ec
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f1414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.004ba030
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 1
call fcn.004ba030
add esp, 8
lea ecx, [esi + 0xc]
call fcn.00410010
test byte [ebp + 8], 1
je 0x4b75a4
push 0x60
push esi
call fcn.004fb534
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ba040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov ecx, esi
xor edx, edx
shr ecx, 2
mov dword [ebp - 0xc], ecx
push edi
test ecx, ecx
je 0x4ba109
cmp ecx, 8
jb 0x4ba0e0
mov ebx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0xfffffff8
xorps xmm3, xmm3
mov dword [ebp - 4], eax
movaps xmm2, xmm3
mov eax, dword [ebp + 8]
mov esi, eax
sub esi, ebx
lea edi, [ebx + 0x10]
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
nop dword [eax]
movups xmm0, xmmword [edi - 0x10]
lea edi, [edi + 0x20]
movups xmm1, xmmword [eax + edx*4]
add edx, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [ecx + edi - 0x20]
movups xmm0, xmmword [edi - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edx, ebx
jb 0x4ba090
mov ecx, dword [ebp - 0xc]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd ebx, xmm2
jmp 0x4ba0e3
mov eax, dword [ebp + 8]
cmp edx, ecx
jae 0x4ba109
mov edi, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp + 0xc]
sub ecx, edx
lea edi, [edi + edx*4]
add edx, ecx
mov eax, dword [edi + esi]
lea edi, [edi + 4]
xor eax, dword [edi - 4]
or ebx, eax
sub ecx, 1
jne 0x4ba0f6
mov esi, dword [ebp + 0x10]
shl edx, 2
sub esi, edx
jne 0x4ba11e
xor eax, eax
test ebx, ebx
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ebx
mov edi, dword [ebp + 8]
add ecx, edx
add edi, edx
shr eax, 0x10
mov edx, ebx
mov dword [ebp + 0xc], ecx
shr edx, 0x18
or dl, al
mov eax, ebx
shr eax, 8
or dl, al
or dl, bl
xor ebx, ebx
mov dword [ebp - 0xc], edx
test esi, esi
je 0x4ba1f7
cmp esi, 0x20
jb 0x4ba1dc
mov eax, esi
mov edx, edi
and eax, 0xffffffe0
xorps xmm3, xmm3
sub edx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov eax, ecx
mov edx, dword [ebp - 0xc]
movaps xmm2, xmm3
mov ecx, dword [ebp - 8]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [edi + ebx + 0x10]
add ebx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ebx, dword [ebp - 4]
jb 0x4ba173
por xmm2, xmm3
mov ecx, dword [ebp + 0xc]
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
cmp ebx, esi
jae 0x4ba1f7
sub edi, dword [ebp + 0xc]
add ecx, ebx
sub esi, ebx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or dl, al
sub esi, 1
jne 0x4ba1e7
pop edi
test dl, dl
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4babb0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor edx, edx
push esi
mov dword [ebp - 0x14], edx
push edi
nop
movzx edi, byte [edx + 0x5a5930]
mov eax, edi
mov dword [ebp - 8], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [ebp - 0x10], eax
and ebx, 2
shr edi, 7
and edx, 4
mov dword [ebp - 0xc], edx
mov edx, esi
lea eax, [ecx + ecx]
and esi, 1
xor eax, dword [ebp - 8]
and edx, 2
shl eax, 0x19
mov dword [ebp - 4], eax
imul eax, edi, 0x1b000000
shl ecx, 2
xor ecx, dword [ebp - 8]
shl ecx, 8
xor dword [ebp - 4], eax
imul eax, dword [ebp - 0x10], 0x1b000000
xor dword [ebp - 4], eax
imul eax, ebx, 0x1b000000
xor dword [ebp - 4], eax
imul eax, esi, 0x1b000000
xor dword [ebp - 4], eax
imul eax, edx, 0x1b000000
xor dword [ebp - 4], eax
imul eax, dword [ebp - 0xc], 0x1b000000
xor dword [ebp - 4], eax
imul eax, dword [ebp - 0x10], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [ebp - 4]
xor ecx, eax
imul eax, dword [ebp - 0xc], 0x11b00
xor ecx, eax
mov eax, dword [ebp - 8]
or edx, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [ebp - 0x10], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, dword [ebp - 0xc], 0x11b0000
xor ecx, eax
mov eax, dword [ebp - 8]
or edx, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [ebp - 0x10], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
mov ebx, dword [ebp - 8]
xor ecx, eax
imul eax, dword [ebp - 0xc], 0x11b
xor ecx, eax
xor eax, eax
xor ecx, ebx
or ebx, edx
or ecx, edx
mov edx, dword [ebp - 0x14]
or eax, ebx
mov dword [edx*8 + 0x5f94f0], eax
mov dword [edx*8 + 0x5f94f4], ecx
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 0x100
jl 0x4babc0
pop edi
pop esi
mov byte [0x5f9cf1], 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c1ac0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4c1b10
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4c1b0a
shr eax, 8
cmp al, 2
jne 0x4c1b0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
Function at 0x4c9220
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c923e
cmp dword [esi + 0x6c], 0
je 0x4c923e
push 2
push 3
push esi
call fcn.004d36e0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004d3a00
add esp, 4
test esi, esi
je 0x4c925e
cmp dword [esi + 0x6c], 0
je 0x4c925e
push 3
push esi
call fcn.004d3720
add esp, 8
pop esi
pop ebp
ret
Function at 0x4d1480
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.004d1800
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4d1504
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4d14dc
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004df0f0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004d10d0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48ac], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4d18bd
cmp dword [ebx + ecx*4 + 0x1bc], 0x4d13d0
jne 0x4d18bd
cmp dword [esi], 0
je 0x4d184f
test edi, edi
je 0x4d18bd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004d0a20
add esp, 0x14
cmp eax, 0xffffffff
je 0x4d18bd
test al, 1
je 0x4d18bd
cmp dword [esi], 0
jne 0x4d18a4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5f1334]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4d18a4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4d18bd
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d18d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x4d18f9
push dword [esi + 0x15c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4d192f
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x5a7200
push 2
push eax
call fcn.00571495
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00571495
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x4d1a03
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4d19ff
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x4d20a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f9dd8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4d20f1
push 3
push 2
push eax
push 6
call fcn.004f18a0
add esp, 0x10
test al, al
je 0x4d20e5
mov dword [0x5f9dd8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5f9dd8], 1
jmp 0x4d20f6
cmp eax, 2
je 0x4d2136
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4d211d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4d2136
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4d2200
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4d2248
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004df0f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004d11b0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004d11b0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4d2380
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x4d257d
cmp byte [ebx + 0x266], 0
push esi
jne 0x4d2573
cmp byte [ebx + 0x282], 0
jne 0x4d2573
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4d241e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004df0f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.004d10d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.005619c0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4d2487
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.004df0f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.004d10d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004d2a70
add esp, 0xc
test al, al
jne 0x4d24e5
call fcn.0056f171
mov esi, eax
call fcn.0056f171
push dword [esi]
mov edi, eax
push ebx
call fcn.004df0f0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004d10d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004d2a70
add esp, 0xc
test al, al
jne 0x4d2573
call fcn.0056f171
mov esi, eax
call fcn.0056f171
push dword [esi]
mov edi, eax
push ebx
call fcn.004df0f0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.004d10d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004d1fc0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
Function at 0x4d2e00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x640], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4d2e5d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004d11b0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
push dword [esi + 0x644]
mov dword [ebp - 0x10], 1
call fcn.004d3060
push dword [esi + 0x648]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004d3060
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4d2ecd
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.004d11b0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret

Function at 0x4d3020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004136a0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0057ee20
Function at 0x4ded50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4deecb
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4deeb7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x4dee48
cmp dword [edi + 0x18], 0
je 0x4dee48
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4dee48
cmp eax, 0x10
jb 0x4dee48
push 0x20
call dword [0x5f1334]
mov esi, eax
add esp, 4
test esi, esi
je 0x4deeac
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x5f1334]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4dee9b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4dee36
push eax
call dword [0x5f1340]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4dee81
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4dee45
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4ded90
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4dee65
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4deeb3
push ebx
call fcn.004ded10
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x5f1338]
push esi
call dword [0x5f1338]
add esp, 8
jmp 0x4dee56
push esi
mov edi, 8
call dword [0x5f1338]
add esp, 4
jmp 0x4dee56
mov edi, 8
jmp 0x4dee56
test ebx, ebx
jne 0x4deec3
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4df960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00575870
add esp, 0x18
test eax, eax
je 0x4df982
cmp eax, 0xffffffff
jne 0x4df984
xor eax, eax
pop ebp
ret
Function at 0x4e4b20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5f1414]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x1ac]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4e4b78
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.004d1940
add esp, 8
cmp edi, 0xffffffff
jne 0x4e4bad
push str.Error_accept__ing_server_connect
push ebx
call fcn.004d10d0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.004d11b0
push 1
mov byte [esi + 0x270], 0
push edi
mov dword [esi + 0x1ac], edi
call fcn.004f1710
mov byte [esi + 0x1b9], 1
add esp, 0x10
mov eax, dword [ebx + 0x1d8]
test eax, eax
je 0x4e4c12
push 1
push edi
push dword [ebx + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x4e4c12
push esi
call fcn.004e5080
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fb4f0
mov esp, ebp
pop ebp
ret

Function at 0x4e7110
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x4e713f
push str.Couldnt_set_desired_mode
push edx
call fcn.004d10d0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x4e7156
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004d11b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4e716d
push edi
call fcn.004e6e70
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x4e7181
push edi
call fcn.004e5ed0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4e7195
push edi
call fcn.004e6e50
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4e71a5
push edi
call fcn.004e6ff0
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret