joyce8/EMBER2024-capa huggingface dataset:
Function at 0x565970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00452110
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x56598f
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x565a59
jb 0x5659b4
test eax, eax
jne 0x565a59
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, dword [ebp + 0x16c]
mov dword [ebp + 0x34], ecx
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x30], eax
test edi, edi
je 0x565a05
nop dword [eax]
test esi, esi
je 0x5659ea
mov al, byte [ebx]
lea ecx, [ebp + 0x40]
xor byte [ecx + edi], al
inc ebx
inc edi
mov dword [esp + 0x18], ecx
dec esi
and edi, 0xf
jne 0x5659d0
jmp 0x5659f2
mov dword [esp + 0x18], ecx
test edi, edi
jne 0x565a4b
lea eax, [ebp + 0x60]
push eax
push ecx
call fcn.00566dd0
mov ecx, dword [esp + 0x20]
add esp, 8
jmp 0x565a09
mov dword [esp + 0x18], ecx
mov eax, esi
lea edx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x565a2b
push eax
push ebx
push edx
push ecx
call fcn.00566ba0
add ebx, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x565a4b
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x565a4b
mov edx, dword [esp + 0x18]
nop dword [eax + eax]
mov al, byte [ecx + ebx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, esi
jb 0x565a40
mov dword [ebp + 0x16c], edi
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x5665b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00452110
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
shld esi, eax, 3
shld edi, ecx, 3
shl eax, 3
shl ecx, 3
cmp dword [ebx + 0x168], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
jne 0x5665fe
cmp dword [ebx + 0x16c], 0
je 0x566616
lea eax, [ebx + 0x60]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00566dd0
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x38], ecx
mov ecx, eax
mov dword [ebx + 0x34], esi
mov eax, esi
shrd ecx, eax, 8
mov dword [ebx + 0x3c], edi
movzx eax, cl
cdq
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov ebp, edx
movzx eax, cl
cdq
shld edx, eax, 8
shl eax, 8
or ebp, edx
or ebx, eax
mov eax, esi
shrd ecx, eax, 0x10
shld ebp, ebx, 8
movzx eax, cl
mov ecx, dword [esp + 0x14]
cdq
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, esi
shrd ecx, eax, 0x18
shld ebp, ebx, 8
movzx eax, cl
mov ecx, dword [esp + 0x1c]
cdq
shl ebx, 8
or ebp, edx
or ebx, eax
movzx eax, cl
cdq
shld ebp, ebx, 8
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
cdq
shld ebp, ebx, 8
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
cdq
shld ebp, ebx, 8
shr ecx, 0x18
shl ebx, 8
or ebp, edx
or ebx, eax
mov eax, edi
shld ebp, ebx, 8
shl ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x10]
shrd ecx, eax, 8
movzx eax, cl
mov ecx, dword [esp + 0x10]
cdq
mov esi, eax
mov edi, edx
movzx eax, cl
cdq
shld edx, eax, 8
shl eax, 8
or edi, edx
or esi, eax
mov eax, dword [esp + 0x18]
shld edi, esi, 8
shl esi, 8
shrd ecx, eax, 0x10
movzx eax, cl
mov ecx, dword [esp + 0x10]
cdq
or esi, eax
or edi, edx
mov eax, dword [esp + 0x18]
shrd ecx, eax, 0x18
shld edi, esi, 8
movzx eax, cl
mov ecx, dword [esp + 0x18]
cdq
shl esi, 8
or edi, edx
or esi, eax
movzx eax, cl
shld edi, esi, 8
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, ecx
shld edi, esi, 8
shr eax, 8
movzx eax, al
cdq
shl esi, 8
or edi, edx
or esi, eax
mov eax, ecx
shld edi, esi, 8
shr eax, 0x10
movzx eax, al
shl esi, 8
cdq
or esi, eax
shr ecx, 0x18
or edi, edx
shld edi, esi, 8
shl esi, 8
or esi, ecx
mov ecx, dword [esp + 0x24]
add ecx, 0x40
xor dword [ecx], ebx
mov ebx, dword [esp + 0x24]
xor dword [ecx + 4], ebp
xor dword [ebx + 0x48], esi
lea eax, [ebx + 0x60]
xor dword [ebx + 0x4c], edi
push eax
push ecx
call fcn.00566dd0
mov eax, dword [ebx + 0x20]
lea ecx, [ebx + 0x40]
xor dword [ecx], eax
add esp, 8
mov eax, dword [ebx + 0x24]
xor dword [ecx + 4], eax
mov eax, dword [ebx + 0x28]
xor dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x2c]
xor dword [ebx + 0x4c], eax
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
test edx, edx
je 0x5667be
mov eax, dword [esp + 0x1c]
cmp eax, 0x10
ja 0x5667be
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
jmp fcn.004fef00
or eax, 0xffffffff
add esp, 0x10
ret
Function at 0x56ab40
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x56ab54
mov dword [esp + 0x18], fcn.00569320
jmp fcn.00564f10
mov dword [esp + 0x18], fcn.005685c0
jmp fcn.00564c50
Function at 0x574280
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.00452110
mov eax, dword [0x67c374]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x574369
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
lea esi, [edx + 2]
lea edi, [ebp + 3]
sub ebp, edx
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.005746a0
mov al, byte [edi - 3]
lea edi, [edi + 8]
xor al, byte [esp + 0x28]
lea esi, [esi + 8]
mov byte [esi - 0xa], al
add esp, 0xc
mov byte [esp + 0x14], al
mov al, byte [edi - 0xa]
xor al, byte [esp + 0x1d]
mov byte [esi - 9], al
mov byte [esp + 0x15], al
mov al, byte [esi + ebp - 8]
xor al, byte [esp + 0x1e]
mov byte [esi - 8], al
mov byte [esp + 0x16], al
mov al, byte [edi - 8]
xor al, byte [esp + 0x1f]
mov byte [esi - 7], al
mov byte [esp + 0x17], al
mov al, byte [edi - 7]
xor al, byte [esp + 0x20]
mov byte [esi - 6], al
mov byte [esp + 0x18], al
mov al, byte [edi - 6]
xor al, byte [esp + 0x21]
mov byte [esi - 5], al
mov byte [esp + 0x19], al
mov al, byte [edi - 5]
xor al, byte [esp + 0x22]
mov byte [esi - 4], al
mov byte [esp + 0x1a], al
mov al, byte [edi - 4]
xor al, byte [esp + 0x23]
mov byte [esi - 3], al
mov byte [esp + 0x1b], al
sub ebx, 1
jne 0x5742d0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
pop ebx
xor ecx, esp
call fcn.004514cc
add esp, 0x18
ret
Function at 0x582550
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x582579
mov eax, edi
jmp 0x582583
push eax
push edi
call fcn.004eaf20
add esp, 8
test eax, eax
jne 0x58258b
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x5825a9
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x582593
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x5825c2
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x5825b0
mov dword [edi + 4], eax
pop esi
test eax, eax
jle 0x5825e5
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x5825e0
dec eax
test eax, eax
jg 0x5825d2
mov dword [edi + 4], eax
test eax, eax
jne 0x5825ee
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x5835e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 4
call fcn.00452110
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
xor edi, edi
call fcn.0050a250
push ebp
call fcn.0050a0c0
mov esi, eax
add esp, 8
test esi, esi
je 0x5837f6
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x58361f
mov eax, esi
jmp 0x583629
push eax
push esi
call fcn.004eaf20
add esp, 8
test eax, eax
je 0x5837f5
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x5837b1
mov ebp, ecx
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
sub ebp, 1
jns 0x583641
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0x24]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x5837d5
mov edx, dword [esi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x5837d0
dec eax
test eax, eax
jg 0x5837c2
mov dword [esi + 4], eax
test eax, eax
jne 0x5837da
mov dword [esi + 0xc], edi
push dword [esp + 0x20]
push esi
push dword [esp + 0x20]
call fcn.00582600
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push ebp
call fcn.00509fe0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x5a3600
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.00452110
mov eax, dword [0x67c374]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xbc]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x30], eax
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], esi
sub esi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0xc8], edi
jae 0x5a3664
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.004ff1d0
add esp, 0xc
cmp edi, 0x40
jbe 0x5a3680
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.004ff1d0
add esp, 0xc
mov ecx, dword [esp + 0xc8]
lea eax, [esp + 0x34]
neg eax
lea ebx, [esp + 0x34]
and eax, 0x3f
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x20], ebx
cmp ecx, eax
jbe 0x5a36ae
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov eax, edi
xor edx, edx
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
div edi
push edi
mov esi, edx
push 0
push ebx
mov dword [esp + 0x38], esi
call fcn.005c8440
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x5a378b
mov ecx, dword [esp + 0x1c]
mov esi, ebx
mov edx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
sub ebp, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc0]
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [ecx + ebp]
shr ebx, 0x1f
lea ecx, [edi + ebp]
shr ecx, 0x1f
xor cl, dl
xor dl, bl
or cl, dl
mov edx, ebp
xor cl, bl
shr edx, 0x1f
xor dl, byte [esp + 0x14]
dec cl
mov dword [esp + 0x28], ecx
mov cl, byte [eax + ebp]
mov al, bl
xor al, byte [esp + 0x14]
inc ebp
or dl, al
xor dl, bl
mov ebx, dword [esp + 0x18]
neg dl
and dl, cl
and dl, byte [esp + 0x28]
or byte [ebx + esi], dl
inc ebx
mov edx, dword [esp + 0x10]
mov ecx, ebx
sub ecx, edi
mov eax, ebx
xor ecx, edi
xor eax, edi
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0xc8]
jb 0x5a3711
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
xor edx, edx
test edi, edi
je 0x5a37bf
mov ebp, dword [esp + 0x30]
mov eax, esi
xor eax, 0x20
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx]
inc esi
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc edx
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp edx, edi
jb 0x5a3795
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004514cc
add esp, 0xa8
ret
Function at 0x5a42e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00452110
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
inc ebx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [esi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x5a43ac
mov edx, dword [esp + 0x20]
lea eax, [ebx + edx]
cmp eax, ecx
ja 0x5a43b4
add dword [edi + 0xc], edx
add dword [edi + 0x10], edx
sub ecx, edx
mov dword [edi + 4], ecx
test dword [esi + 0x100], 0x200
mov eax, dword [edi + 0xc]
movzx ebx, byte [eax + ecx - 1]
je 0x5a437a
cmp dword [esi + 0x88], 0
jne 0x5a437a
mov eax, dword [esi + 0x58]
push 8
add eax, 8
push 0x64f8d4
push eax
call fcn.004fef00
add esp, 0xc
test eax, eax
jne 0x5a436d
test bl, 1
jne 0x5a436d
mov eax, dword [esi + 0x58]
or dword [eax], 8
mov eax, dword [esi + 0x58]
test byte [eax], 8
je 0x5a437a
test ebx, ebx
je 0x5a437a
dec ebx
mov eax, dword [esi + 0x80]
push ebp
push dword [eax]
call fcn.00502f50
mov ebp, dword [edi + 4]
add esp, 4
mov dword [esp + 0x14], ebp
and eax, 0x200000
je 0x5a43bd
sub ebp, ebx
mov eax, 1
dec ebp
mov dword [edi + 4], ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
cmp ebx, ecx
jbe 0x5a432b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x28]
mov edx, ebp
add ecx, ebx
mov eax, ebp
sub edx, ecx
xor eax, ecx
xor edx, ecx
mov ecx, 0xff
or edx, eax
lea eax, [ebp - 1]
xor edx, ebp
shr edx, 0x1f
dec edx
cmp eax, ecx
mov dword [esp + 0x1c], edx
cmovb ecx, eax
xor esi, esi
test ecx, ecx
je 0x5a4443
mov eax, ebx
shr eax, 0x1f
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
lea edi, [ebp - 1]
add edi, eax
mov ebp, ecx
nop
mov al, byte [esp + 0x28]
lea edi, [edi - 1]
mov edx, ebx
mov ecx, esi
sub edx, esi
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc esi
or dl, al
movzx eax, byte [edi + 1]
xor dl, byte [esp + 0x28]
xor eax, ebx
dec dl
movzx ecx, dl
mov edx, dword [esp + 0x1c]
and ecx, eax
not ecx
and edx, ecx
mov dword [esp + 0x1c], edx
cmp esi, ebp
jb 0x5a4400
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
not edx
lea eax, [ebx + 1]
movzx ecx, dl
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub ebp, eax
shl eax, 8
or dword [edi], eax
mov dword [edi + 4], ebp
mov dword [esp + 0x28], ecx
not ecx
pop ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebx
add esp, 8
ret
Function at 0x5b304a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5e2141
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005e1fb7

Function at 0x5ec3be
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005ebf11
Function at 0x5f57a0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x18
call fcn.00452110
mov eax, dword [0x67c374]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov dword [esp + 0x10], 1
mov edi, ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
xor esi, esi
nop
movsx edx, byte [edi]
lea edi, [edi + 1]
lea eax, [edx - 0x30]
cmp eax, 9
ja 0x5f5867
mov eax, dword [esp + ecx*4 + 0x14]
mov esi, 1
lea eax, [eax + eax*4]
lea eax, [eax - 0x18]
lea eax, [edx + eax*2]
mov dword [esp + ecx*4 + 0x14], eax
cmp eax, 0xff
jbe 0x5f57e0
xor esi, esi
call fcn.005f5c70
cmp eax, 1
jne 0x5f595c
test esi, esi
jne 0x5f5971
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004fed70
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x5f58d8
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004f5780
add esp, 0x14
jmp 0x5f592f
cmp edx, 0x2e
jne 0x5f5898
test esi, esi
je 0x5f587b
cmp ecx, 3
je 0x5f580b
inc ecx
jmp 0x5f57dd
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004f5780
add esp, 0x14
jmp 0x5f594c
test edx, edx
jne 0x5f580b
cmp ecx, 3
jne 0x5f580b
test esi, esi
je 0x5f580b
movzx eax, byte [esp + 0x14]
lea esi, [edx + 1]
mov byte [ebx], al
movzx eax, byte [esp + 0x18]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x1c]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x20]
mov byte [ebx + 3], al
jmp 0x5f580d
cmp word [ecx + 8], 2
je 0x5f58f9
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004f5780
add esp, 0x14
jmp 0x5f592f
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x10], 0
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004fed70
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x5f5971
push ebp
push str.host
push 2
call fcn.004f4c80
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004514cc
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004514cc
add esp, 0x18
ret

Function at 0x5f5cf0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5f5d30
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004f5780
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x405220
Capabilities:
Create pipe

Disassembly:
mov eax, 0x100c
call fcn.0040f300
mov eax, dword [0x5e7654]
mov ecx, dword [0x5e70e4]
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
je 0x40532d
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
mov ebp, dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x5e7654], 0x959
jne 0x405314
push 0
lea eax, [esp + 0x81c]
push eax
push 0
push 0
push 0
push 0
call esi
push 0x404d44
push 0
call edi
push 0
lea ecx, [esp + 0x1c]
push ecx
call ebx
push 0
push 0
push 0
call ebp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
lea edx, [esp + 0x41c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [esp + 0x10]
push eax
call fcn.00404f90
add dword [esp + 0x10], 8
dec dword [esp + 0x14]
jne 0x405264
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100c
ret
Function at 0x40ab63
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441e68]
jne 0x40ab6d
repz ret
jmp fcn.0040db58

Function at 0x40d782
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004079de
and dword [ebp - 0x14], 0
cmp dword [0x4593e8], 0
mov dword [ebp - 0x18], eax
jne 0x40d835
push 0x40454c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d8dd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404540
push ebx
call edi
test eax, eax
je 0x40d8dd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404530
push ebx
mov dword [0x4593e8], eax
call edi
push eax
call esi
push 0x40451c
push ebx
mov dword [0x4593ec], eax
call edi
push eax
call esi
push 0x404500
push ebx
mov dword [0x4593f0], eax
call edi
push eax
call esi
mov dword [0x4593f8], eax
test eax, eax
je 0x40d835
push 0x4044e8
push ebx
call edi
push eax
call esi
mov dword [0x4593f4], eax
mov eax, dword [0x4593f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d88e
cmp dword [0x4593f8], ecx
je 0x40d88e
push eax
call esi
push dword [0x4593f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d88e
test ebx, ebx
je 0x40d88e
call edi
test eax, eax
je 0x40d885
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d885
test byte [ebp - 8], 1
jne 0x40d88e
or dword [ebp + 0x10], 0x200000
jmp 0x40d8c1
mov eax, dword [0x4593ec]
cmp eax, dword [ebp - 0x18]
je 0x40d8c1
push eax
call esi
test eax, eax
je 0x40d8c1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d8c1
mov eax, dword [0x4593f0]
cmp eax, dword [ebp - 0x18]
je 0x40d8c1
push eax
call esi
test eax, eax
je 0x40d8c1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4593e8]
call esi
test eax, eax
je 0x40d8dd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d8df
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ab63
leave
ret