joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d1e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x80
push 0
push eax
mov dword [ebp - 0x90c], edi
call fcn.005d7990
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.005d7990
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x138]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
push 0x3c
push ebx
call fcn.0048c7b0
mov eax, dword [esi + 0x1eb0]
add esp, 0x28
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x48d3c8
cmp ecx, 0x23
je 0x48d3a2
cmp ecx, 0x27
jne 0x48d456
push 0
push ecx
push 0xfa
push 0xff
push 0x643034
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.004809d0
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x48d341
nop
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48d2c7
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x48d32f
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x643988
push edx
call fcn.004682e0
add esp, 0x10
test eax, eax
je 0x48d32f
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push 0x643998
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004809d0
add esp, 0x1c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x48d2c0
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x6439a4
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call fcn.004809d0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48d39c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x643814
push ebx
call fcn.00471470
add esp, 0xc
push edi
jmp 0x48d444
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48d3b0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x48d3e9
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48d3d3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push 0x643978
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.004809d0
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48d440
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x643814
push ebx
call fcn.00471470
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.0048c7b0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
Function at 0x48e140
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x608]
mov ebx, dword [eax]
lea esi, [edi + 0x15c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x48e1d3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.005d7410
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x48e206
push 0x64422c
push ebx
call fcn.00471470
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
push esi
call fcn.0048dd30
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x48e221
jmp dword [eax*4 + 0x48e368]
cmp edx, 4
jle case.0x48e221.4
push esi
call fcn.0048dd10
movzx ecx, word [edi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x48e221.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push dword [ebp - 0x90]
call fcn.004713b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48e286
push 5
push edi
call fcn.0048ec00
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.0047d230
jmp 0x48e32e
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x15c]
push eax
call fcn.0048dd10
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.0048dce0
add esp, 0xc
cmp eax, esi
jae case.0x48e221.4
push dword [ebp - 0x8c]
push 0x644248
push ebx
call fcn.00471530
jmp 0x48e32e
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.0048def0
add esp, 0xc
test eax, eax
je case.0x48e221.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
push 0x644258
push 0x642948
push ebx
call fcn.00471470
add esp, 0xc
push dword [ebp - 0x90]
call fcn.0047d520
add esp, 4
test eax, eax
je 0x48e1f3
push 5
push edi
call fcn.0048ec00
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
Function at 0x48ec00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x48ec12
jmp dword [edx*4 + 0x48ec68]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0048e640
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0048e380
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0048ee10
push 0x644198
push 0x63d708
push eax
call fcn.00471530
add esp, 0xc
xor eax, eax
pop ebp
ret
push 0x6441a8
push 0x642948
push eax
call fcn.00471470
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4955a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
push ecx
mov eax, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x495613
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push edi
call fcn.00471db0
add esp, 8
cmp esi, 0xffffffff
jne 0x49564b
push 0x645550
push ebx
call fcn.00471470
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
push 0x645574
push ebx
call fcn.00471530
push 1
mov byte [edi + 0x526], 0
push esi
mov dword [edi + 0x424], esi
call fcn.0047d0b0
add esp, 0x10
mov byte [edi + 0x539], 1
cmp dword [ebx + 0x608], 0
je 0x4956c7
push 1
push ebx
call fcn.004640c0
mov eax, dword [ebx + 0x608]
push 1
push esi
push dword [ebx + 0x60c]
call eax
push 0
push ebx
mov esi, eax
call fcn.004640c0
add esp, 0x1c
test esi, esi
je 0x4956c7
push edi
call fcn.00495b20
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
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.005bcf27
mov esp, ebp
pop ebp
ret

Function at 0x497b30
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 0x497b5f
push 0x6452fc
push edx
call fcn.00471470
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x497b76
push ecx
push 0x645318
push edx
call fcn.00471530
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x497b8d
push edi
call fcn.004977d0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x497ba1
push edi
call fcn.004967f0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x497bb5
push edi
call fcn.004977b0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x497bc5
push edi
call fcn.00497a10
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
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 0x649a44
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 0x649a64
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 0x649a44
push 0x80
push 0x6d
push 0x20
call fcn.004b9a70
add esp, 0x14
jmp 0x4a78b1
push 0xb8
push 0x649a44
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 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 0x66a40c
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 0x66a40c
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 0x66a40c
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 0x66a40c
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 + 0x66b950]
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 + 0x66b950]
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 + 0x66b950]
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 + 0x66b950]
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 + 0x66b950]
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 + 0x66b950]
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 + 0x66b950]
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 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 0x685e10
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 0x6101a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.005bd220
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x6101e5
push 0x233
push 0x692a94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004b9a70
add esp, 0x14
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x612670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6351a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
call fcn.00452c70
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x38], 0xffffffff
mov byte [ebx + 0x3c], 0
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov eax, dword [ebx + 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edi, 0x6dbcf0
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0x40], esi
and esi, 1
mov dword [ebx], vtable.Poco::Base64DecoderBuf.0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov eax, dword [ecx]
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0x6dbef8
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x38]
mov ecx, 0x6dbef8
mov dword [ebx + 0x50], eax
mov eax, 0x6dbdf8
cmove eax, edi
mov dword [ebx + 0x54], eax
call fcn.005c5ac0
test esi, esi
je 0x612773
cmp byte [0x6dbdf1], 0
jne 0x6127b1
or eax, 0xffffffff
mov ecx, 0x40
mov edi, 0x6dbdf8
rep stosd dword es:[edi], eax
xor ecx, ecx
nop dword [eax]
movzx eax, byte [ecx + 0x69c140]
mov byte [eax + 0x6dbdf8], cl
inc ecx
cmp ecx, 0x40
jb 0x612750
mov byte [0x6dbe35], 0
mov byte [0x6dbdf1], 1
jmp 0x6127b1
cmp byte [0x6dbdf0], 0
jne 0x6127b1
or eax, 0xffffffff
mov ecx, 0x40
rep stosd dword es:[edi], eax
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [eax + 0x69c100]
mov byte [ecx + 0x6dbcf0], al
inc eax
cmp eax, 0x40
jb 0x612790
mov byte [0x6dbd2d], 0
mov byte [0x6dbdf0], 1
lea ecx, [ebp + 0xc]
call fcn.005c50e0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x62c700
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x633f98
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x62c76f
push 0x22
push 0x6b0114
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.00451070
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.005bebd0
push 0x6c44f4
lea eax, [ebp - 0x50]
push eax
call fcn.005d6fc4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret