joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10111f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x68
call fcn.10163610
mov eax, dword [0x101f9e50]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], ebp
movq xmm0, qword [edi + 0x10]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi]
mov esi, dword [edi + 4]
movq qword [esp + 0x54], xmm0
movq xmm0, qword [edi + 0x18]
movq qword [esp + 0x5c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esp + 0x64], xmm0
movq xmm0, qword [edi + 0x28]
movq qword [esp + 0x6c], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [esp + 0x34], xmm0
movq xmm0, qword [edi + 0x38]
movq qword [esp + 0x3c], xmm0
movq xmm0, qword [edi + 0x40]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [edi + 0x48]
movq qword [esp + 0x4c], xmm0
test eax, eax
je 0x101120b8
push eax
lea eax, [edi + 0x50]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x1c]
push eax
movq qword [esp + 0x20], xmm0
movq qword [esp + 0x28], xmm0
movq qword [esp + 0x30], xmm0
movq qword [esp + 0x38], xmm0
call fcn.101623c0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x64]
push eax
push dword [edi + 8]
call fcn.10112370
add esp, 0x18
xor edx, edx
xor ebp, ebp
movzx eax, byte [esp + ebp + 0x14]
movzx ecx, byte [esp + ebp + 0x34]
add eax, edx
movzx edx, byte [esp + ebp + 0x15]
add ecx, eax
movzx eax, byte [esp + ebp + 0x35]
mov byte [esp + ebp + 0x34], cl
sar ecx, 8
add edx, ecx
movzx ecx, byte [esp + ebp + 0x16]
add edx, eax
movzx eax, byte [esp + ebp + 0x36]
mov byte [esp + ebp + 0x35], dl
sar edx, 8
add ecx, edx
movzx edx, byte [esp + ebp + 0x17]
add ecx, eax
movzx eax, byte [esp + ebp + 0x37]
mov byte [esp + ebp + 0x36], cl
sar ecx, 8
add edx, ecx
add edx, eax
mov byte [esp + ebp + 0x37], dl
add ebp, 4
sar edx, 8
cmp ebp, 0x20
jl 0x10112050
mov eax, dword [edi + 0xc]
mov ebp, dword [esp + 0x10]
cdq
add ebx, eax
adc esi, edx
shld esi, ebx, 3
xorps xmm0, xmm0
shl ebx, 3
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
movq qword [esp + 0x24], xmm0
movq qword [esp + 0x2c], xmm0
lea eax, [esp + 0x14]
test esi, esi
jl 0x10112106
jg 0x101120f0
test ebx, ebx
je 0x10112106
jmp 0x101120f0
mov byte [eax], bl
shrd ebx, esi, 8
sar esi, 8
lea eax, [eax + 1]
test esi, esi
jg 0x101120f0
jl 0x10112106
test ebx, ebx
jne 0x101120f0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
push dword [edi + 8]
call fcn.10112370
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
push dword [edi + 8]
call fcn.10112370
movq xmm0, qword [esp + 0x6c]
mov ecx, dword [esp + 0x8c]
movq qword [ebp], xmm0
movq xmm0, qword [esp + 0x74]
add esp, 0x18
movq qword [ebp + 8], xmm0
movq xmm0, qword [esp + 0x64]
movq qword [ebp + 0x10], xmm0
movq xmm0, qword [esp + 0x6c]
pop edi
pop esi
movq qword [ebp + 0x18], xmm0
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1016059f
add esp, 0x68
ret
Function at 0x1011f060
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x1011f077
mov ebx, ecx
jmp 0x1011f07b
mov ebx, ebp
mov ebp, ecx
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x1011f08b
mov eax, edi
jmp 0x1011f095
push eax
push edi
call fcn.10089940
add esp, 8
test eax, eax
jne 0x1011f09d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x1011f0bc
mov eax, dword [ebx]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
xor edx, dword [ecx + esi*4]
mov eax, dword [edi]
inc esi
mov dword [eax + esi*4 - 4], edx
cmp esi, dword [ebp + 4]
jl 0x1011f0a5
cmp esi, dword [ebx + 4]
jge 0x1011f0d1
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebx + 4]
jl 0x1011f0c1
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
pop esi
test ecx, ecx
jle 0x1011f0f5
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x1011f0f2
dec ecx
test ecx, ecx
jg 0x1011f0e4
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x1011f102
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x101200e0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.100a7fc0
push ebp
call fcn.100a7ee0
mov esi, eax
add esp, 8
test esi, esi
je 0x101202e9
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x10120115
mov eax, esi
jmp 0x1012011f
push eax
push esi
call fcn.10089940
add esp, 8
test eax, eax
je 0x101202e8
mov ebp, dword [ebx + 4]
dec ebp
js 0x10120299
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
and ecx, 0x8000
mov eax, edx
and eax, 0x20000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x40000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x80000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x100000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x200000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x400000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x800000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x1000000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x2000000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x4000000
or ecx, eax
shr ecx, 1
mov eax, edx
and eax, 0x8000000
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
mov eax, dword [esi]
and edx, reloc.WS2_32.dll_accept
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
add edx, edx
mov eax, ecx
and eax, 0x4000
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x800
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x400
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x200
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x100
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x80
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x40
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x20
or edx, eax
add edx, edx
mov eax, ecx
and eax, 0x10
or edx, eax
add edx, edx
mov eax, ecx
and eax, 8
or edx, eax
add edx, edx
mov eax, ecx
and eax, 4
or edx, eax
add edx, edx
mov eax, ecx
and eax, 2
or edx, eax
mov eax, dword [esi]
add edx, edx
and ecx, 1
or edx, ecx
dec ebp
mov dword [eax + ebp*8 + 8], edx
jns 0x10120131
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x101202c1
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
lea ecx, [ecx]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x101202be
dec eax
test eax, eax
jg 0x101202b0
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x101202c9
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.1011f1a0
mov ebp, dword [esp + 0x2c]
add esp, 0xc
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push ebp
call fcn.100a7e70
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10140090
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa8
call fcn.10163610
mov eax, dword [0x101f9e50]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xac]
push ebx
push ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb8]
push esi
mov eax, dword [eax + 4]
mov esi, dword [esp + 0xc4]
push edi
mov edi, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
sub eax, edi
xor ebp, ebp
mov dword [esp + 0x10], eax
cmp esi, edi
jae 0x101400f6
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.1009d490
add esp, 0xc
cmp edi, 0x40
jbe 0x10140112
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.1009d490
add esp, 0xc
lea eax, [esp + 0x34]
neg eax
and eax, 0x3f
lea ebx, [esp + 0x34]
add ebx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0x1c], ebx
cmp esi, eax
jbe 0x10140139
mov ebp, esi
sub ebp, edi
sub ebp, 0x100
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, dword [esp + 0x10]
xor edx, edx
div edi
push edi
push 0
push ebx
mov esi, edx
mov dword [esp + 0x30], esi
call fcn.10161d70
add esp, 0xc
mov dword [esp + 0x18], 0
cmp ebp, dword [esp + 0xc8]
jae 0x10140229
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x1f
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov edx, eax
shr edx, 0x1f
mov dword [esp + 0x28], edx
mov edx, ebp
sub edx, eax
sub eax, ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x10], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov esi, ebx
lea ebx, [ebx]
lea ebx, [eax + edx]
mov eax, dword [esp + 0x20]
shr edx, 0x1f
shr ebx, 0x1f
xor bl, al
mov ecx, ebp
shr ecx, 0x1f
xor al, cl
or bl, al
mov eax, dword [esp + 0x28]
xor dl, al
xor al, cl
or dl, al
mov eax, dword [esp + 0x30]
xor dl, cl
mov al, byte [eax + ebp]
dec dl
xor bl, cl
mov ecx, dword [esp + 0x18]
not dl
and dl, al
dec bl
and dl, bl
or byte [ecx + esi], dl
mov edx, ecx
inc edx
mov ecx, edx
sub ecx, edi
mov eax, edx
xor ecx, edi
xor eax, edi
or ecx, eax
mov eax, dword [esp + 0x14]
xor ecx, edx
shr ecx, 0x1f
neg ecx
and edx, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
inc ebp
inc edx
mov dword [esp + 0x10], edx
cmp ebp, dword [esp + 0xc8]
jb 0x101401b0
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
xor edx, edx
test edi, edi
je 0x1014025e
mov ebp, dword [esp + 0x2c]
mov eax, esi
xor eax, 0x20
inc esi
mov al, byte [eax + ebx]
movzx eax, byte [esi + ebx - 1]
mov byte [edx + ebp], al
mov ecx, esi
sub ecx, edi
xor ecx, edi
mov eax, esi
xor eax, edi
or ecx, eax
xor ecx, esi
shr ecx, 0x1f
neg ecx
inc edx
and esi, ecx
cmp edx, edi
jb 0x10140233
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1016059f
add esp, 0xa8
ret
Function at 0x10140bd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10163610
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
inc ebp
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x38], 1
je 0x10140c18
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
lea eax, [ecx + ebp]
cmp eax, edx
jbe 0x10140c0b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub edx, ecx
mov dword [esi + 4], edx
jmp 0x10140c1d
cmp ebp, dword [esi + 4]
ja 0x10140c04
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + eax - 1]
je 0x10140c70
cmp dword [edi + 0x88], 0
jne 0x10140c70
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x101cf66c
push eax
call fcn.1009d1d0
add esp, 0xc
test eax, eax
jne 0x10140c63
test bl, 1
jne 0x10140c63
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x10140c70
test ebx, ebx
je 0x10140c70
dec ebx
mov eax, dword [edi + 0x80]
push dword [eax]
call fcn.100a10d0
add esp, 4
test eax, 0x200000
je 0x10140c9a
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edx, dword [esi + 4]
lea eax, [ebx + ebp]
mov edi, edx
sub edi, eax
xor edi, eax
xor eax, edx
or edi, eax
xor edi, edx
shr edi, 0x1f
mov ecx, 0xff
lea eax, [edx - 1]
dec edi
cmp eax, ecx
cmovb ecx, eax
xor ebp, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x10140d1c
mov esi, dword [esi + 0xc]
mov eax, ebx
shr eax, 0x1f
dec esi
mov dword [esp + 0x24], eax
add esi, edx
lea ebx, [ebx]
mov al, byte [esp + 0x24]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov ecx, ebp
shr ecx, 0x1f
xor dl, cl
xor al, cl
or dl, al
xor dl, byte [esp + 0x24]
movzx eax, byte [esi]
dec dl
movzx ecx, dl
xor eax, ebx
and ecx, eax
not ecx
inc ebp
and edi, ecx
lea esi, [esi - 1]
cmp ebp, dword [esp + 0x18]
jb 0x10140ce0
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
not edi
and edi, 0xff
lea eax, [ebx + 1]
lea ecx, [edi - 1]
shr ecx, 0x1f
not edi
shr edi, 0x1f
and ecx, edi
neg ecx
and eax, ecx
sub edx, eax
shl eax, 8
or dword [esi], eax
pop ebx
mov eax, ecx
pop edi
mov dword [esi + 4], edx
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x10141140
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.10163610
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
xor esi, esi
push esi
xor edi, edi
call fcn.10127e70
add esp, 0xc
test eax, eax
je 0x101412c8
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
shl eax, 0xa
test ebx, eax
je 0x1014117c
inc edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
inc esi
push esi
call fcn.10127e70
add esp, 0xc
test eax, eax
jne 0x10141170
test edi, edi
je 0x101412c8
mov ecx, dword [esp + 0x50]
mov eax, ecx
cdq
idiv edi
push ebp
mov ebp, dword [esp + 0x50]
mov esi, eax
xor eax, eax
cmp edi, 1
mov edi, dword [esp + 0x60]
push edi
push eax
push dword [esp + 0x60]
cmove ecx, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x60], ecx
call fcn.10161d70
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0
mov dword [esp + 0x30], 0
call fcn.10127e70
add esp, 0x18
test eax, eax
je 0x10141293
nop
mov eax, dword [esp + 0x10]
shl eax, 0xa
test ebx, eax
je 0x1014126f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x101412a0
push edi
push dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
push dword [esp + 0x54]
and eax, 1
push dword [esp + 0x54]
add eax, esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x54]
push eax
push ebp
push ecx
call fcn.101412f0
add esp, 0x3c
test eax, eax
je 0x101412be
add ebp, esi
test edi, edi
jle 0x1014126f
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
sub esi, ecx
mov edx, edi
mov edi, edi
mov al, byte [esi + ecx]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x10141260
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
inc eax
push ecx
push eax
mov dword [esp + 0x24], eax
call fcn.10127e70
add esp, 0xc
test eax, eax
jne 0x101411f0
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.10093ea0
add esp, 0x14
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.10093ea0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1017caaf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1016b5c3
mov dword [ebp - 0x14], eax
cmp dword [0x10205a60], edi
jne 0x1017cba0
push 0x800
push edi
push 0x101d6a4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1017cb2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1017cc80
push 0x101d6a4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1017cc80
push 0x101d6a64
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1017cc80
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10205a60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10205a64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x101d6a94
push esi
mov dword [0x10205a68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10205a70], eax
test eax, eax
je 0x1017cb9d
push 0x101d6ab0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10205a6c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1017cbc5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1017cbb8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1017cbda
push 4
pop eax
jmp 0x1017cc82
cmp dword [ebp - 0x14], edi
je 0x1017cbda
push dword [0x10205a60]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1017cbbf
mov eax, dword [0x10205a6c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1017cc38
cmp dword [0x10205a70], esi
je 0x1017cc38
push eax
call ebx
push dword [0x10205a70]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1017cc38
test eax, eax
je 0x1017cc38
call ecx
test eax, eax
je 0x1017cc2d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1017cc2d
test byte [ebp - 8], 1
jne 0x1017cc38
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1017cc68
mov eax, dword [0x10205a64]
cmp eax, esi
je 0x1017cc65
push eax
call ebx
test eax, eax
je 0x1017cc65
call eax
mov edi, eax
test edi, edi
je 0x1017cc65
mov eax, dword [0x10205a68]
cmp eax, esi
je 0x1017cc65
push eax
call ebx
test eax, eax
je 0x1017cc65
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10205a60]
call ebx
test eax, eax
je 0x1017cc80
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1017cc82
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1016059f
leave
ret
Function at 0x1017f231
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.101726a4
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1017f269
xor eax, eax
jmp 0x1017f295
cmp esi, dword [ebp - 4]
je 0x1017f292
cmp dword [ebp + 0xc], 0
je 0x1017f292
push dword [edi + 0x9c]
call fcn.1017ee3f
push dword [edi + 0x9c]
mov esi, eax
call fcn.10169d6a
pop ecx
pop ecx
cmp esi, eax
je 0x1017f265
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x10182e20
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.100871a0
add esp, 8
test esi, esi
jg 0x10182e77
je 0x10182e59
cmp esi, 0xffffffff
jne 0x10182e77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101830b0
add esp, 4
test eax, eax
je 0x10182e77
push 0xa
push edi
call fcn.10087890
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x10183210
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 6
je 0x1018322b
push eax
push esi
call fcn.101838d0
add esp, 8
test eax, eax
jle 0x10183273
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.100871a0
add esp, 8
test edi, edi
jg 0x10183270
push edi
call fcn.10183170
add esp, 4
test eax, eax
je 0x10183270
push 0xa
push esi
call fcn.10087890
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x10185190
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push ebx
push esi
mov ebp, 1
call fcn.10185650
mov edi, eax
add esp, 8
test edi, edi
jns 0x101851cb
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.10093ea0
add esp, 0x14
jmp 0x1018528c
call fcn.10185580
cmp eax, 1
jne 0x1018529c
test edi, edi
jle 0x101851e4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.1009d160
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x10185221
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.10093ea0
add esp, 0x14
jmp 0x10185272
cmp word [ecx + 8], 2
je 0x10185242
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.10093ea0
add esp, 0x14
jmp 0x10185272
mov eax, dword [ecx + 0xc]
xor ebp, ebp
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 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.1009d160
add esp, 0x10
test ebp, ebp
je 0x101852a3
push esi
push 0x101d78ec
push 2
call fcn.10093410
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x10185600
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 0x10185640
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.10093ea0
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x18aabc1
Capabilities:
Check for trap flag exception

Disassembly:
lea edi, [ebp*8 - 0x567f6908]
mov di, 0x8f0f
pushfd
call fcn.018aa263
pushfd
not edi
pushfd
pop dword [esp]
movzx di, bl
push esi
bswap di
movsx di, cl
movsx di, al
mov esi, edx
pushfd
lea edi, [ecx + eax - 0x40]
cld
xchg dword [esp], edi
lea edi, [eax*8 + 0x61521696]
pushal
jmp 0x18ab812
jmp 0x18a9fcd
push 0x1d56d2f
lea esp, [esp + 4]
ja 0x18aa28c
bt ax, 3
add dh, cl
mov edx, esp
shl ah, 2
inc eax
aaa
shl ch, 2
lea ecx, [edi + 0x40]
stc
or ax, 0xb62
cwde
sub ecx, edx
cmp al, 0xe6
shld eax, edi, cl
shr ah, cl
dec ah
lea eax, [ebp - 0x80]
rcr di, 5
bts edi, 0x18
sbb di, 0xbf7d
rol di, cl
and al, 0xfc
rol di, 0xc
sub eax, ecx
pushfd
mov esp, eax
movzx di, bl
jmp 0x18a9980
movsx di, dl
mov esp, eax
pushal
jmp 0x18abd14
add di, 0xbc1f
pushfd
mov edi, dword [esp + 0x2c]
bts si, 8
btr esi, 0x16
btc si, 0xb
bsr si, di
mov esi, dword [esp + 0x30]
test bh, 0x79
push dword [esp + 0x34]
popfd
mov word [esp + 4], cx
lea esp, [esp + 0x38]
jmp 0x18aa28c
cmp ebp, eax
pushal
lea esp, [esp + 0x44]
jno 0x18a9d8d
push 0xf2c80e5c
push 0xbf9f2e34
lea esp, [esp + 8]
ja 0x18aa28c
cwde
aam 0xbe
and ax, sp
mov edx, esp
shl cl, 1
shld ax, di, 8
test bl, bh
lea ecx, [edi + 0x40]
and di, 0xb191
aad 0xba
not ah
aad 0xcf
sub ecx, edx
sub di, di
lea eax, [ebp - 0x80]
sbb edi, esp
movzx di, dl
ror edi, cl
and al, 0xfc
bswap di
mov edi, 0xce5fd72b
sub eax, ecx
mov edi, ebp
bswap edi
jbe 0x18aa1ea
mov esp, eax
movsx di, al
not di
mov di, sp
jbe 0x18a96da
pushfd
movsx di, dl
std
movsx di, bl
push esi
pushal
pop edi
mov esi, edx
cld
lea edi, [ecx + eax - 0x40]
pushfd
cld
pushal
call fcn.018aa036
pushal
push 0x3147ae7f
pushfd
mov word [ebp + 4], ax
pushfd
pushfd
pop dword [esp + 0x28]
push 0x719984ce
push dword [esp + 0x2c]
pop dword [ebp]
mov byte [esp], bl
pushfd
pushfd
push dword [esp + 8]
lea esp, [esp + 0x3c]
jmp 0x18aa852
mov edi, eax
mov byte [esp + 8], 0x74
cld
std
mov byte [esp], bl
cld
pushfd
pushfd
rep movsb byte es:[edi], byte [esi]
jmp 0x18aa334
pushfd
pop dword [esp + 0x1c]
pushfd
std
pushal
xchg dword [esp + 0x3c], esi
not di
push ecx
cld
mov esi, edx
cld
mov word [esp], cx
movsx di, al
lea edi, [ecx + eax - 0x40]
mov byte [esp + 4], 0x33
xchg dword [esp + 0x3c], edi
movsx di, dl
bswap di
mov edi, eax
std
cld
call fcn.018aaf79
push ecx
call fcn.018aaa44