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

Disassembly:
cmp edx, 0x1f
jne 0x1400a28be
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdi, qword [rbp + 0x198]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400a2759
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a2767
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a2775
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1400a27af
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x1400a27c6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a27d4
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1400a27e6
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a27f4
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a2802
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a1ea0
mov rcx, qword [r14 + 0x230]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1400a286a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400863b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a25f0
mov rcx, qword [r14 + 0x230]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a28b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400863b0
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

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

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x198]
cmp r8d, 1
jne 0x1400a291e
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x1400a2907
sub r8d, 2
je 0x1400a2932
cmp r8d, 1
jne 0x1400a2965
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x1400a2965
mov dword [r9 + r11*4 + 0x408], 1
pop rbx
ret
mov edx, 0xfb
mov dword [r9 + r11*4 + 8], 2
mov r8d, r11d
pop rbx
jmp fcn.1400a2560
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x1400a294b
sub ecx, 1
je 0x1400a28ee
cmp ecx, 1
jne 0x1400a2965
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x1400a2965
mov dword [r9 + r11*4 + 0x408], 0
pop rbx
ret
mov edx, 0xfc
mov dword [r9 + r11*4 + 8], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.1400a2560
pop rbx
ret
Function at 0x1400a2970
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x198]
cmp r8d, 1
jne 0x1400a29d8
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x1400a29be
sub r8d, 2
je 0x1400a29ef
cmp r8d, 1
jne 0x1400a2a25
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1400a2a25
mov dword [r9 + r11*4 + 0x1008], 1
pop rbx
ret
mov edx, 0xfd
mov dword [r9 + r11*4 + 0xc08], 2
mov r8d, r11d
pop rbx
jmp fcn.1400a2560
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x1400a2a08
sub ecx, 1
je 0x1400a29a5
cmp ecx, 1
jne 0x1400a2a25
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x1400a2a25
mov dword [r9 + r11*4 + 0x1008], 0
pop rbx
ret
mov edx, 0xfe
mov dword [r9 + r11*4 + 0xc08], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.1400a2560
pop rbx
ret
Function at 0x1400a3bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14021f0c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x630]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
lea rsi, [rbx + 0x168]
mov rdx, qword [rsi]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400a3c54
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x1400a3ca3
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400863b0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b1b60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rsi
call fcn.1400a36f0
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x1400a3d32
sub r8d, 1
je 0x1400a3da1
sub r8d, 1
je 0x1400a3d0a
cmp r8d, 1
je 0x1400a3cea
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1401a8f50]
call fcn.1400863b0
jmp 0x1400a3da1
mov rdx, qword [rsi]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rbx
call fcn.1400a3900
test eax, eax
je 0x1400a3da1
jmp 0x1400a3c79
mov rcx, rsi
call fcn.1400a36d0
movzx r8d, ax
lea rdx, [0x1401a815c]
mov dword [rbx + 8], r8d
mov rcx, rdi
mov r8, qword [rsi]
add r8, 4
call fcn.140086480
jmp 0x1400a3da1
cmp r9d, 4
jle 0x1400a3da1
mov rcx, rsi
call fcn.1400a36d0
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x1400a3da1
mov r8, qword [rsi]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r14
call fcn.140086280
mov esi, eax
test eax, eax
je 0x1400a3d80
mov edx, 5
mov rcx, rbx
call fcn.1400a4600
mov eax, esi
jmp 0x1400a3c79
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.140090cf0
mov rcx, r14
call fcn.140090ff0
test eax, eax
je 0x1400a3c77
mov edx, 5
mov rcx, rbx
call fcn.1400a4600
mov eax, Ordinal_46
jmp 0x1400a3c79
Function at 0x1400a8520
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14021f0c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400a8586
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400a8586
lea rcx, [rsp + 0x20]
call qword [case.0x14007c0c6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1b60
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1b60
add rsp, 0x148
ret
jmp 0x1400a8520

Function at 0x1400a85a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14021f0c0]
xor rax, rsp
mov qword [rsp + 0x130], rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400a8586
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400a8586
lea rcx, [rsp + 0x20]
call qword [case.0x14007c0c6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1b60
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1b60
add rsp, 0x148
ret
jmp 0x1400a8520
Function at 0x1400aacd0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400aacfa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1401b05d0]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbspbrk
test rax, rax
je 0x1400aad5d
mov rcx, rbx
test r14, r14
je 0x1400aad47
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1400aad95
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400aad95
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400aae58
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400aadc0
lea ecx, [rax + 1]
add rcx, rdx
call qword [str.8_v_]
mov rdi, rax
test rax, rax
je 0x1400aae4a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400aae4a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400aadf0
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1400aae04
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400aae20
mov rcx, rdi
test r14, r14
je 0x1400aae41
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400aae47
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [str.2_v_]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400abaa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 3
jne 0x1400abaea
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400abada
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400abb32
cmp qword [rbx + 0x10], 0
jne 0x1400abb1e
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401a840c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400abb1e
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rdi, rax
test rax, rax
jne 0x1400abb55
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400abb4c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b1a10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.8_v_]
mov rdi, rax
test rax, rax
jne 0x1400b1a52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b1a95
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + htons]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b1af2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + htons]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + htons]
sub rbp, 1
jne 0x1400b1ab0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b1b33
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401b115a]
mov r8d, 1
call qword [rbx + htons]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401b115b]
mov r8d, 1
call qword [rbx + htons]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b1b00
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b26c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b2712
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b2712
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b2712
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b2712
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b2712
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b2714
xor al, al
add rsp, 0x28
ret
Function at 0x1400bfb50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
mov eax, 0x468
call fcn.1400b21a0
sub rsp, rax
mov rax, qword [0x14021f0c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
test rcx, rcx
jne 0x1400bfb82
xor eax, eax
jmp 0x1400bfca0
test ebx, ebx
je 0x1400bfb7b
lea rdx, [0x1401a840c]
mov qword [rsp + 0x460], r14
call fcn.1400e9fe0
mov r14, rax
test rax, rax
je 0x1400bfc96
xor eax, eax
mov rcx, r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
lea rdx, [rsp + 0x20]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32
test eax, eax
js 0x1400bfc8e
mov qword [rsp + 0x490], rsi
lea rcx, [rsp + 0x20]
xorps xmm2, xmm2
mov qword [rsp + 0x498], rdi
mov edx, Ordinal_50
call fcn.1400bf6c0
mov eax, 0x2000
test word [rsp + 0x26], ax
je 0x1400bfc25
cmp ebx, 0xffffffff
mov eax, 0x800
mov rcx, r14
cmove ebx, eax
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_setbuf
mov edi, 0x400
test ebx, ebx
jle 0x1400bfc33
cmp ebx, edi
cmovl edi, ebx
movsxd r8, edi
lea rcx, [rsp + 0x50]
mov r9, r14
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rsi, rax
test eax, eax
jle 0x1400bfc6f
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, esi
call fcn.1400bf6c0
add ebp, esi
test ebx, ebx
jle 0x1400bfc25
sub ebx, edi
test ebx, ebx
jg 0x1400bfc25
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1400011f0
mov rdi, qword [rsp + 0x498]
mov rsi, qword [rsp + 0x490]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov r14, qword [rsp + 0x460]
mov eax, ebp
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400b1b60
add rsp, 0x468
pop rbp
pop rbx
ret

Function at 0x1400bfcc0
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1400b21a0
sub rsp, rax
lea rcx, str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1400bfcf7
mov r8d, 0x1e3
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rax
add rsp, 0x28
jmp fcn.1400c8070
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.1400dc1e0
xor edx, edx
mov ecx, edx
cmp byte [rax], cl
je 0x1400bfd21
nop
cmp ecx, 0x80000000
jae 0x1400bfd21
inc rax
inc ecx
cmp byte [rax], dl
jne 0x1400bfd10
btr ecx, 0x1f
lea rax, str.openssl.cnf
nop dword [rax]
cmp edx, 0x80000000
jae 0x1400bfd42
inc rax
inc edx
cmp byte [rax], 0
jne 0x1400bfd30
btr edx, 0x1f
lea eax, [rcx + 2]
add eax, edx
mov r8d, 0x1eb
movsxd rdi, eax
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rdi
call fcn.1400b3480
mov rbx, rax
test rax, rax
jne 0x1400bfd7a
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.1400dc1e0
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.1400c8570
mov r8, rdi
lea rdx, [0x1401a7f1c]
mov rcx, rbx
call fcn.1400c84f0
mov r8, rdi
lea rdx, str.openssl.cnf
mov rcx, rbx
call fcn.1400c84f0
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400c65a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1400b21a0
sub rsp, rax
mov ecx, dword [rcx]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400c6720
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1400b21a0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400c7440
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x60
call fcn.1400b21a0
sub rsp, rax
xor edi, edi
mov ebx, r9d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
cmp r9d, 0x17
ja 0x1400c752f
mov eax, 0x800005
bt eax, ebx
jae 0x1400c752f
call fcn.1400c71d0
cmp eax, 1
jne 0x1400c754f
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], ebx
cmp esi, 1
jne 0x1400c74cf
or dword [rsp + 0x30], esi
mov r9, qword [rsp + 0x98]
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x1400c7526
mov edx, 0x87
mov dword [rsp + 0x20], 0x2cc
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x67]
lea r8d, [rcx - 0x1e]
call fcn.1400c2e00
mov ecx, ebx
call fcn.1400c7a20
mov rdx, rax
mov ecx, 1
call fcn.1400c2130
mov eax, edi
jmp 0x1400c7551
mov edi, 1
mov eax, edi
jmp 0x1400c7551
mov edx, 0x87
mov dword [rsp + 0x20], 0x2a1
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x67]
lea r8d, [rdx - 4]
call fcn.1400c2e00
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400c8620
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1400b21a0
sub rsp, rax
cmp dword [0x14022f854], 0
jne 0x1400c876e
mov qword [rsp + 0x38], rbx
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x20], rdi
mov dword [0x14022f854], 1
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
je 0x1400c8742
mov qword [rsp + 0x40], rbp
lea r8, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x48], rsi
movzx esi, byte [rax]
lea rdx, str._I64i
mov ecx, edi
cmp sil, 0x7e
sete cl
lea rbp, [rcx + rax]
mov rcx, rbp
call fcn.14007c0f0
test eax, eax
jne 0x1400c86ae
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov eax, eax
mov qword [rsp + 0x30], rax
mov rbp, qword [rsp + 0x40]
cmp sil, 0x7e
mov rsi, qword [rsp + 0x48]
jne 0x1400c86d7
lea rcx, [0x140230c90]
call fcn.140001030
mov rcx, qword [rsp + 0x30]
not rcx
and rax, rcx
jmp 0x1400c86e8
cmp byte [rbx], 0x3a
jne 0x1400c86ed
lea rcx, [0x140230c90]
call fcn.140001030
mov qword [rsp + 0x30], rax
mov edx, Ordinal_60
mov dword [0x140230c98], edi
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400c873b
movzx ebx, byte [rax + 1]
inc rax
cmp bl, 0x7e
sete dil
xor r8d, r8d
xor edx, edx
lea rcx, [rax + rdi]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
cmp bl, 0x7e
jne 0x1400c8735
not eax
and dword [0x140230c98], eax
mov rax, qword [rsp + 0x30]
jmp 0x1400c874e
mov dword [0x140230c98], eax
mov rax, qword [rsp + 0x30]
jmp 0x1400c874e
lea rcx, [0x140230c90]
call fcn.140001030
mov rdi, qword [rsp + 0x20]
mov ecx, eax
mov rbx, qword [rsp + 0x38]
bts ecx, 0xa
shr rax, 0x20
mov dword [0x140230c94], eax
mov dword [0x140230c90], ecx
add rsp, 0x28
ret
Function at 0x1400fc380
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x40
call fcn.1400b21a0
sub rsp, rax
cmp dword [rsp + 0x70], 2
mov rdi, r8
movsxd rbp, r9d
mov r14, rcx
je 0x1400fc410
test rdx, rdx
je 0x1400fc3fc
mov r9, rdx
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.1400de650
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400fc3fc
mov dword [rsp + 0x20], Ordinal_50
mov ecx, reloc.WS2_32.dll_recv
lea r9, str.cryptoececx_meth.c
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.1400c2e00
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
test rdi, rdi
je 0x1400fc406
cmp ebp, 0x20
je 0x1400fc410
mov dword [rsp + 0x20], Ordinal_60
jmp 0x1400fc3cf
mov r8d, Ordinal_60
mov qword [rsp + 0x50], rbx
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x12]
call fcn.1400b37c0
mov rbx, rax
test rax, rax
jne 0x1400fc45a
lea r9, str.cryptoececx_meth.c
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_60
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c2e00
xor eax, eax
jmp 0x1400fc54a
cmp dword [rsp + 0x70], 0
jne 0x1400fc474
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400fc535
mov r8d, 0x43
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x23]
call fcn.1400f5390
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400fc4bb
lea r9, str.cryptoececx_meth.c
mov dword [rsp + 0x20], 0x45
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c2e00
mov r8d, 0x46
jmp 0x1400fc4ef
cmp dword [rsp + 0x70], 2
jne 0x1400fc51b
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call fcn.1400bf710
test eax, eax
jg 0x1400fc502
mov rcx, qword [rbx + 0x20]
lea rdx, str.cryptoececx_meth.c
mov r8d, Ordinal_79
call fcn.1400f5370
mov r8d, Ordinal_79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.1400b34d0
xor eax, eax
jmp 0x1400fc54a
mov rax, qword [rbx + 0x20]
and byte [rax], 0xf8
mov rax, qword [rbx + 0x20]
and byte [rax + 0x1f], 0x7f
mov rax, qword [rbx + 0x20]
or byte [rax + 0x1f], 0x40
jmp 0x1400fc529
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
mov rdx, qword [rbx + 0x20]
mov rcx, rbx
call fcn.14012cf20
mov r8, rbx
mov edx, 0x40a
mov rcx, r14
call fcn.1400b9500
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x14011bd40
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x14011be33
lea r9, [rdx + 1]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8d, 3
jl 0x14011bdbb
movzx eax, byte [r9]
movzx edx, byte [r9 - 1]
shl rdx, 8
or rdx, rax
movzx eax, byte [r9 + 1]
shl rdx, 8
or rdx, rax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
mov rax, rdx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
add rcx, 3
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx], al
jmp 0x14011be14
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x14011bdd2
movzx eax, byte [r9]
shl eax, 8
or edx, eax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
cmp r8d, 1
jne 0x14011bdfe
lea eax, [r8 + 0x3c]
jmp 0x14011be0a
shr rdx, 6
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx + 2], al
add rcx, 3
mov byte [rcx], 0x3d
add r10d, 4
add r9, 3
sub r8d, 3
inc rcx
test r8d, r8d
jg 0x14011bd57
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret