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

Disassembly:
cmp edx, 0x1f
jne 0x1400a1f6e
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 0x1400a1e09
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a1e17
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a1e25
mov byte [rax], Ordinal_32
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 0x1400a1e5f
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x1400a1e76
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a1e84
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1400a1e96
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a1ea4
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400a1eb2
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.1400a1550
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 0x1400a1f1a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140085a60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400a1ca0
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 0x1400a1f66
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140085a60
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

Function at 0x1400a1f70
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 0x1400a1fce
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x1400a1fb7
sub r8d, 2
je 0x1400a1fe2
cmp r8d, 1
jne 0x1400a2015
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x1400a2015
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.1400a1c10
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x1400a1ffb
sub ecx, 1
je 0x1400a1f9e
cmp ecx, 1
jne 0x1400a2015
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x1400a2015
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.1400a1c10
pop rbx
ret
Function at 0x1400a2020
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 0x1400a2088
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x1400a206e
sub r8d, 2
je 0x1400a209f
cmp r8d, 1
jne 0x1400a20d5
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1400a20d5
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.1400a1c10
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x1400a20b8
sub ecx, 1
je 0x1400a2055
cmp ecx, 1
jne 0x1400a20d5
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x1400a20d5
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.1400a1c10
pop rbx
ret
Function at 0x1400a3260
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 [0x14021d0b8]
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 0x1400a3304
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 0x1400a3353
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140085a60
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b1210
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.1400a2da0
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x1400a33e2
sub r8d, 1
je 0x1400a3451
sub r8d, 1
je 0x1400a33ba
cmp r8d, 1
je 0x1400a339a
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1401a7e90]
call fcn.140085a60
jmp 0x1400a3451
mov rdx, qword [rsi]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rbx
call fcn.1400a2fb0
test eax, eax
je 0x1400a3451
jmp 0x1400a3329
mov rcx, rsi
call fcn.1400a2d80
movzx r8d, ax
lea rdx, [0x1401a709c]
mov dword [rbx + 8], r8d
mov rcx, rdi
mov r8, qword [rsi]
add r8, 4
call fcn.140085b30
jmp 0x1400a3451
cmp r9d, 4
jle 0x1400a3451
mov rcx, rsi
call fcn.1400a2d80
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x1400a3451
mov r8, qword [rsi]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r14
call fcn.140085930
mov esi, eax
test eax, eax
je 0x1400a3430
mov edx, 5
mov rcx, rbx
call fcn.1400a3cb0
mov eax, esi
jmp 0x1400a3329
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.1400903a0
mov rcx, r14
call fcn.1400906a0
test eax, eax
je 0x1400a3327
mov edx, 5
mov rcx, rbx
call fcn.1400a3cb0
mov eax, Ordinal_46
jmp 0x1400a3329
Function at 0x1400a7bd0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14021d0b8]
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 0x1400a7c36
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400a7c36
lea rcx, [rsp + 0x20]
call qword [case.0x14007b776.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1210
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1210
add rsp, 0x148
ret
jmp 0x1400a7bd0

Function at 0x1400a7c50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14021d0b8]
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 0x1400a7c36
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400a7c36
lea rcx, [rsp + 0x20]
call qword [case.0x14007b776.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1210
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b1210
add rsp, 0x148
ret
jmp 0x1400a7bd0
Function at 0x1400aa380
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 0x1400aa3aa
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, [0x1401af510]
mov rcx, rbx
mov r14, rax
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbspbrk
test rax, rax
je 0x1400aa40d
mov rcx, rbx
test r14, r14
je 0x1400aa3f7
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 0x1400aa445
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400aa445
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 0x1400aa508
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400aa470
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400aa4fa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400aa4fa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400aa4a0
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1400aa4b4
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 0x1400aa4d0
mov rcx, rdi
test r14, r14
je 0x1400aa4f1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400aa4f7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400b2014]
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 0x1400ab150
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 0x1400ab19a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400ab18a
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 0x1400ab1e2
cmp qword [rbx + 0x10], 0
jne 0x1400ab1ce
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401a734c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400ab1ce
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 0x1400ab205
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ab1fc
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 0x1400b10c0
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x1400b1102
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 0x1400b1145
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 0x1400b11a2
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 0x1400b1160
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b11e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401b009a]
mov r8d, 1
call qword [rbx + htons]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401b009b]
mov r8d, 1
call qword [rbx + htons]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b11b0
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 0x1400b1ccc
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
mov eax, 0x468
call fcn.1400b17d0
sub rsp, rax
mov rax, qword [0x14021d0b8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
test rcx, rcx
jne 0x1400bf182
xor eax, eax
jmp 0x1400bf2a0
test ebx, ebx
je 0x1400bf17b
lea rdx, [0x1401a734c]
mov qword [rsp + 0x460], r14
call fcn.1400e95e0
mov r14, rax
test rax, rax
je 0x1400bf296
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 0x1400bf28e
mov qword [rsp + 0x490], rsi
lea rcx, [rsp + 0x20]
xorps xmm2, xmm2
mov qword [rsp + 0x498], rdi
mov edx, Ordinal_50
call fcn.1400becc0
mov eax, 0x2000
test word [rsp + 0x26], ax
je 0x1400bf225
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 0x1400bf233
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 0x1400bf26f
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, esi
call fcn.1400becc0
add ebp, esi
test ebx, ebx
jle 0x1400bf225
sub ebx, edi
test ebx, ebx
jg 0x1400bf225
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.1400b1210
add rsp, 0x468
pop rbp
pop rbx
ret

Function at 0x1400bf2c0
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1400b17d0
sub rsp, rax
lea rcx, str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1400bf2f7
mov r8d, 0x1e3
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rax
add rsp, 0x28
jmp fcn.1400c7670
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.1400db7e0
xor edx, edx
mov ecx, edx
cmp byte [rax], cl
je 0x1400bf321
nop
cmp ecx, 0x80000000
jae 0x1400bf321
inc rax
inc ecx
cmp byte [rax], dl
jne 0x1400bf310
btr ecx, 0x1f
lea rax, str.openssl.cnf
nop dword [rax]
cmp edx, 0x80000000
jae 0x1400bf342
inc rax
inc edx
cmp byte [rax], 0
jne 0x1400bf330
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.1400b2a80
mov rbx, rax
test rax, rax
jne 0x1400bf37a
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.1400db7e0
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.1400c7b70
mov r8, rdi
lea rdx, [0x1401a6e5c]
mov rcx, rbx
call fcn.1400c7af0
mov r8, rdi
lea rdx, str.openssl.cnf
mov rcx, rbx
call fcn.1400c7af0
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400c5ba0
Capabilities:
Get thread local storage value

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

Function at 0x1400c5d20
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1400b17d0
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 0x1400c6a40
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.1400b17d0
sub rsp, rax
xor edi, edi
mov ebx, r9d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
cmp r9d, 0x17
ja 0x1400c6b2f
mov eax, 0x800005
bt eax, ebx
jae 0x1400c6b2f
call fcn.1400c67d0
cmp eax, 1
jne 0x1400c6b4f
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 0x1400c6acf
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 0x1400c6b26
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.1400c2400
mov ecx, ebx
call fcn.1400c7020
mov rdx, rax
mov ecx, 1
call fcn.1400c1730
mov eax, edi
jmp 0x1400c6b51
mov edi, 1
mov eax, edi
jmp 0x1400c6b51
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.1400c2400
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 0x1400c7c20
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1400b17d0
sub rsp, rax
cmp dword [0x14022d774], 0
jne 0x1400c7d6e
mov qword [rsp + 0x38], rbx
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x20], rdi
mov dword [0x14022d774], 1
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
je 0x1400c7d42
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.14007b7a0
test eax, eax
jne 0x1400c7cae
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 0x1400c7cd7
lea rcx, [0x14022ebb0]
call fcn.140001030
mov rcx, qword [rsp + 0x30]
not rcx
and rax, rcx
jmp 0x1400c7ce8
cmp byte [rbx], 0x3a
jne 0x1400c7ced
lea rcx, [0x14022ebb0]
call fcn.140001030
mov qword [rsp + 0x30], rax
mov edx, Ordinal_60
mov dword [0x14022ebb8], edi
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400c7d3b
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 0x1400c7d35
not eax
and dword [0x14022ebb8], eax
mov rax, qword [rsp + 0x30]
jmp 0x1400c7d4e
mov dword [0x14022ebb8], eax
mov rax, qword [rsp + 0x30]
jmp 0x1400c7d4e
lea rcx, [0x14022ebb0]
call fcn.140001030
mov rdi, qword [rsp + 0x20]
mov ecx, eax
mov rbx, qword [rsp + 0x38]
bts ecx, 0xa
shr rax, 0x20
mov dword [0x14022ebb4], eax
mov dword [0x14022ebb0], ecx
add rsp, 0x28
ret
Function at 0x1400fb980
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x40
call fcn.1400b17d0
sub rsp, rax
cmp dword [rsp + 0x70], 2
mov rdi, r8
movsxd rbp, r9d
mov r14, rcx
je 0x1400fba10
test rdx, rdx
je 0x1400fb9fc
mov r9, rdx
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.1400ddc50
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400fb9fc
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.1400c2400
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
test rdi, rdi
je 0x1400fba06
cmp ebp, 0x20
je 0x1400fba10
mov dword [rsp + 0x20], Ordinal_60
jmp 0x1400fb9cf
mov r8d, Ordinal_60
mov qword [rsp + 0x50], rbx
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x12]
call fcn.1400b2dc0
mov rbx, rax
test rax, rax
jne 0x1400fba5a
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.1400c2400
xor eax, eax
jmp 0x1400fbb4a
cmp dword [rsp + 0x70], 0
jne 0x1400fba74
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400fbb35
mov r8d, 0x43
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x23]
call fcn.1400f4990
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400fbabb
lea r9, str.cryptoececx_meth.c
mov dword [rsp + 0x20], 0x45
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c2400
mov r8d, 0x46
jmp 0x1400fbaef
cmp dword [rsp + 0x70], 2
jne 0x1400fbb1b
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call fcn.1400bed10
test eax, eax
jg 0x1400fbb02
mov rcx, qword [rbx + 0x20]
lea rdx, str.cryptoececx_meth.c
mov r8d, Ordinal_79
call fcn.1400f4970
mov r8d, Ordinal_79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.1400b2ad0
xor eax, eax
jmp 0x1400fbb4a
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 0x1400fbb29
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.14012c520
mov r8, rbx
mov edx, 0x40a
mov rcx, r14
call fcn.1400b8b00
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 0x14011b340
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x14011b433
lea r9, [rdx + 1]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8d, 3
jl 0x14011b3bb
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 0x14011b414
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x14011b3d2
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 0x14011b3fe
lea eax, [r8 + 0x3c]
jmp 0x14011b40a
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 0x14011b357
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret