joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009c160
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, qword [rdx + 0x18]
mov rax, qword [rdx + 0x38]
add rax, 0xa
add rsi, rax
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140095ea0
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14009c1f0
lea rax, [rdi + 0x28]
cmp qword [rax + 0x18], 8
jb 0x14009c1c1
mov rax, qword [rax]
lea r9, [rdi + 8]
cmp qword [r9 + 0x18], 0x10
jb 0x14009c1cf
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
lea r8, str._S_:__s_r_n
mov rdx, rsi
mov rcx, rbx
call fcn.140071a30
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
nop
test rbx, rbx
je 0x14009c1fd
mov rcx, rbx
call fcn.140095e90
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14009c210
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov eax, dword [rdx + 0x48]
mov rbx, rdx
mov rdi, rcx
cmp eax, dword [rcx + 8]
jl 0x14009c2ac
cmp eax, 5
jg 0x14009c2ac
mov rcx, rdx
call fcn.14009a000
cmp qword [rax + 0x18], 8
jb 0x14009c243
mov rax, qword [rax]
mov r9d, dword [rbx + 0x48]
mov r10d, 1
mov qword [rsp + 0x60], rax
cmp r9d, 2
jl 0x14009c277
cmp r9d, 3
jle 0x14009c277
cmp r9d, 4
je 0x14009c270
cmp r9d, 5
jne 0x14009c277
movzx eax, r10w
jmp 0x14009c27c
mov eax, 2
jmp 0x14009c27c
mov eax, 4
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r10w
mov qword [rsp + 0x20], rdx
movzx edx, ax
call qword [sym.imp.api_ms_win_eventlog_legacy_l1_1_0.dll_ReportEventW]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14009c930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14009c9e8
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x200
call fcn.1400a57c0
lea rax, [rsp + 0x258]
mov dword [rsp + 0x258], 0x100
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x240]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x240], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c9e8
cmp dword [rsp + 0x240], 1
jne 0x14009c9e8
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14009c9c4
test r8, r8
je 0x14009c9e8
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140013240
mov eax, 1
jmp 0x14009c9ea
xor eax, eax
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14009de70
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rdi, r8
mov rbx, rdx
xor r14d, r14d
test r8, r8
jne 0x14009deae
mov eax, 0x80004003
jmp 0x14009dfec
test rbx, rbx
je 0x14009dfe4
cmp r14w, word [rdx]
je 0x14009dfe4
mov dword [r8], r14d
mov qword [rbp + 0x220], r14
mov qword [rsp + 0x58], r14
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_07a4580a2d41a7635afdf5f0258b0c87___void___.0
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x228], rax
mov qword [rbp - 0x58], r14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14009df4b
lea rax, [rsp + 0x20]
cmp rcx, rax
jne 0x14009df42
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x58], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14009df4b
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14009df46
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x58], r14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14009df6b
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x58], r14
xor edx, edx
lea ecx, [rdx + 2]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot
mov rsi, rax
mov qword [rbp + 0x220], rax
cmp rax, 0xffffffffffffffff
je 0x14009dfd5
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x4c]
call fcn.1400a57c0
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, rsi
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW
test eax, eax
je 0x14009dfd5
mov rdx, rbx
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x14009dfd0
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp + 0x220]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW
jmp 0x14009dfa9
mov ecx, dword [rbp - 0x48]
mov dword [rdi], ecx
lea rcx, [rsp + 0x70]
call fcn.14009dda0
mov eax, r14d
jmp 0x14009dfec
mov dword [r8], r14d
mov eax, 0x80070057
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14009e010
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
test rdx, rdx
je 0x14009e199
xor ebx, ebx
mov esi, ebx
cmp bx, word [rdx]
je 0x14009e16a
mov qword [rbp + 0x218], rbx
mov qword [rsp + 0x58], rbx
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_07a4580a2d41a7635afdf5f0258b0c87___void___.0
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x220], rax
mov qword [rbp - 0x58], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14009e0d6
lea rax, [rsp + 0x20]
cmp rcx, rax
jne 0x14009e0cd
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x58], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14009e0d6
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x14009e0d1
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14009e0f6
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x58], rbx
xor edx, edx
lea ecx, [rdx + 2]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot
mov r14, rax
mov qword [rbp + 0x218], rax
cmp rax, 0xffffffffffffffff
je 0x14009e15e
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x4c]
call fcn.1400a57c0
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, r14
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW
test eax, eax
je 0x14009e15e
mov rdx, rdi
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x14009e15b
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp + 0x218]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW
jmp 0x14009e134
mov esi, dword [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.14009dda0
jmp 0x14009e16f
mov ebx, 0x80070057
test ebx, ebx
jne 0x14009e195
test esi, esi
je 0x14009e195
mov r8d, esi
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
test rax, rax
je 0x14009e195
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov eax, ebx
jmp 0x14009e19e
mov eax, 0x80004005
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14009f200
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rbp, r8
mov r14d, edx
xor r15d, r15d
mov edi, r15d
call fcn.140014190
mov rcx, rax
lea r9, [0x1400e8328]
lea r8, str.HP::Shared::ChpqwmiexClient::GetRegImagePath
xor edx, edx
call fcn.14009cf00
mov ebx, r15d
mov qword [rsp + 0x30], rbx
call fcn.140014190
cmp byte [rax + 0x64], r15b
je 0x14009f296
lea ecx, [r15 + 0x28]
call fcn.140095e50
mov rbx, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14009f28e
call fcn.140014190
mov rdx, rax
lea r8, str.HP::Shared::ChpqwmiexClient::GetRegImagePath
mov rcx, rbx
call fcn.140098570
mov rbx, rax
jmp 0x14009f291
mov rbx, r15
mov qword [rsp + 0x30], rbx
test r14d, r14d
je 0x14009f3b0
test rbp, rbp
je 0x14009f3d5
mov rsi, r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0xa8], r15
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSet_serviceshpqcaslwmiex
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14009f393
mov dword [rsp + 0x48], r15d
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x98], r14d
mov dword [rsp + 0xa8], 2
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
je 0x14009f37c
mov edi, r15d
call fcn.140014190
mov rcx, rax
mov dword [rsp + 0x20], r14d
lea r9, str.Error_reading_ImagePath_value:_0x_08lx.
lea r8, str.HP::Shared::ChpqwmiexClient::GetRegImagePath
mov edx, 2
call fcn.14009cf00
jmp 0x14009f396
lea rdx, [0x1400ee804]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrTrimW]
mov edi, 1
jmp 0x14009f396
mov edi, r15d
test rsi, rsi
je 0x14009f3a9
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
jmp 0x14009f3f5
call fcn.140014190
mov rcx, rax
lea r9, str.Invalid_parameter:_ulBytes_is_zero.
lea r8, str.HP::Shared::ChpqwmiexClient::GetRegImagePath
mov edx, 2
call fcn.14009cf00
test rbp, rbp
jne 0x14009f3f5
call fcn.140014190
mov rcx, rax
lea r9, str.Invalid_parameter:_pszImagePath_is_nullptr.
lea r8, str.HP::Shared::ChpqwmiexClient::GetRegImagePath
mov edx, 2
call fcn.14009cf00
call fcn.140014190
mov rcx, rax
lea r9, [0x1400e8328]
lea r8, str.HP::Shared::ChpqwmiexClient::GetRegImagePath
mov edx, 1
call fcn.14009cf00
nop
test rbx, rbx
je 0x14009f430
mov rcx, rbx
call fcn.140099040
mov edx, 0x28
mov rcx, rbx
call fcn.140095e90
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a1b10
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
mov edx, dword [0x140138258]
mov rax, qword gs:[0x58]
mov ecx, 4
mov r8, qword [rax + rdx*8]
xor edi, edi
lea rbx, [0x140138870]
mov eax, dword [rcx + r8]
cmp dword [0x140138890], eax
jg 0x1400a1ca3
cmp qword [0x140138880], 0
jne 0x1400a1c65
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1400a57c0
mov r8d, 0x103
lea rdx, [rsp + 0x30]
lea rcx, str._ProgramFiles_x86__
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400a1c4e
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400a1bb0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140013240
mov rax, qword [0x140138880]
test rax, rax
je 0x1400a1c47
cmp word [rsp + rax*2 + 0x2e], 0x5c
je 0x1400a1bf1
mov r8d, 1
lea rdx, [0x1400eacc4]
mov rcx, rbx
call fcn.140023ab0
mov r8d, 2
lea rdx, [0x140106bb8]
mov rcx, rbx
call fcn.140023ab0
mov r8d, 1
lea rdx, [0x1400eacc4]
mov rcx, rbx
call fcn.140023ab0
mov r8d, 6
lea rdx, str.Shared
mov rcx, rbx
call fcn.140023ab0
mov r8d, 1
lea rdx, [0x1400eacc4]
mov rcx, rbx
call fcn.140023ab0
jmp 0x1400a1c65
mov edi, 0x80004005
jmp 0x1400a1c65
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jg 0x1400a1c5c
mov edi, eax
jmp 0x1400a1c65
movzx edi, ax
or edi, 0x80070000
cmp rsi, rbx
je 0x1400a1c8c
cmp qword [0x140138888], 8
cmovae rbx, qword [0x140138870]
mov r8, qword [0x140138880]
mov rdx, rbx
mov rcx, rsi
call fcn.140013240
mov eax, edi
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rcx, [0x140138890]
call fcn.140096290
cmp dword [0x140138890], 0xffffffff
jne 0x1400a1b60
mov qword [0x140138880], rdi
mov qword [0x140138888], 7
mov word [0x140138870], di
xor r8d, r8d
lea rdx, [0x1400e8328]
mov rcx, rbx
call fcn.140013240
lea rcx, [0x1400e5a70]
call fcn.1400960e0
nop
lea rcx, [0x140138890]
call fcn.140096230
jmp 0x1400a1b60
Function at 0x1400bbaa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400bbad7
call fcn.1400b95a0
mov dword [rax], SafeArrayCopy
call fcn.1400b1700
xor eax, eax
jmp 0x1400bbb65
mov rdx, r9
mov rcx, r8
call fcn.1400bba34
mov rbx, rax
test rax, rax
je 0x1400bbb62
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400bb960]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400bbb4f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1400b9514
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400bbb36
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400bbb45
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400c9634
jmp 0x1400bbb62
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400bbb5f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c20a0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400c1f0b
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400c1f0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c1f0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c1f0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c1f0b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c1f0b
cmp dword [rcx + 0xf8], 0
je 0x1400c1f0b
mov ecx, ebx
call fcn.1400c1fbc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400c1d98
nop
cmp dword [rbp + 0x20], 0
je 0x1400c1f59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c1f64
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400c1e9c

Function at 0x1400c3380
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400c33a0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1400b9514
or eax, 0xffffffff
jmp 0x1400c33a2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400c33a8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x1400c33c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1400b9514
or eax, 0xffffffff
jmp 0x1400c33ca
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400cd308
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140096680
sub rsp, rax
mov rax, qword [0x1401339d8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400ca8cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400cd357
mov rax, rbp
jmp 0x1400cd45f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x138f90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400ce5f0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x138f90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400cd45b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x1400cd45b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400ce5f0
test rax, rax
js 0x1400cd45b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400cd45b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400cd44d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400cd44d
cmp byte [rcx], 0xd
jne 0x1400cd433
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400cd442
cmp byte [rcx + 1], 0xa
jne 0x1400cd442
inc rcx
jmp 0x1400cd442
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x133e40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400cd415
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400cd45f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400964b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400cd77c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cd792
mov al, 1
jmp 0x1400cd7f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cd7a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cd7f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d38f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cd7f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
test eax, eax
je 0x1400cd7f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
je 0x1400cd7f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cd7f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400cd990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140138f90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400cd9e7
cmp word [rdx], r13w
jne 0x1400cd9e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400cd9ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400cdb11
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400cdb32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400cda25
mov rdx, r9
mov word [rbx], cx
jmp 0x1400cda4c
cmp r9, r8
jae 0x1400cda5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400cda06
jmp 0x1400cdb11
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x1400cdb06
cmp dword [rsp + 0x80], esi
je 0x1400cdb06
lea r8, [0x140138f90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400cdade
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400cdaae
mov word [rbx], r13w
jmp 0x1400cdb0e
mov ecx, SafeArrayGetDim
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400cdabb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400cdb0e
cmp word [rsp + 0x70], r13w
jne 0x1400cdaeb
cmp rbx, r14
je 0x1400cdaa8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ce5f8
cmp word [rsp + 0x70], r13w
je 0x1400cdb11
mov ecx, SafeArrayGetDim
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140138f90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400cdb0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400cdb11
Function at 0x1400d2d3c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d2dc3
mov rsi, rbx
cmp word [rax], bp
je 0x1400d2d82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d2d6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d2d68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400c9670
mov rdi, rax
test rax, rax
je 0x1400d2db0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a5110
mov rbp, rdi
xor ecx, ecx
call fcn.1400c9634
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d5e48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400c92d0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400d5ee9
cmp ebx, dword [rsp + 0x30]
je 0x1400d5ee2
test esi, esi
je 0x1400d5ee2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400d5ebd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400d5eca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400d5ea7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400d5ece
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400d5eeb
mov eax, 1
jmp 0x1400d5eeb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret