joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000292d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400ba43c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140004afc
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x140031370
push rdi
mov eax, 0x2cb0
call fcn.14000108c
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2cc8], rbx
mov qword [rsp + 0x2cd0], rsi
mov rax, qword [0x1400fc300]
xor rax, rsp
mov qword [rsp + 0x2ca0], rax
mov rdi, rcx
mov dword [rsp + 0x50], 0x2c00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1400314fb
lea rbx, [rsp + 0x80]
xor esi, esi
nop dword [rax]
movzx eax, byte [rbx + 0x19d]
movzx ecx, byte [rbx + 0x19c]
movzx edx, byte [rbx + 0x19b]
movzx r8d, byte [rbx + 0x19a]
movzx r10d, byte [rbx + 0x199]
movzx r9d, byte [rbx + 0x198]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
lea r8, str._2.2X:_2.2X:_2.2X:_2.2X:_2.2X:_2.2X
mov edx, 0x14
lea rcx, [rsp + 0x2c80]
call fcn.140007c16
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
lea rax, [rsp + 0x2c80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140031460
lea rdx, [rsp + 0x2c80]
lea rcx, [rsp + 0x60]
call fcn.140005c22
nop
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x1400314a9
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x60], 0
add qword [rdi + 8], 0x20
jmp 0x1400314bb
lea r8, [rsp + 0x60]
mov rcx, rdi
call fcn.1400082bf
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400314ef
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400314ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031520
call fcn.140002496
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400313e0
mov rcx, qword [rsp + 0x2ca0]
xor rcx, rsp
call fcn.1400031f7
lea r11, [rsp + 0x2cb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005fba
Capabilities:
Write file on windows

Disassembly:
jmp 0x140094b70
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400fc300]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140094c1c
cmp byte [rcx + 0x71], 0
je 0x140094c1c
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140094bdd
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140094be1
sub eax, 1
je 0x140094be5
sub eax, 2
je 0x140094c1c
xor al, al
jmp 0x140094c1e
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140094c13
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140094bdd
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140094c1e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031f7
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140006ab4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1400b99a4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400b9a32
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400b9a32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b9a32
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400b9a19
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400b9a13
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400b9a1b
add rdx, 0x28
jmp 0x1400b99f8
xor edx, edx
test rdx, rdx
jne 0x1400b9a24
xor al, al
jmp 0x1400b9a38
cmp dword [rdx + 0x24], 0
jge 0x1400b9a2e
xor al, al
jmp 0x1400b9a38
mov al, 1
jmp 0x1400b9a38
xor al, al
jmp 0x1400b9a38
add rsp, 0x18
ret
Function at 0x1400075ef
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140019b90
push rbp
push rdi
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
jne 0x140019bbe
lea rax, [rdi - 1]
add rsp, 0x78
pop rdi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov eax, 8
movsxd rbx, dword [rsp + 0x40]
mov rbp, 0xffffffffffffffff
mul rbx
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r14
cmovo rax, rbp
mov dword [rsp + 0x44], ebx
mov rcx, rax
call fcn.1400040a7
mov r13, rbx
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov r14, rax
test r13, r13
jle 0x140019cbc
mov qword [rsp + 0x98], rsi
sub rax, rdi
mov qword [rsp + 0xa0], r12
mov r12, r13
mov r13, rax
mov qword [rsp + 0x60], r15
nop dword [rax + rax]
mov r8, qword [rdi]
mov r9d, ebp
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
test eax, eax
jle 0x140019c91
mov rcx, r15
call fcn.1400040a7
mov r8, qword [rdi]
mov r9d, ebp
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140019c94
mov rsi, rbx
mov qword [rdi + r13], rsi
add rdi, 8
sub r12, 1
jne 0x140019c30
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x44]
mov rdx, r14
call fcn.1400061fe
mov edi, eax
test r13, r13
jle 0x140019ce1
nop
mov rcx, qword [r14 + rbx*8]
call fcn.140006faf
inc rbx
cmp rbx, r13
jl 0x140019cd0
mov rcx, r14
call fcn.140006faf
mov r14, qword [rsp + 0x68]
mov eax, edi
mov r13, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rbp
ret
Function at 0x140008265
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400bacd4
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400bad1f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400bad1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400bad1f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400bad1f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400bad1f
cmp dword [rcx + 0xf8], 0
je 0x1400bad1f
mov al, 1
jmp 0x1400bad21
xor al, al
add rsp, 0x28
ret
Function at 0x140019b90
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140019b90
push rbp
push rdi
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
jne 0x140019bbe
lea rax, [rdi - 1]
add rsp, 0x78
pop rdi
pop rbp
ret
mov qword [rsp + 0x90], rbx
mov eax, 8
movsxd rbx, dword [rsp + 0x40]
mov rbp, 0xffffffffffffffff
mul rbx
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], r14
cmovo rax, rbp
mov dword [rsp + 0x44], ebx
mov rcx, rax
call fcn.1400040a7
mov r13, rbx
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov r14, rax
test r13, r13
jle 0x140019cbc
mov qword [rsp + 0x98], rsi
sub rax, rdi
mov qword [rsp + 0xa0], r12
mov r12, r13
mov r13, rax
mov qword [rsp + 0x60], r15
nop dword [rax + rax]
mov r8, qword [rdi]
mov r9d, ebp
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r15, eax
test eax, eax
jle 0x140019c91
mov rcx, r15
call fcn.1400040a7
mov r8, qword [rdi]
mov r9d, ebp
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r15d
mov rsi, rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140019c94
mov rsi, rbx
mov qword [rdi + r13], rsi
add rdi, 8
sub r12, 1
jne 0x140019c30
mov r13, qword [rsp + 0x50]
mov r15, qword [rsp + 0x60]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov ecx, dword [rsp + 0x44]
mov rdx, r14
call fcn.1400061fe
mov edi, eax
test r13, r13
jle 0x140019ce1
nop
mov rcx, qword [r14 + rbx*8]
call fcn.140006faf
inc rbx
cmp rbx, r13
jl 0x140019cd0
mov rcx, r14
call fcn.140006faf
mov r14, qword [rsp + 0x68]
mov eax, edi
mov r13, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop rdi
pop rbp
ret
Function at 0x140031370
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x140031370
push rdi
mov eax, 0x2cb0
call fcn.14000108c
sub rsp, rax
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2cc8], rbx
mov qword [rsp + 0x2cd0], rsi
mov rax, qword [0x1400fc300]
xor rax, rsp
mov qword [rsp + 0x2ca0], rax
mov rdi, rcx
mov dword [rsp + 0x50], 0x2c00
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x80]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1400314fb
lea rbx, [rsp + 0x80]
xor esi, esi
nop dword [rax]
movzx eax, byte [rbx + 0x19d]
movzx ecx, byte [rbx + 0x19c]
movzx edx, byte [rbx + 0x19b]
movzx r8d, byte [rbx + 0x19a]
movzx r10d, byte [rbx + 0x199]
movzx r9d, byte [rbx + 0x198]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
lea r8, str._2.2X:_2.2X:_2.2X:_2.2X:_2.2X:_2.2X
mov edx, 0x14
lea rcx, [rsp + 0x2c80]
call fcn.140007c16
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
lea rax, [rsp + 0x2c80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140031460
lea rdx, [rsp + 0x2c80]
lea rcx, [rsp + 0x60]
call fcn.140005c22
nop
mov rdx, qword [rdi + 8]
cmp qword [rdi + 0x10], rdx
je 0x1400314a9
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm1
mov edx, 0xf
mov byte [rsp + 0x60], 0
add qword [rdi + 8], 0x20
jmp 0x1400314bb
lea r8, [rsp + 0x60]
mov rcx, rdi
call fcn.1400082bf
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400314ef
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400314ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031520
call fcn.140002496
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400313e0
mov rcx, qword [rsp + 0x2ca0]
xor rcx, rsp
call fcn.1400031f7
lea r11, [rsp + 0x2cb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140094b70
Capabilities:
Write file on windows

Disassembly:
jmp 0x140094b70
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400fc300]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140094c1c
cmp byte [rcx + 0x71], 0
je 0x140094c1c
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140094bdd
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140094be1
sub eax, 1
je 0x140094be5
sub eax, 2
je 0x140094c1c
xor al, al
jmp 0x140094c1e
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140094c13
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140094bdd
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140094c1e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031f7
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14009a460
Capabilities:
Write file on windows

Disassembly:
jmp 0x14009a460
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400fc300]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14009a48d
xor eax, eax
jmp 0x14009a5e2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14009a4b8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14009a4b8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14009a5e2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14009a5d5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14009a4fb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14009a526
mov rdx, qword [rbx + 0x80]
movzx 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 0x14009a5da
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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
js 0x14009a5d5
cmp eax, 1
jle 0x14009a595
cmp eax, 3
jne 0x14009a5d5
movzx ecx, byte [rsp + 0x40]
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 0x14009a5da
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14009a5c3
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 0x14009a5d5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14009a5da
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400031f7
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14009da90
Capabilities:
Read file on windows

Disassembly:
jmp 0x14009da90
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14009dac7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov rdx, qword [rax]
test rdx, rdx
je 0x14009dae8
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14009daea
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14009db50
test ecx, ecx
jle 0x14009db1e
cmp rbx, rbp
mov rcx, r14
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x38]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14009db50
cmp qword [rdi + 0x80], 0
je 0x14009db50
mov rcx, rdi
call fcn.140009647
mov r9, qword [rdi + 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
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14009dbb0
Capabilities:
Write file on windows

Disassembly:
jmp 0x14009dbb0
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14009dbe7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14009dc08
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14009dc0a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14009dc63
test ecx, ecx
jle 0x14009dc3e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14009dc63
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14009dc63
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400ad6e0
Capabilities:
Terminate process

Disassembly:
jmp 0x1400ad6e0
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003c56
mov rcx, rax
lea rdx, [0x14000363e]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400b20b0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400b20b0
push rbx
sub rsp, 0x20
lea rcx, str.HOME
mov rbx, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
inc r8
cmp byte [rax + r8], 0
jne 0x1400b20e0
mov rdx, rax
mov rcx, rbx
call fcn.140005c22
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400b8080
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400b8080
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x18], 0x10
mov rdi, r9
mov rbx, rdx
jb 0x1400b809a
mov r8, qword [r8]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400b80e5
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
inc r8
cmp byte [rax + r8], 0
jne 0x1400b80c2
mov rdx, rax
mov rcx, rbx
call fcn.140005c22
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rcx, rbx
call fcn.140008aa3
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180003160
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800031bd
lea rbx, [0x1800558f0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800031a4
cmp r10, 2
jb 0x1800031a4
cmp byte [r9], r8b
jne 0x1800031a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180003180
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800031ff
lea rbx, [0x1800558f0]
cmp r8b, 0x23
jne 0x1800031e3
cmp byte [r9], r8b
jne 0x1800031e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1800031d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180003340
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000335a
mov qword [r8], 0
lea rdx, [0x180055440]
call fcn.180003210
mov rbx, rax
test rax, rax
jne 0x18000337a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180003453
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003453
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003453
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180003453
cmp rdi, 0xffffffffffffffff
je 0x180003453
mov rax, qword [0x180064a50]
test rax, rax
je 0x1800033f0
inc dword [rax + 0xf0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180003453
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]
mov rcx, rbx
cmp rax, rdi
je 0x180003440
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180064a50]
test rax, rax
je 0x180003435
dec dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000345c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000344e
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000345e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret