joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009340
Capabilities:
Set current directory

Disassembly:
push rbx
mov eax, 0x2030
call fcn.1400abe60
sub rsp, rax
mov rbx, rcx
mov dword [rsp + 0x28], 0x1000
lea rax, [rsp + 0x30]
mov r8, rdx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140009392
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add rsp, 0x2030
pop rbx
ret
lea rdx, str.unable_to_encode_path
mov rcx, rbx
call fcn.140015ea0
mov rcx, rbx
call fcn.140017910
int3

Function at 0x14000a310
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
lea rcx, [rsp + 0x58]
call fcn.14000a210
mov qword [r15], rax
mov rsi, rax
test rax, rax
jne 0x14000a366
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rdi, qword [rsp + 0x58]
cmp byte [rdi], 0x5c
jne 0x14000a373
inc rdi
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov rbx, rax
test rax, rax
je 0x14000a3b8
movzx ebp, byte [rax + 1]
test bpl, bpl
je 0x14000a3bb
sub rbx, rdi
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov byte [r14 + rbx], 0
jmp 0x14000a3ce
xor bpl, bpl
mov r14, rdi
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14000a3c5
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
test eax, eax
je 0x14000a3f8
mov qword [rsp + 0x58], rsi
test bpl, bpl
je 0x14000a406
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbp, qword [rsp + 0x58]
add rdi, rbx
mov qword [r15 + 8], rbp
test rbp, rbp
je 0x14000a349
test rdi, rdi
je 0x14000a349
cmp byte [rdi], 0x5c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r14, [rdi + 1]
cmovne r14, rdi
mov qword [rsp + 0x20], rsi
mov rdx, r14
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000a349
mov ecx, dword [rsp + 0x58]
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r9d, r9d
xor r8d, r8d
mov rbx, rax
mov rdx, r14
lea rax, [rsp + 0x58]
mov rcx, rbp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000a49b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000a349
mov eax, dword [rsp + 0x58]
mov qword [r15 + 0x10], rbx
mov byte [rax + rbx], sil
jmp 0x14000a34d
Function at 0x14000a630
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2040
call fcn.1400abe60
sub rsp, rax
mov rsi, rdx
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
test eax, eax
mov edi, ecx
setne dil
test eax, eax
je 0x14000a6b7
mov qword [rsp + 0x38], rcx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
mov ecx, 0xfde9
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movzx eax, byte [rbx]
test al, al
je 0x14000a6b7
nop
cmp al, 0x2f
je 0x14000a6a9
cmp byte [rbx], 0x5c
jne 0x14000a6ac
mov byte [rbx], 0x2f
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x14000a6a0
lea r11, [rsp + 0x2040]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000b3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
mov eax, 0x2030
call fcn.1400abe60
sub rsp, rax
mov rbx, rcx
mov dword [rsp + 0x28], 0x1000
lea rax, [rsp + 0x30]
mov r8, rdx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000b42a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b41f
shr eax, 4
not eax
and eax, 1
add rsp, 0x2030
pop rbx
ret
xor eax, eax
add rsp, 0x2030
pop rbx
ret
lea rdx, str.unable_to_encode_filepath
mov rcx, rbx
call fcn.140015ea0
mov rcx, rbx
call fcn.140017910
int3

Function at 0x14000ca70
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x450
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x14000ca99
mov eax, 1
add rsp, 0x450
pop rbx
ret
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14000caa0
sub eax, 1
movsxd rcx, eax
js 0x14000cac7
movzx edx, byte [rcx + rbx]
cmp dl, 0x2f
je 0x14000cac7
cmp dl, 0x5c
je 0x14000cac7
dec eax
sub rcx, 1
jns 0x14000cab1
test eax, eax
jle 0x14000cb18
mov qword [rsp + 0x460], rdi
lea rcx, [rsp + 0x50]
movsxd rdi, eax
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
cmp byte [rsp + rdi + 0x4f], 0x3a
mov byte [rsp + rdi + 0x50], 0
jne 0x14000caf9
mov word [rsp + rdi + 0x50], 0x2f
lea rcx, [rsp + 0x50]
call fcn.14000ca70
mov rdi, qword [rsp + 0x460]
test eax, eax
jne 0x14000cb18
add rsp, 0x450
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x450
pop rbx
ret
Function at 0x14000e430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
mov eax, 0x3030
call fcn.1400abe60
sub rsp, rax
mov rbx, rdx
lea rax, [rsp + 0x1030]
mov rsi, rcx
mov r14d, 0x1000
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000e56e
lea rdx, [0x1400ad130]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rbp, rax
test rax, rax
je 0x14000e56e
xor edx, edx
mov qword [rsp + 0x3040], rdi
mov r8d, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
movsxd rdi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
cmp rbx, rdi
jne 0x14000e561
test rdi, rdi
je 0x14000e531
nop dword [rax]
cmp rdi, r14
lea rcx, [rsp + 0x30]
mov rbx, rdi
mov r9, rbp
cmova rbx, r14
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbx
jne 0x14000e561
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000e561
add rsi, rbx
sub rdi, rbx
jne 0x14000e4f0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 1
mov rdi, qword [rsp + 0x3040]
lea r11, [rsp + 0x3030]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
jmp 0x14000e53f
xor eax, eax
jmp 0x14000e547
Function at 0x140011740
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rax - 8]
sub rax, 0x10
and ecx, 0xf
cmp ecx, 4
je 0x140011794
cmp ecx, 3
je 0x14001176e
xor edi, edi
jmp 0x14001179b
mov rdx, rax
mov rcx, rbx
call fcn.140023850
mov rax, qword [rbx + 0x18]
cmp qword [rax + 0x18], 0
jle 0x14001178c
mov rcx, rbx
call fcn.140021c00
mov rax, qword [rbx + 0x10]
sub rax, 0x10
mov rdi, qword [rax]
add rdi, 0x18
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov esi, 0xffffffff
test eax, eax
je 0x1400117c2
movzx esi, word [rsp + 0x28]
mov rcx, rbx
call fcn.140011550
mov r8d, 9
lea rdx, str._Error:
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
lea rdx, [0x1400acb68]
lea rcx, str.Error:__s_n
cmove rcx, rdx
mov rdx, rdi
call fcn.140010a50
mov ecx, esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.140013e90
Function at 0x140013e90
Capabilities:
Query environment variable

Disassembly:
test ecx, ecx
js 0x140013f5a
push rbx
sub rsp, 0x20
mov eax, dword [0x140163be8]
mov ebx, ecx
test eax, eax
jns 0x140013f25
lea rcx, str.CLICOLOR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
lea rdx, [0x1401488d4]
cmovne rdx, rax
cmp byte [rdx], 0x30
je 0x140013ee9
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__isatty]
test eax, eax
jne 0x140013f19
lea rcx, str.CLICOLOR_FORCE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
lea rcx, [0x1401488e4]
cmovne rcx, rax
cmp byte [rcx], 0x30
jne 0x140013f19
mov dword [0x140163be8], 0
add rsp, 0x20
pop rbx
ret
mov dword [0x140163be8], 1
jmp 0x140013f27
je 0x140013f55
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
add rsp, 0x20
pop rbx
ret
Function at 0x14001a100
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
sub rsp, 0x48
mov rdi, rdx
mov rbp, rcx
mov rcx, rdi
xor edx, edx
mov r9d, 0x610
mov r8d, 8
call rbp
test rax, rax
jne 0x14001a12c
add rsp, 0x48
pop rdi
pop rbp
ret
mov qword [rsp + 0x68], rbx
xor ecx, ecx
lea rbx, [rax + 0xd8]
mov qword [rsp + 0x70], rsi
lea rsi, [rax + 8]
mov byte [rbx + 0x54], 1
lea rax, [rsp + 0x60]
mov dword [rsi + 8], pe_nt_image_headers64
mov qword [rsp + 0x28], rax
lea rax, [0x140142280]
mov qword [rsp + 0x30], rax
lea rax, [fcn.14001a100]
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x50], rsi
mov qword [rbx + 8], rdi
mov edi, 0x20
mov qword [rsp + 0x40], r14
xor r14d, r14d
mov qword [rsi], r14
mov qword [rsi + 0x38], r14
mov qword [rsi + 0x20], r14
mov dword [rsi + 0xb8], r14d
mov qword [rsi + 0x58], r14
mov word [rsi + 0xc6], r14w
mov qword [rsp + 0x38], rax
mov qword [rsi + 0xa8], r14
mov dword [rsi + 0xc8], r14d
mov qword [rsi + 0xbc], r14
mov byte [rsi + 0xcc], 1
mov qword [rsi + 0x40], r14
mov word [rsi + 0xc4], 1
mov byte [rsi + 0xc], r14b
mov qword [rsi + 0xb0], r14
mov qword [rbx], rbp
mov qword [rbx + 0xc8], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, edi
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rsp + rdi + 0x1f]
mov ecx, eax
shl ecx, 5
sub rdi, 2
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp rdi, 2
jae 0x14001a200
mov dword [rbx + 0x50], eax
lea rdx, [0x140019c40]
mov word [rbx + 0x56], r14w
xor r8d, r8d
mov qword [rbx + 0x28], r14
mov rcx, rsi
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x30], r14
mov dword [rbx + 0x48], r14d
mov qword [rbx + 0xc0], r14
mov qword [rbx + 0xd0], r14
mov byte [rbx + 0x55], 7
mov qword [rbx + 0xa0], r14
mov qword [rbx + 0x98], r14
mov qword [rbx + 0x68], r14
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x80], r14
mov qword [rbx + 0xa8], r14
mov qword [rbx + 0x10], 0x610
mov qword [rbx + 0x18], r14
mov dword [rbx + 0xb0], r14d
mov dword [rbx + 0xb4], 0xc8
mov dword [rbx + 0xb8], 0xc8
mov qword [rbx + 0x1a0], r14
mov qword [rbx + 0x1a8], r14
mov qword [rbx + 0x1b0], r14
mov qword [rbx + 0x1b8], r14
mov qword [rbx + 0x1c0], r14
mov qword [rbx + 0x1c8], r14
mov qword [rbx + 0x1d0], r14
mov qword [rbx + 0x1d8], r14
mov qword [rbx + 0x1e0], r14
call fcn.14001a490
mov rbx, qword [rsp + 0x68]
test eax, eax
je 0x14001a313
mov rcx, rsi
call fcn.140019e00
mov rsi, r14
mov r14, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x70]
add rsp, 0x48
pop rdi
pop rbp
ret
Function at 0x1400232e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x50], rbx
mov r13, rdx
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
xor esi, esi
lea r11, [0x140143190]
xorps xmm1, xmm1
mov r10d, esi
mov r14d, esi
mov r9d, esi
mov r8, qword [rax]
mov edi, esi
movsx r15d, byte [r8]
mov qword [r13], rbx
movzx eax, byte [rbx]
test byte [rax + r11 + 1], 8
je 0x14002334f
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + 1]
inc rbx
test byte [rax + r11 + 1], 8
jne 0x140023340
mov qword [rsp + 0x60], r12
lea rdx, [rbx + 1]
mov ebp, 1
cmp al, 0x2d
jne 0x140023366
mov r12d, ebp
jmp 0x140023370
cmp byte [rbx], 0x2b
mov r12d, esi
cmovne rdx, rbx
cmp byte [rdx], 0x30
mov rbx, qword [rsp + 0x50]
jne 0x1400234b9
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x1400234b9
movsd xmm2, qword [0x140156e98]
lea r13, [0x140143190]
add rdx, 2
nop
movzx r8d, byte [rdx]
mov r11, rdx
movsx rcx, r8b
cmp ecx, r15d
jne 0x1400233bb
test edi, edi
jne 0x140023410
mov edi, ebp
inc rdx
jmp 0x1400233a0
test byte [r8 + r13 + 1], 0x10
je 0x140023410
test r10d, r10d
jne 0x1400233d3
cmp r8b, 0x30
jne 0x1400233d3
inc r14d
jmp 0x140023404
inc r10d
cmp r10d, 0x1e
jg 0x140023401
test byte [rcx + r13 + 1], 2
je 0x1400233e9
add ecx, 0xffffffd0
jmp 0x1400233ef
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x140023404
inc r9d
test edi, edi
je 0x14002340b
dec r9d
inc rdx
jmp 0x1400233a0
mov r13, qword [rsp + 0x58]
lea eax, [r14 + r10]
test eax, eax
je 0x1400234b9
mov qword [r13], rdx
lea r9d, [r9*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x14002349f
movzx eax, byte [rdx + 1]
inc rdx
cmp al, 0x2d
jne 0x140023447
lea rdx, [r11 + 2]
jmp 0x140023451
cmp al, 0x2b
jne 0x14002344f
lea rdx, [r11 + 2]
mov ebp, esi
movzx r8d, byte [rdx]
lea r11, [0x140143190]
test byte [r8 + r11 + 1], 2
je 0x1400234b9
nop dword [rax]
nop dword [rax + rax]
movsx eax, r8b
lea esi, [rsi + rsi*4]
inc rdx
lea esi, [rsi - 0x18]
lea esi, [rax + rsi*2]
movzx eax, byte [rdx]
movzx r8d, al
test byte [rax + r11 + 1], 2
jne 0x140023470
mov eax, esi
mov qword [r13], rdx
neg eax
test ebp, ebp
cmove eax, esi
add r9d, eax
test r12d, r12d
je 0x1400234ab
xorps xmm1, xmmword [0x140156f70]
mov edx, r9d
movaps xmm0, xmm1
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
jmp 0x1400234bc
xorps xmm0, xmm0
mov r12, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140023650
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0xf0
mov r14, rdx
mov rbx, rcx
lea rdx, [rsp + 0x120]
call fcn.1400234e0
test rax, rax
je 0x14002369c
mov r8, qword [rsp + 0x120]
mov ecx, reloc.WS2_32.dll_send
sub rax, rbx
mov qword [r14], r8
mov dword [r14 + 8], ecx
inc rax
jmp 0x14002382d
lea rdx, str..xXnN
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1400236d7
movzx edi, byte [rax]
or edi, 0x20
cmp edi, 0x6e
je 0x14002382b
cmp edi, 0x78
jne 0x1400236d9
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.1400232e0
jmp 0x1400236ea
xor edi, edi
lea rdx, [rsp + 0x120]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
mov rcx, qword [rsp + 0x120]
lea rbp, [0x140143190]
cmp rcx, rbx
jne 0x140023702
xor eax, eax
jmp 0x140023730
movzx edx, byte [rcx]
test byte [rdx + rbp + 1], 8
je 0x140023728
nop dword [rax]
inc rcx
mov qword [rsp + 0x120], rcx
movzx eax, byte [rcx]
test byte [rax + rbp + 1], 8
jne 0x140023710
movzx edx, al
xor eax, eax
test dl, dl
cmove rax, rcx
test rax, rax
jne 0x140023815
mov edx, 0x2e
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rsi, rax
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140023751
cmp rcx, 0xc8
ja 0x14002382b
test rsi, rsi
je 0x14002382b
lea rdx, [rsp + 0x20]
mov rcx, rbx
sub rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140023780
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
sub rsi, rbx
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x20]
mov rax, qword [rax]
movzx eax, byte [rax]
mov byte [rsp + rsi + 0x20], al
cmp edi, 0x78
jne 0x1400237ba
call fcn.1400232e0
jmp 0x1400237c0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
mov rcx, qword [rsp + 0x120]
lea rax, [rsp + 0x20]
cmp rcx, rax
jne 0x1400237d6
xor eax, eax
jmp 0x140023810
movzx edx, byte [rcx]
test byte [rdx + rbp + 1], 8
je 0x1400237f8
inc rcx
mov qword [rsp + 0x120], rcx
movzx eax, byte [rcx]
test byte [rax + rbp + 1], 8
jne 0x1400237e0
movzx edx, al
xor eax, eax
test dl, dl
cmove rax, rcx
test rax, rax
je 0x14002382b
lea rcx, [rsp + 0x20]
sub rax, rcx
add rax, rbx
test rax, rax
je 0x14002382b
mov ecx, 3
movsd qword [r14], xmm0
sub rax, rbx
mov dword [r14 + 8], ecx
inc rax
jmp 0x14002382d
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400244d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
cmp r8, 0x28
ja 0x1400244f5
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140024340
movabs rax, 0x7fffffffffffffe7
cmp rdi, rax
jae 0x140024536
mov rdx, rdi
mov qword [rsp + 0x30], rbx
call fcn.1400242d0
mov r8, rdi
mov rdx, rsi
mov rbx, rax
lea rcx, [rax + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140025720
int3
Function at 0x140039620
Capabilities:
Read file on windows

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, 0x2040
call fcn.1400abe60
sub rsp, rax
mov r9, rcx
mov qword [rsp + 0x38], rcx
xor ecx, ecx
lea rdi, [rsp + 0x40]
mov r10d, 0x2000
mov qword [rsp + 0x30], rcx
mov r8d, ecx
mov qword [rsp + 0x20], rdi
mov r11d, ecx
mov qword [rsp + 0x28], r10
mov r14, rdx
mov rax, r10
mov rdx, rcx
sub rax, r8
mov rbp, rcx
mov rsi, rcx
mov rbx, rcx
cmp rax, 0x2000
jae 0x140039714
lea rax, [r10 + r10]
mov rcx, rax
sub rcx, rbx
lea rbx, [rbx + 0x2000]
cmp rcx, 0x2000
cmovae rbx, rax
cmovae rdx, rsi
cmp rbx, rdx
jb 0x140039782
mov rax, rbx
sub rax, r11
cmp rax, 0x2000
jb 0x140039782
lea rax, [rsp + 0x40]
mov rcx, r9
cmp rdi, rax
je 0x1400396e8
mov r8, rbx
mov edx, 0xffffffff
call fcn.1400069e0
mov rdi, rax
jmp 0x140039705
mov rdx, rbx
call fcn.140006ae0
mov r8, qword [rsp + 0x30]
mov rcx, rax
mov rdx, qword [rsp + 0x20]
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rbx
add rcx, rdi
mov r9, r14
mov edx, 1
mov r8d, 0x2000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov qword [rsp + 0x30], rcx
mov r11, rcx
mov r8, rcx
cmp rax, 0x2000
jne 0x14003975a
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
jmp 0x140039670
lea rcx, [rsp + 0x20]
call fcn.140006d80
lea r11, [rsp + 0x2040]
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
lea rdx, str.buffer_too_large
mov rcx, r9
call fcn.140005f60
int3

Function at 0x1400397a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2040
call fcn.1400abe60
sub rsp, rax
mov rbx, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 0x2000
xor esi, esi
mov qword [rsp + 0x20], rax
mov rdx, r8
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x20]
mov rdi, r8
call fcn.140006c10
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov rbx, rax
call fcn.140006d80
test rbx, rbx
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
setne sil
mov eax, esi
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400490b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2020
call fcn.1400abe60
sub rsp, rax
mov rbx, r9
mov r14, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140049135
mov r15d, 0x2000
nop dword [rax + rax]
cmp rdi, r15
lea rcx, [rsp + 0x20]
mov r8, rdi
mov r9, rbp
cmova r8, r15
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rsi, rax
test rax, rax
je 0x140049171
mov r9, r14
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rsi
jne 0x140049154
sub rdi, rsi
jne 0x1400490f0
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test rbx, rbx
je 0x1400491a7
mov dword [rbx], 6
mov eax, 0xffffffff
mov dword [rbx + 4], ecx
jmp 0x140049137
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14004919b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
test rbx, rbx
je 0x1400491a7
mov dword [rbx], 5
mov eax, 0xffffffff
mov dword [rbx + 4], ecx
jmp 0x140049137
test rbx, rbx
je 0x1400491a7
mov qword [rbx], socket
mov eax, 0xffffffff
jmp 0x140049137

Function at 0x1400491b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2030
call fcn.1400abe60
sub rsp, rax
mov rbp, rcx
mov r14, r8
mov rcx, rdx
mov rbx, rdx
call fcn.14004cf20
test eax, eax
jns 0x1400491f4
lea rcx, [rbp + 0x18]
mov rdx, rbx
call fcn.14004a880
mov eax, 0xffffffff
jmp 0x1400492e6
mov qword [rsp + 0x2040], rsi
mov qword [rsp + 0x2048], rdi
xor esi, esi
cmp dword [rbx + 0x1c], esi
je 0x1400492a8
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov r10, qword [rbx + 8]
test rcx, rcx
jne 0x14004923b
mov r9d, 1
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov rcx, rax
call r10
mov rdi, rax
jmp 0x14004925c
mov r9d, 0x2000
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x30]
mov rdx, rax
call r10
mov rdi, rax
test rax, rax
js 0x140049298
test rdi, rdi
jle 0x1400492b6
mov r9, r14
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rdi
je 0x140049204
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
lea rax, [rbp + 0x18]
test rax, rax
je 0x1400492c7
mov dword [rax], 6
mov dword [rax + 4], ecx
jmp 0x1400492c7
cmp rdi, 0xfffffffffffffffe
mov eax, esi
sete al
inc eax
mov dword [rbx + 0x18], eax
jmp 0x1400492af
mov dword [rbx + 0x18], 3
mov rdi, 0xffffffffffffffff
lea rcx, [rbp + 0x18]
test rdi, rdi
jns 0x1400492cc
mov rdx, rbx
call fcn.14004a880
mov esi, 0xffffffff
mov rcx, rbx
call fcn.14004a940
mov rdi, qword [rsp + 0x2048]
mov eax, esi
mov rsi, qword [rsp + 0x2040]
lea r11, [rsp + 0x2030]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret