joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013cf40
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x102e74e8], 0
jne 0x1013cfd9
push 0x190
push 0
push 0x102e74f0
mov dword [0x102e74e8], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x102e74f0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1013cfd9
call fcn.1010b5b0
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.1010b6b0
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1010b760
call fcn.1010b5b0
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.1010b6b0
push 0
push 0x7a
push 0x20
call fcn.1010b760
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x1013cfe0
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 0x1013d035
call fcn.1010b5b0
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.1010b6b0
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1010b760
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x1013d040
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.100bab40
mov eax, dword [0x102db080]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x1013d12e
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x1013d0a1
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.100b9f43
add esp, 0x110
ret
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x1013d0d5
jl 0x1013d0bb
cmp esi, eax
jae 0x1013d0d5
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.100b9f43
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]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.100b9f43
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.100b9f43
add esp, 0x110
ret
Function at 0x1013dcc0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.100bab40
mov eax, dword [0x102db080]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x102e7688], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x1013d6a0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x1013da60
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], 0x1013d650
jne 0x1013de23
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1013de19
push ebx
push ebp
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x130]
push edi
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call esi
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x1013dd91
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x1013ddda
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call esi
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1013de15
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x1013de12
xor esi, esi
nop dword [eax]
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x1013de12
inc esi
cmp esi, 3
jl 0x1013dde0
mov eax, dword [esp + 0x14]
mov dword [0x102dbd5c], eax
mov eax, dword [esp + 0x1c]
mov dword [0x102dbd64], eax
mov eax, dword [esp + 0x24]
mov dword [0x102dbd6c], eax
jmp 0x1013de15
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x102e7688], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x102dbd5c]
call fcn.100b9f43
add esp, 0x230
ret 4
Function at 0x1013de50
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.100bab40
mov eax, dword [0x102db080]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x19]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x400
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
mov byte [esp + 0x30], 0
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [esp + 0x439]
mov byte [esp + 0x438], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
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 0x1013e031
cmp word [ebx + 8], 2
jne 0x1013df52
cmp word [ebx + 0xa], 4
jne 0x1013df52
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x1013df52
nop dword [eax]
nop dword [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.1013e090
mov dword [edi], eax
test eax, eax
je 0x1013e02a
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x1013df20
push 0x400
push dword [ebx]
push 0x401
push ebp
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x1013dfdf
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013df77
sub ecx, edx
je case.0x1013e041.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1013dfb0
test dl, dl
je 0x1013dfac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1013dfb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x1013df90
xor eax, eax
jmp 0x1013dfb5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x1013e041.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x1013e041.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x1013dee0
mov esi, 0x2afb
jmp 0x1013e054
cmp dword [esp + 0x844], esi
je 0x1013e054
mov ecx, ebp
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1013dff0
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x1013e01a
push ebp
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x1013e054
mov esi, 8
jmp 0x1013e054
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1013e041.11001
jmp dword [eax*4 + 0x1013e074]
mov esi, 0x2afa
jmp 0x1013e054
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b9f43
add esp, 0x820
ret 0x18
Function at 0x10144090
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.10187f70
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x10144149
call fcn.1010b5b0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.1010b6b0
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 fcn.1010b760
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
add esp, 0x14
call esi
cmp dword [eax], 2
je 0x10144119
call esi
cmp dword [eax], 6
je 0x10144119
mov esi, 0x80002
mov edi, 0x4d
jmp 0x10144121
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.1010b5b0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.1010b6b0
push 0
push esi
push 0x20
call fcn.1010b760
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10259e28
call fcn.10113280
mov esi, eax
add esp, 4
test esi, esi
jne 0x1014416c
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.10112b50
push edi
push ebx
push 0x6a
push esi
call fcn.10112b80
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x1015b120
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.100bab40
mov eax, dword [0x102db080]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xf0]
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push str.SHA512
push ecx
call fcn.10102020
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1015b1a2
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.10101430
push edi
mov esi, eax
call fcn.10102050
add esp, 0x1c
test esi, esi
jne 0x1015b1bc
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.10001320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.100b9f43
add esp, 0xe4
ret
mov al, byte [esp + 0xcb]
and byte [esp + 0xac], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esp + 0xcb], al
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1015a960
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.1015a8e0
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.10001320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b9f43
add esp, 0xe4
ret
Function at 0x10168e80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x10168f49
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x10168ea1
cmp al, 0x6b
jne 0x10168f49
inc ecx
cmp al, 0x6b
jne 0x10168f02
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x10168ec2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x10168ec2
cmp dl, 0xbb
jne 0x10168ed6
inc eax
cmp eax, esi
jl 0x10168eb0
sub esi, eax
test eax, eax
jne 0x10168f05
call fcn.1010b5b0
push str.RSA_padding_check_X931
push 0x56
jmp 0x10168ee2
call fcn.1010b5b0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.1010b6b0
push 0
push 0x8a
push 4
call fcn.1010b760
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x10168f37
call fcn.1010b5b0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.1010b6b0
push 0
push 0x8b
push 4
call fcn.1010b760
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.1010b5b0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.1010b6b0
push 0
push 0x89
push 4
call fcn.1010b760
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x1017aaa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.100bab40
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax + 0x64]
push esi
mov esi, dword [esp + 0x28]
push edi
mov ecx, dword [ebp + 0x70]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
test ecx, ecx
je 0x1017ab09
test ebx, ebx
je 0x1017aae9
lea edx, [ebp + 0x30]
add edx, ecx
cmp ecx, 0x40
jae 0x1017aae9
mov al, byte [edx]
inc ecx
xor al, byte [esi]
inc edx
mov byte [edi], al
inc esi
inc edi
sub ebx, 1
jne 0x1017aad5
mov dword [ebp + 0x70], ecx
test ebx, ebx
je 0x1017abc4
cmp ecx, 0x40
jne 0x1017ab09
mov dword [ebp + 0x70], 0
add dword [ebp + 0x20], 1
jne 0x1017ab09
inc dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov eax, ebx
and eax, 0x3f
sub ebx, eax
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x20]
mov dword [esp + 0x24], eax
cmp ebx, 0x40
jb 0x1017ab77
push dword [esp + 0x24]
mov ecx, ebx
xor ebp, ebp
shr ecx, 6
lea eax, [ecx + edx]
cmp eax, ecx
cmovae ebp, eax
neg edx
cmp eax, ecx
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x14]
cmovae edx, ecx
shl edx, 6
push ebp
push edx
push esi
push edi
mov dword [esp + 0x28], edx
call fcn.1001ae80
mov eax, dword [esp + 0x28]
add esp, 0x14
sub ebx, eax
add esi, eax
add edi, eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x1017ab70
inc dword [ebp + 0x24]
mov edx, eax
cmp ebx, 0x40
jae 0x1017ab23
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1017abc4
push 0x40
lea eax, [ebp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp + 0x20]
push eax
push ebp
lea eax, [ebp + 0x30]
push 0x40
push eax
push eax
call fcn.1001ae80
add esp, 0x20
xor edx, edx
test ebx, ebx
je 0x1017abc1
sub esi, edi
nop dword [eax + eax]
mov al, byte [edx + ebp + 0x30]
lea ecx, [edx + edi]
xor al, byte [esi + ecx]
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x1017abb0
mov dword [ebp + 0x70], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
Function at 0x1017f840
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.100bab40
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x14], edi
test edi, edi
je 0x1017f889
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x1017f889
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x14], edi
jne 0x1017f870
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xc]
bswap edx
mov dword [esp + 0x24], edx
cmp esi, 0x10
jb 0x1017f924
mov edi, eax
mov ecx, esi
shr ecx, 4
push edi
push dword [esp + 0x2c]
lea eax, [ecx + edx]
neg edx
cmp eax, ecx
cmovae edx, ecx
mov dword [esp + 0x18], edx
xor edx, edx
push dword [esp + 0x18]
cmp eax, ecx
push ebx
cmovae edx, eax
push ebp
mov dword [esp + 0x38], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
bswap eax
mov dword [edi + 0xc], eax
test edx, edx
jne 0x1017f906
mov edx, 0xc
mov eax, 1
nop word [eax + eax]
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x1017f8f0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x1017f8a1
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
test esi, esi
je 0x1017f982
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [esp + 0x2c]
push 1
push ecx
push ecx
movups xmmword [ecx], xmm0
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x2c]
add edx, 1
bswap edx
mov dword [eax + 0xc], edx
jne 0x1017f95d
push eax
call fcn.1017f9c0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
nop word [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x1017f970
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x101830e0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.100bab40
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x10183128
call fcn.1010b5b0
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
push 0
push 0x87
push 0x20
call fcn.1010b760
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 fcn.1013cfe0
add esp, 8
test eax, eax
je 0x101831b7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x101831be
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x101831be
call fcn.1010b5b0
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1010b760
call fcn.1010b5b0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
push 0
push 0x89
push 0x20
call fcn.1010b760
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x1018322f
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x1018322f
call fcn.1010b5b0
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1010b760
call fcn.1010b5b0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
push 0
push 0x8a
push 0x20
call fcn.1010b760
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.1013d290
add esp, 4
push eax
push esi
call fcn.1013d280
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x101832bb
push eax
call fcn.10182ff0
add esp, 4
test eax, eax
jne 0x101831b7
call fcn.1010b5b0
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.1010b760
call fcn.1010b5b0
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.1010b6b0
push 0
push 0x67
push 0x20
call fcn.1010b760
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 0x10186e40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
movzx eax, cl
and eax, 1
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x10186e82
push ebx
add edi, esi
lea ebx, [edx + 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 0x10186e62
pop ebx
pop edi
pop esi
ret
Function at 0x1019c440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 4
call fcn.100bab40
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp edi, 0x800
jge 0x1019c488
call fcn.1010b5b0
push str.ossl_rsa_fips186_4_gen_prob_primes
push 0x5c
push str.crypto_rsa_rsa_sp800_56b_gen.c
call fcn.1010b6b0
push 0
push 0x78
push 4
call fcn.1010b760
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push dword [esp + 0x18]
call fcn.1019c190
add esp, 4
test eax, eax
jne 0x1019c4c4
call fcn.1010b5b0
push str.ossl_rsa_fips186_4_gen_prob_primes
push 0x61
push str.crypto_rsa_rsa_sp800_56b_gen.c
call fcn.1010b6b0
push 0
push 0xb2
push 4
call fcn.1010b760
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.1016b460
push esi
call fcn.1016b210
push esi
mov dword [esp + 0x2c], eax
call fcn.1016b210
push esi
mov ebp, eax
call fcn.1016b210
add esp, 0x10
mov ebx, eax
cmp dword [esp + 0x20], 0
je 0x1019c626
test ebp, ebp
je 0x1019c5fd
test ebx, ebx
je 0x1019c5f4
push 4
push ebp
call fcn.10115e10
push 4
push ebx
call fcn.10115e10
mov esi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi + 0x20], 0
jne 0x1019c52e
call fcn.10115ce0
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x1019c53c
call fcn.10115ce0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1019c5f0
cmp dword [esi + 0x24], 0
je 0x1019c5f0
push 4
push eax
call fcn.10115e10
push 4
push dword [esi + 0x24]
call fcn.10115e10
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edi
push 0
push 0
push 0
push 0
push 0
push ebp
push dword [esi + 0x20]
call fcn.10205540
add esp, 0x3c
test eax, eax
je 0x1019c5f0
nop word [eax + eax]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
push 0
push 0
push 0
push 0
push 0
push ebx
push dword [esi + 0x24]
call fcn.10205540
add esp, 0x2c
test eax, eax
je 0x1019c5f0
push edi
push ebx
push ebp
push dword [esp + 0x2c]
call fcn.1019c120
add esp, 0x10
test eax, eax
js 0x1019c5f0
je 0x1019c590
push edi
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esp + 0x2c]
call fcn.1019c120
add esp, 0x10
test eax, eax
js 0x1019c5f0
je 0x1019c590
inc dword [esi + 0x78]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x28]
push ebp
call fcn.101153e0
add esp, 4
test ebx, ebx
je 0x1019c60a
push ebx
call fcn.101153e0
add esp, 4
push dword [esp + 0x20]
call fcn.101153e0
push esi
call fcn.1016b110
mov eax, dword [esp + 0x18]
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x1019c5fd
jmp 0x1019c5f4