joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007fde0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140084040]
xor rax, rsp
mov qword [rbp], rax
movdqa xmm0, xmmword [0x140082440]
xor ebx, ebx
movdqa xmm1, xmmword [0x140082460]
mov eax, ebx
movdqu xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x58], 0xeff6918a
movdqu xmmword [rsp + 0x48], xmm1
mov dword [rsp + 0x5c], 0xf6f6edf1
mov dword [rsp + 0x60], 0xfbe6f3e8
mov word [rsp + 0x64], pe_nt_image_headers64
nop
lea ecx, [rax - 0x62]
xor byte [rsp + rax + 0x38], cl
inc rax
cmp rax, 0x2c
jb 0x14007fe40
xorps xmm0, xmm0
mov byte [rsp + 0x65], bl
mov ecx, 0x30
mov qword [rsp + 0x78], rbx
movups xmmword [rsp + 0x68], xmm0
mov qword [rbp - 0x80], 0xf
call fcn.140080750
movups xmm0, xmmword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0x2c
mov qword [rbp - 0x80], 0x2f
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rsp + 0x58]
movsd qword [rax + 0x20], xmm0
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x28], ecx
lea rcx, [rsp + 0x68]
mov byte [rax + 0x2c], bl
call fcn.14007fba0
mov r8, qword [0x140084750]
lea r9, [rsp + 0x30]
xorps xmm1, xmm1
mov dword [rbp - 0x78], ebx
xor eax, eax
mov word [rsp + 0x30], bx
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x10], rax
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
call fcn.14007f1c0
test eax, eax
jne 0x14007ff42
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140080730
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rbp
ret

Function at 0x14008114c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp [rbx + 0x56]
jmp [rbx + 0x59]
test bh, bh
test byte [rcx - 0x7c], bh
dec dword [rsi + rax*4 - 0x7973006c]
xchg esp, eax
dec dword [rsi + rax*4 - 0x7973006c]
xchg esp, eax
inc dword [rbx - 0x7c006b81]
xchg esp, eax
invalid
invalid
jg 0x14003f60f
xchg esp, eax
inc dword [rbx - 0x7c006b81]
jg 0x14003f613
inc dword [rbx - 0x73006b81]
mov ah, byte [rbp - 0x5a717301]
dec dword [rdx + rcx*4 - 0x7173005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi + rcx*4 - 0x7173005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi + rcx*4 - 0x6973005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi + rdx*4 - 0x6973005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi + rdx*4 - 0x6973005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi - 0x6b00556b]
xchg esp, eax
movabs byte [0xa294ffb5a294ffb5], al
mov ch, 0xff
movsb byte [rdi], byte [rsi]
stosd dword [rdi], eax
invalid
invalid
lodsd eax, dword [rsi]
invalid
movsd dword [rdi], dword [rsi]
dec dword [rsi + rdx*4 - 0x6973005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi + rdx*4 - 0x6973005b]
movsd dword [rdi], dword [rsi]
dec dword [rsi - 0x6b00556b]
xchg esp, eax
xchg esp, eax
movabs byte [0xa294ffb5a294ffb5], al
mov ch, 0xff
movsb byte [rdi], byte [rsi]
stosd dword [rdi], eax
mov ebx, 0xc6b6adff
invalid
jmp [rbp - 0x5200394a]
invalid
lodsb al, byte [rsi]
mov dh, 0x96
pushfq
lodsb al, byte [rsi]
add byte [rsi + 0x6500ac9c], dl
lodsb al, byte [rsi]
add byte [rbp + 0x51], ah
lodsb al, byte [rsi]
add byte [rbp + 0x51], ah
add byte [rbp + 0x51], r12b
insd dword [rdi], dx
pop rdx
mov sil, 0x70
pop rcx
inc dword [r13 + r12*2 + 0x6584ff52]
test byte [rbp + 0x52], ah
test byte [rbp + 0x52], ah
jmp [rsi + 0x4f]
cmp al, 0xff
cmp al, 0xff
cmp al, 0xff
cmp al, 0xff
invalid
Function at 0x1800039bc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1803e3008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rcx
mov edi, 0x7f
lea rcx, str.Fatal_Python_error:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or rbx, 0xffffffffffffffff
xor ebp, ebp
inc rbx
cmp byte [rsi + rbx], bpl
jne 0x180003a00
test rbx, rbx
je 0x180003a58
cmp rdi, rbx
mov rax, rbx
mov rcx, rbp
cmovbe rax, rdi
mov rdi, rax
test rax, rax
je 0x180003a34
movsx eax, byte [rcx + rsi]
mov word [rsp + rcx*2 + 0x20], ax
inc rcx
cmp rcx, rdi
jb 0x180003a23
add rcx, rcx
cmp rcx, 0x100
jae 0x180003a8e
mov word [rsp + rcx + 0x20], bp
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsi, rdi
sub rbx, rdi
jne 0x180003a0e
lea rcx, [0x18023cda4]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180181080
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1801811a8
int3

Function at 0x180003f10
Capabilities:
Read 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
sub rsp, 0x30
mov rsi, rcx
mov ebp, r8d
lea rcx, str..pyc
mov r14, rdx
call sym.python310.dll_PyUnicode_FromString
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x180003ff4
lea r15d, [rbx + 1]
movabs r9, 0x7fffffffffffffff
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rdx, rax
mov rcx, r14
call sym.python310.dll_PyUnicode_Tailmatch
sub qword [rdi], r15
mov r14, rax
jne 0x180003f7e
mov rdx, qword [rdi + 8]
mov rcx, rdi
call qword [rdx + 0x30]
test r14, r14
jne 0x180003ff9
test ebp, ebp
jne 0x180003fa2
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call sym.python310.dll_PyImport_GetMagicNumber
mov rcx, rsi
movzx edi, ax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
jne 0x180003ff0
mov r9, rsi
lea r8d, [rax + 2]
mov rdx, r15
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 2
jne 0x180003fe7
movzx edx, byte [rsp + 0x69]
movzx ecx, byte [rsp + 0x68]
shl edx, 8
or edx, ecx
cmp edx, edi
cmove ebx, r15d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov eax, ebx
jmp 0x180003f89
or eax, 0xffffffff
jmp 0x180003f89
mov eax, r15d
jmp 0x180003f89

Function at 0x1800051cf
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r10, qword [rax + 0x10]
lea r11, [rax + 0x10]
mov ebx, ecx
cmp r11, r10
je 0x18000520b
mov rcx, qword [r10 + 0x60]
call fcn.1800051a2
lea eax, [rax + rax*2]
cmp eax, ebx
jne 0x180005206
mov rax, qword [r10 + 0x30]
jmp 0x18000520d
mov r10, qword [r10]
jmp 0x1800051eb
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140078810
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140118a10]
mov ecx, dword [0x14010f734]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400788b2
lea rcx, [0x140118a08]
xor edx, edx
call fcn.14006d450
mov eax, dword [0x140118a20]
mov ecx, dword [0x14010f734]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140078876
lea rcx, [0x140118a18]
xor edx, edx
add rsp, 0x28
jmp fcn.14006d450
lea rcx, [0x140118a20]
call fcn.140078a90
cmp dword [0x140118a20], 0xffffffff
jne 0x140078864
mov qword [0x140118a18], 0
lea rcx, [0x140118a18]
xor edx, edx
call fcn.140042ce0
lea rcx, [0x140118a20]
call fcn.140078b28
jmp 0x140078864
lea rcx, [0x140118a10]
call fcn.140078a90
cmp dword [0x140118a10], 0xffffffff
jne 0x140078835
mov qword [0x140118a08], 0
lea rcx, [0x140118a08]
xor edx, edx
call fcn.140042ce0
lea rcx, [0x140118a10]
call fcn.140078b28
jmp 0x140078835

Function at 0x140086abc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140086bec
Function at 0x180005470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp edx, 1
jne 0x1800054fd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
add eax, 0xffffff80
test eax, 0xffffff7f
je 0x1800054ac
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rax, qword [0x1801e1dc0]
mov rcx, rdi
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdx, [0x180002200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
xor eax, eax
lea r8, [0x180003460]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
test edx, edx
jne 0x18000552d
call fcn.18006c070
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
test rbx, rbx
je 0x18000552d
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x180006c20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov r10, r8
mov rbx, qword [r8 + 0x10]
mov rdi, rdx
mov r11, r8
jb 0x180006c41
mov r11, qword [r8]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rbx, rbx
je 0x180006c74
movabs rdx, 0x100000001b3
nop dword [rax]
movzx eax, byte [r9 + r11]
inc r9
xor r8, rax
imul r8, rdx
cmp r9, rbx
jb 0x180006c60
mov rdx, r10
call fcn.1800080c0
mov rbx, qword [rsp + 0x30]
mov qword [rdi], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x18000c9a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
mov r15d, edx
shr r15d, 0x18
mov ebx, edx
shr ebx, 0x18
mov r12d, edx
shr r12d, 0x10
mov ebp, edx
shr ebp, 0x10
mov r13d, edx
shr r13d, 8
mov r14d, edx
shr r14d, 8
mov byte [rsp + 0x20], sil
test r8, r8
jne 0x18000ca54
mov rbx, qword [rcx + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
lea rbp, vtable.el::base::threading::internal::NoScopedLock_class_el::base::threading::internal::NoMutex_.0
mov qword [rsp + 0x28], rbp
lea r8, [rbx + 0x58]
mov edx, esi
call fcn.180018f60
nop
test al, al
je 0x18000cb31
mov rbx, qword [rdi + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov qword [rsp + 0x28], rbp
lea r8, [rbx + 0x1d8]
mov edx, esi
call fcn.180017a20
nop
mov r8, qword [rax]
mov byte [rsp + 0x20], sil
movzx r14d, r13b
movzx ebp, r12b
movzx ebx, r15b
test r8, r8
je 0x18000cb31
lea rcx, [r8 + 0x10]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
movzx edx, byte [rsp + 0x20]
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, r14b
xor rdx, rax
imul rdx, rcx
movzx eax, bpl
xor rdx, rax
imul rdx, rcx
movzx eax, bl
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rdi + 0x1e0]
and rcx, rdx
shl rcx, 4
add rcx, qword [rdi + 0x1c8]
mov rax, qword [rcx + 8]
mov rdx, qword [rdi + 0x1b8]
cmp rax, rdx
je 0x18000cae0
mov rcx, qword [rcx]
cmp esi, dword [rax + 0x10]
je 0x18000cae2
nop dword [rax + rax]
cmp rax, rcx
je 0x18000cae0
mov rax, qword [rax + 8]
cmp esi, dword [rax + 0x10]
jne 0x18000cad0
jmp 0x18000cae2
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x18000caf5
mov dword [rax + 0x14], 0
mov rbx, qword [0x1801e13e8]
test rbx, rbx
je 0x18000cb31
test rdi, rdi
je 0x18000cb31
mov rdi, qword [rdi + 0x38]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
lea rax, vtable.el::base::threading::internal::NoScopedLock_class_el::base::threading::internal::NoMutex_.0
mov qword [rsp + 0x28], rax
lea r8, [rbx + 0xa8]
mov edx, esi
mov rcx, rdi
call fcn.180011200
nop
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000cc10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1801dd028]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
jne 0x18000cc41
xor al, al
jmp 0x18000cdf3
cmp qword [rcx + 0x18], 0x10
jb 0x18000cc4b
mov rcx, qword [rcx]
test rcx, rcx
je 0x18000cc69
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18000cc69
shr eax, 4
test al, 1
je 0x18000cc69
mov al, 1
jmp 0x18000cdf3
mov edi, 0xffffffff
cmp qword [rbx + 0x18], 0x10
jb 0x18000cc78
mov rbx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], al
mov qword [rbp - 0x38], rax
lea r8, [rbp - 0x38]
lea rdx, [0x18012d5e0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov rcx, rax
test rax, rax
je 0x18000cdac
nop dword [rax]
nop dword [rax + rax]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x18000ccc7
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov rax, r8
sub rax, rdx
cmp rbx, rax
ja 0x18000cd0f
lea rax, [rbx + rdx]
mov qword [rbp - 0x20], rax
lea rdi, [rbp - 0x30]
cmp r8, 0x10
cmovae rdi, qword [rbp - 0x30]
add rdi, rdx
mov r8, rbx
mov rdx, rcx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x18000cd23
mov qword [rsp + 0x20], rbx
mov r9, rcx
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1800185a0
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov rax, r8
sub rax, rdx
lea rcx, [rbp - 0x30]
cmp rax, 1
jb 0x18000cd5d
lea rax, [rdx + 1]
mov qword [rbp - 0x20], rax
cmp r8, 0x10
cmovae rcx, qword [rbp - 0x30]
movzx eax, word [0x18012d5e0]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x18000cd77
mov qword [rsp + 0x20], 1
lea r9, [0x18012d5e0]
mov edx, 1
call fcn.1800185a0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov edi, eax
lea r8, [rbp - 0x38]
lea rdx, [0x18012d5e0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
mov rcx, rax
test rax, rax
jne 0x18000ccc0
cmp edi, 0xffffffff
setne bl
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18000cdf0
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000cdeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000cdeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180083820
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180083800
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000d490
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x1801e1dd0]
xor esi, esi
lea rcx, str.USERNAME
mov rdx, rdi
lea r8d, [rsi + 0x32]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18000d4ef
cmp byte [0x1801e1dd0], sil
je 0x18000d4ef
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
inc r8
cmp byte [rdi + r8], sil
jne 0x18000d4e1
mov rdx, rdi
jmp 0x18000d50a
xorps xmm0, xmm0
lea rdx, str.unknown_user
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov r8d, 0xc
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.1800073a0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000d530
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rdi, [0x1801e1dd0]
xor esi, esi
lea rcx, str.COMPUTERNAME
mov rdx, rdi
lea r8d, [rsi + 0x32]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18000d58f
cmp byte [0x1801e1dd0], sil
je 0x18000d58f
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
inc r8
cmp byte [rdi + r8], sil
jne 0x18000d581
mov rdx, rdi
jmp 0x18000d5aa
xorps xmm0, xmm0
lea rdx, str.unknown_host
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov r8d, 0xc
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.1800073a0
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800149d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1800149f8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180014a1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180014a20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180014a79
test ecx, ecx
jle 0x180014a59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180014a79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180014a79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180014aa0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180014ac2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180014ad8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180014af4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180014af6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180014b32
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180014bce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180014b6d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180014bae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180014bce
cmp rbx, rax
ja 0x180014b80
test rbx, rbx
je 0x180014bce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180015000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801dd028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18001502d
xor eax, eax
jmp 0x180015199
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180015067
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180015067
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180015199
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18001518c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800150aa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800150d5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180015191
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180015144
sub eax, 1
je 0x180015144
cmp eax, 2
jne 0x18001518c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180015191
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180015172
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18001518c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180015191
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180083800
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret