joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a29a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4a29d3
push 0x2e
push edi
call fcn.005d7c50
add esp, 8
test eax, eax
je 0x4a29d1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4a3d00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6ca040]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a3d2d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4a3d74
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4a3d7a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4a3ddb
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4a3da0
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4a3e07
mov eax, dword [esi + 4]
push 1
push 0x647976
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x647977
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4a3de0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a7050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005bd220
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x4a70c4
cmp dword [ebp + 0xc], 0
je 0x4a70c4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
and edx, 0
je 0x4a709c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005e5122
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x4a70b8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push edx
push 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005e5122
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a70c4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4a7800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.005bd220
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a7980
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a78b5
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004b9a70
add esp, 0x14
push 0x649a5c
mov edx, dword [ebp + 0xc]
push edx
push 0x649a60
mov eax, dword [ebp + 8]
push eax
push str.fopen_
push 5
call fcn.004b9010
add esp, 0x18
call fcn.005e4466
cmp dword [eax], 2
je 0x4a787c
call fcn.005e4466
cmp dword [eax], 6
jne 0x4a7899
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004b9a70
add esp, 0x14
jmp 0x4a78b1
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004b9a70
add esp, 0x14
xor eax, eax
jmp 0x4a7901
call fcn.004a7970
push eax
call fcn.004a8040
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a78dc
mov ecx, dword [ebp - 8]
push ecx
call fcn.005e40e6
add esp, 4
xor eax, eax
jmp 0x4a7901
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.004a7bd0
add esp, 8
mov eax, dword [ebp - 8]
push eax
push 1
push 0x6a
mov ecx, dword [ebp - 4]
push ecx
call fcn.004a7c30
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4b62e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44c
call fcn.005bd220
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x440], 0
cmp dword [ebp + 8], 0
jne 0x4b630e
xor eax, eax
jmp 0x4b64c4
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005ed6b8
add esp, 8
test eax, eax
jge 0x4b632c
xor eax, eax
jmp 0x4b64c4
mov eax, 8
call fcn.005bd220
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0x30
lea edx, [ebp - 0x434]
push edx
call fcn.004b5fa0
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x4b6360
mov eax, dword [ebp - 0x440]
jmp 0x4b64c4
push 0x63de6c
mov eax, dword [ebp + 8]
push eax
call fcn.005e4059
add esp, 8
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x4b6385
jmp 0x4b64be
xor ecx, ecx
jne 0x4b6398
movzx edx, word [ebp - 0x42e]
and edx, 0x2000
je 0x4b63d1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4b63aa
mov dword [ebp - 0x448], 0x800
jmp 0x4b63b3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp + 0xc], ecx
push 0
push 4
push 0
mov edx, dword [ebp - 0x43c]
push edx
call fcn.005e52c0
add esp, 0x10
cmp dword [ebp + 0xc], 0
jle 0x4b6403
cmp dword [ebp + 0xc], 0x400
jge 0x4b63eb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
jmp 0x4b63f5
mov dword [ebp - 0x44c], 0x400
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x438], ecx
jmp 0x4b640d
mov dword [ebp - 0x438], 0x400
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x438]
push eax
push 1
lea ecx, [ebp - 0x404]
push ecx
call fcn.005e4332
add esp, 0x10
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jg 0x4b643d
jmp 0x4b649b
cvtsi2sd xmm0, dword [ebp - 0x444]
mov eax, 8
call fcn.005bd220
movsd qword [esp], xmm0
mov edx, dword [ebp - 0x438]
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.004b5fa0
add esp, 0x10
mov ecx, dword [ebp - 0x440]
add ecx, dword [ebp - 0x444]
mov dword [ebp - 0x440], ecx
cmp dword [ebp + 0xc], 0
jle 0x4b6496
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0x438]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
jg 0x4b6496
jmp 0x4b649b
jmp 0x4b63d1
mov eax, dword [ebp - 0x43c]
push eax
call fcn.005e40e6
add esp, 4
push 0x400
lea ecx, [ebp - 0x404]
push ecx
call fcn.004c7570
add esp, 8
mov eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
Function at 0x4c88b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.005bd220
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
jmp 0x4c88df
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x4c8906
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor edx, ecx
movzx eax, byte [ebp - 1]
or eax, edx
mov byte [ebp - 1], al
jmp 0x4c88d6
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x51d310
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.005bd220
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x14]
jne 0x51d348
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
cmp eax, 0x6a
je 0x51d36b
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0x6b
je 0x51d36b
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.004b9a70
add esp, 0x14
or eax, 0xffffffff
jmp 0x51d481
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], 0x6b
jne 0x51d42d
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x51d3a2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jge 0x51d3f9
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 1]
cmp eax, 0xba
jne 0x51d3c8
jmp 0x51d3f9
movzx ecx, byte [ebp - 1]
cmp ecx, 0xbb
je 0x51d3f7
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004b9a70
add esp, 0x14
or eax, 0xffffffff
jmp 0x51d481
jmp 0x51d399
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x51d42b
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.004b9a70
add esp, 0x14
or eax, 0xffffffff
jmp 0x51d481
jmp 0x51d436
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x51d46a
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.004b9a70
add esp, 0x14
or eax, 0xffffffff
jmp 0x51d481
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005d7410
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5279b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.005bd220
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x5279d5
mov ecx, dword [ebp - 8]
sub ecx, 3
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jle 0x527b5e
cmp dword [ebp - 8], 3
jl 0x527a98
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
shl edx, 0x10
mov eax, 1
shl eax, 0
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
shl eax, 8
or edx, eax
mov ecx, 1
shl ecx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + ecx]
or edx, ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shr edx, 0x12
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 4]
shr eax, 0xc
and eax, 0x3f
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
shr ecx, 6
and ecx, 0x3f
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x527b47
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + ecx]
shl eax, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 2
jne 0x527acb
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + ecx]
shl eax, 8
or eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
and ecx, 0x3f
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
shr edx, 0xc
and edx, 0x3f
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
cmp dword [ebp - 8], 1
jne 0x527b14
mov dword [ebp - 0x10], 0x3d
jmp 0x527b27
mov eax, dword [ebp - 4]
shr eax, 6
and eax, 0x3f
movzx ecx, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
mov al, byte [ebp - 0x10]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
mov byte [edx], 0x3d
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
add edx, 3
mov dword [ebp + 0xc], edx
jmp 0x5279cc
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x536500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.005bd220
mov dword [ebp - 4], 0
jmp 0x53651f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jge 0x53656d
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
shl eax, 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
mov edx, dword [ebp + 0x10]
sub edx, 1
cmp dword [ebp - 4], edx
jge 0x53656b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 1]
and ecx, 0x80
je 0x53656b
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
or eax, 1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x536516
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax]
and edx, 0x80
je 0x5365b0
cmp dword [ebp + 0x10], 0x10
jne 0x536593
mov dword [ebp - 8], 0x87
jmp 0x53659a
mov dword [ebp - 8], 0x1b
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
movzx ecx, byte [eax - 1]
xor ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
mov byte [edx - 1], cl
mov esp, ebp
pop ebp
ret
Function at 0x5ce280
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push esi
mov esi, dword [esp + 0x30]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], 0
movups xmmword [esp + 0x18], xmm0
cmp dword [esi + 0x14], 0x10
mov dword [esp + 8], eax
jb 0x5ce2af
mov eax, dword [esi]
jmp 0x5ce2b1
mov eax, esi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x5ce2e8
push dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
call fcn.005cdc70
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x2c]
pop esi
add esp, 0x24
ret
push esi
push eax
call fcn.005ce0f0
int3

Function at 0x5cee20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6343f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00452c70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::Net::HTTPBufferAllocator_.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.005d5200
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5d33a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6349f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x10], 0
je 0x5d3446
cmp dword [eax + 0x14], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x4c], 4
movups xmmword [ebp - 0x3c], xmm0
jb 0x5d33e6
mov eax, dword [eax]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x5d3446
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
mov eax, dword [eax + 0x18]
push dword [eax + 0x18]
add eax, 8
push eax
call fcn.005d2c60
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.005d2c00
lea ecx, [ebp - 0x2c]
call fcn.005d2cc0
mov eax, dword [ebp + 8]
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
call fcn.005d2c90
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5d3d00
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x5d3d24
mov al, 1
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x5d3d3f
jne 0x5d3d36
cmp dword [esp + 8], 2
jb 0x5d3d3f
xor eax, eax
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret

Function at 0x5d3d70
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x633f98
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebx + 8], 0xffffffff
jne 0x5d3dab
mov esi, dword [ebx]
mov ecx, edi
call fcn.005c96f0
push eax
mov ecx, ebx
call dword [esi + 0x90]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, edi
call fcn.005c9a20
push eax
mov ecx, edi
call fcn.005c9680
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x5d3e0c
call esi
cmp eax, 0x2714
je 0x5d3db1
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.005c9c40
push eax
push esi
mov dword [ebp - 4], 0
call fcn.005d40d0
mov eax, dword [ebp - 0x10]
add esp, 8
cmp eax, 0x10
jb 0x5d3e0c
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.00451390
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d3e20
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], edi
cmp dword [edi + 8], 0xffffffff
jne 0x5d3e61
mov esi, dword [edi]
mov ecx, ebx
call fcn.005c96f0
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.005c9a20
mov ecx, ebx
mov esi, eax
call fcn.005c9680
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x5d3f3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x5d3ed4
cmp esi, 0x2733
je 0x5d3ed4
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.005c9c40
push eax
push esi
mov byte [ebp - 4], 1
call fcn.005d40d0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00450230
mov eax, dword [edi]
mov ecx, edi
push 7
push dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
call eax
test al, al
jne 0x5d3f29
push str.connect_timed_out
lea ecx, [ebp - 0x44]
call fcn.00452d40
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.005c9c40
push 0
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.005bec20
push 0x6c44b4
lea eax, [ebp - 0x88]
push eax
call fcn.005d6fc4
mov ecx, edi
call fcn.005d51e0
test eax, eax
je 0x5d3f3d
push eax
call fcn.005d4060
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 1
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x84]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5d3f80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x633f98
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x5d3fbb
mov esi, dword [edi]
mov ecx, ebx
call fcn.005c96f0
push eax
mov ecx, edi
call dword [esi + 0x90]
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x84]
mov ecx, ebx
call fcn.005c9a20
push eax
mov ecx, ebx
call fcn.005c9680
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x5d4020
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2734
je 0x5d4020
cmp esi, 0x2733
je 0x5d4020
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.005c9c40
push eax
push esi
mov dword [ebp - 4], 0
call fcn.005d40d0
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.00450230
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d49d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x634bf0
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push esi
mov esi, dword [ecx + 8]
push edi
cmp esi, 0xffffffff
jne 0x5d4a11
push 0
lea ecx, [ebp - 0x60]
call fcn.005cc740
push 0x6c572c
lea eax, [ebp - 0x60]
push eax
call fcn.005d6fc4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x164], 0
test al, 1
je 0x5d4a46
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x36c], 1
test al, 2
je 0x5d4a5a
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], 1
test al, 4
je 0x5d4a6e
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x164], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.005bfdf0
lea eax, [esi + 1]
xor ebx, ebx
mov dword [ebp + 0xc], eax
push dword [0x6815dc]
mov esi, dword [ebp - 0x10]
push dword [0x6815d8]
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.005bd880
push 0
push 0xf4240
push esi
push edi
mov dword [ebp - 0x34], eax
call fcn.005bd880
imul eax, eax, 0xf4240
lea ecx, [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 0x30], edi
call fcn.005c3930
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x36c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x5d4b53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2714
jne 0x5d4b53
lea ecx, [ebp - 0x24]
call fcn.005c3930
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sbb eax, dword [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005bfe50
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jg 0x5d4b3f
jl 0x5d4b31
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x5d4b3f
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.005bfe70
jmp 0x5d4b4b
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.005bfe50
lea ecx, [ebp - 0x24]
call fcn.0040d410
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d410
test esi, esi
jns 0x5d4b7d
cmp ebx, 0x2714
je 0x5d4a81
push ebx
call fcn.005d4060
add esp, 4
test esi, esi
mov ecx, dword [ebp - 0xc]
setg al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8