joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40bcb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bcb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bca8
mov eax, 1
add ebx, ebx
jne 0x40bccb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bcc0
jne 0x40bcdc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bcc0
xor ecx, ecx
sub eax, 3
jb 0x40bcf0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40bd62
mov ebp, eax
add ebx, ebx
jne 0x40bcfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bd08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bd2c
inc ecx
add ebx, ebx
jne 0x40bd18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bd0d
jne 0x40bd29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bd0d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40bd4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bd3d
jmp 0x40bcae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40bd4c
add edi, ecx
jmp 0x40bcae
pop esi
mov edi, esi
mov ecx, 0x20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40bd6a
cmp byte [edi], 2
jne 0x40bd6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40bd6f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40bde7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb91c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40bd9c
mov ecx, edi
jns 0x40bdcb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb95c]
or eax, eax
je 0x40bde1
mov dword [ebx], eax
add ebx, 4
jmp 0x40bdb9
call dword [esi + 0xb960]
popal
jmp 0x401478

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10008d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
cmp ecx, 0
je 0x10008e2a
and ebp, 0xfffffff8
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x10008dbd
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.libcrypto_3.dll_BF_encrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10008d83
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10008ef3
call 0x10008dcf
pop edx
lea ecx, [edx + 0x171]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x10008e8a
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.libcrypto_3.dll_BF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10008e3b
mov ebp, dword [esp + 0x34]
and ebp, 7
je 0x10008ef3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
bswap eax
bswap ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call sym.libcrypto_3.dll_BF_decrypt
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0xc]
bswap eax
bswap ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10008eee
jmp 0x10008ef3
mov ecx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10010640
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x1001071b
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x100106b6
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call sym.libcrypto_3.dll_DES_encrypt1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10010684
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x100107d4
call 0x100106c8
pop edx
lea ecx, [edx + 0x138]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x10010773
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call sym.libcrypto_3.dll_DES_encrypt1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1001072c
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x100107d4
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call sym.libcrypto_3.dll_DES_encrypt1
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100107cf
jmp 0x100107d4
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10010840
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x10010924
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x100108bf
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call sym.libcrypto_3.dll_DES_encrypt3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x1001088d
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x100109dd
call 0x100108d1
pop edx
lea ecx, [edx + 0x12f]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x1001097c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call sym.libcrypto_3.dll_DES_decrypt3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10010935
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x100109dd
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call sym.libcrypto_3.dll_DES_decrypt3
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x100109d8
jmp 0x100109dd
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004fba0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
movzx eax, cl
push esi
mov esi, dword [esp + 0x10]
and eax, 1
test esi, esi
je 0x1004fbe2
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
add edi, esi
add ebx, esi
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x1004fbc1
pop edi
pop ebx
pop esi
ret
Function at 0x100692e0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x1033bdfc], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x10068cf0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x10069090
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.10068ca0
jne 0x1006943b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10069431
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.10236c68
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.10236d2b
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x100693af
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x100693f6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.10236c68
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.10236d2b
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x1006942d
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x1006942a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x1006942a
inc esi
cmp esi, 3
jl 0x100693f8
mov eax, dword [esp + 0x14]
mov dword [0x10339358], eax
mov eax, dword [esp + 0x1c]
mov dword [0x10339360], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.10068ca0], eax
jmp 0x1006942d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x1033bdfc], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x10339358]
call fcn.1022836f
add esp, 0x230
ret 4
Function at 0x10069470
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.1022a0e0
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.1022a0e0
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.10236e47
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10069645
cmp word [ebx + 8], 2
jne 0x10069562
cmp word [ebx + 0xa], 4
jne 0x10069562
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x10069562
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.100696a0
mov dword [edi], eax
test eax, eax
je 0x100695f0
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x10069530
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.10236e47
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x100695f7
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10069586
sub ecx, edx
je case.0x10069655.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100695c0
test dl, dl
je 0x100695bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100695c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100695a0
xor eax, eax
jmp 0x100695c5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x10069655.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x10069655.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x100694f2
mov esi, 8
jmp 0x1006966f
cmp dword [esp + 0x844], esi
je 0x1006966f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10069605
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.10236e52
mov edi, eax
add esp, 8
test edi, edi
je 0x1006962d
push ebp
push ebx
push edi
call fcn.10236c68
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
mov ecx, 8
cmp dword [eax + 0x14], esi
cmove esi, ecx
jmp 0x1006966f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x10069655.11001
jmp dword [eax*4 + 0x1006968c]
mov esi, 0x2afa
jmp 0x1006966f
mov esi, 0x2afb
jmp 0x1006966f
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022836f
add esp, 0x820
ret 0x18
Function at 0x1006e4f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
cmp dword [esp + 8], 0
je 0x1006e524
call sym.libcrypto_3.dll_ERR_new
push 0x10286d84
push 0x1a2
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x8c
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor eax, eax
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x1c
push eax
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.10068640
add esp, 4
push eax
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1006e5ab
call sym.libcrypto_3.dll_ERR_new
push 0x10286d84
push 0x196
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_getsockname__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286d84
push 0x198
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x84
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
ret
cmp dword [esp + 8], 0x1c
jbe 0x1006e5df
call sym.libcrypto_3.dll_ERR_new
push 0x10286d84
push 0x19c
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x85
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor eax, eax
ret
mov eax, 1
ret

Function at 0x1006e5f0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x1033be18], 0
jne 0x1006e689
push 0x190
push 0
push 0x1033be20
mov dword [0x1033be18], 1
call fcn.1022a0e0
add esp, 0xc
push 0x1033be20
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1006e689
call sym.libcrypto_3.dll_ERR_new
push 0x10286d10
push 0x96
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286d10
push 0x98
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x7a
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x1006e690
Capabilities:
Set socket configuration

Disassembly:
push esi
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x1006e6dd
call sym.libcrypto_3.dll_ERR_new
push 0x10286d38
push 0xf4
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x1006e6e0
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 0x1006e735
call sym.libcrypto_3.dll_ERR_new
push 0x10286d38
push 0xf4
push str.crypto_bio_bio_sock.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x1006e740
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.10228380
mov eax, dword [0x1033b254]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0xffffffff
jne 0x1006e786
or eax, edi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1022836f
add esp, 0x110
ret
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x1006e7b6
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1022836f
add esp, 0x110
ret
push 0
call fcn.102364af
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x1006e7e9
jl 0x1006e7cf
cmp esi, eax
jae 0x1006e7e9
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.1022836f
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [esp + 0x118]
pop esi
pop edi
pop ebp
xor ecx, esp
call fcn.1022836f
add esp, 0x110
ret
Function at 0x1006ea70
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.10228380
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x1006eab8
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0x56
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x87
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call sym.libcrypto_3.dll_BIO_socket_nbio
add esp, 8
test eax, eax
je 0x1006eb47
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x1006eb4e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x1006eb4e
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0x60
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0x62
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x89
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x1006ebbf
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x1006ebbf
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0x6a
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0x6c
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x8a
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.10068650
add esp, 4
push eax
push esi
call fcn.10068630
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1006ec51
push eax
call sym.libcrypto_3.dll_BIO_sock_should_retry
add esp, 4
test eax, eax
jne 0x1006eb47
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0xb2
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
call sym.libcrypto_3.dll_ERR_new
push 0x10286de4
push 0xb4
push str.crypto_bio_bio_sock2.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push 0x67
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x10075da0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.1013de50
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.1022a900
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10075e59
call sym.libcrypto_3.dll_ERR_new
push 0x10287434
push 0x43
push str.crypto_bio_bss_file.c
call sym.libcrypto_3.dll_ERR_set_debug
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x14
call fcn.1024a256
cmp dword [eax], 2
je 0x10075e29
call fcn.1024a256
cmp dword [eax], 6
je 0x10075e29
mov esi, 0x80002
mov edi, 0x4d
jmp 0x10075e31
mov esi, 0x80
lea edi, [esi - 0x35]
call sym.libcrypto_3.dll_ERR_new
push 0x10287434
push edi
push str.crypto_bio_bss_file.c
call sym.libcrypto_3.dll_ERR_set_debug
push 0
push esi
push 0x20
call sym.libcrypto_3.dll_ERR_set_error
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x102873ec
call sym.libcrypto_3.dll_BIO_new
mov esi, eax
add esp, 4
test esi, esi
jne 0x10075e7b
push edi
call fcn.102488d3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call sym.libcrypto_3.dll_BIO_clear_flags
push edi
push ebx
push 0x6a
push esi
call sym.libcrypto_3.dll_BIO_ctrl
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret