joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000235c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
mov r15, rcx
lea rdi, [rbp - 0x29]
xor eax, eax
xor ebx, ebx
and qword [r8], rbx
mov rsi, rdx
mov r12, r8
mov r8, rsi
lea edx, [rbx + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov ecx, edx
lea rdi, [rbp - 0x41]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x51]
lea ecx, [rbx + 0x10]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x14000250e
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.140014620
lea r15d, [rbx + 1]
test esi, esi
je 0x1400023ff
mov eax, 0xf62e6ce0
mov edx, esi
mov rcx, r14
xor byte [rcx], al
add rcx, r15
rol eax, 1
add edx, 0xffffffff
jne 0x1400023f3
and dword [rbp - 0x31], ebx
lea r9, [rbp - 0x51]
movsd xmm1, qword [rbp - 0x31]
lea r8, [rbp - 0x11]
movsd qword [rbp - 1], xmm1
lea rdx, [rbp + 0xf]
movsd xmm1, qword [rbp - 0x19]
mov rcx, r15
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], rsi
movups xmm0, xmmword [rbp - 0x41]
movsd qword [rbp + 0x1f], xmm1
movaps xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [rbp - 0x29]
movaps xmmword [rbp + 0xf], xmm0
call qword [sym.imp.msdelta.dll_ApplyDeltaB]
test eax, eax
je 0x1400024de
mov rdi, qword [rbp - 0x49]
mov rsi, qword [rbp - 0x51]
cmp byte [rbp + 0x7f], bl
je 0x14000248d
and dword [rbp + 0x6f], ebx
lea r9, [rbp + 0x77]
and dword [rbp + 0x77], ebx
lea r8, [rbp + 0x6f]
mov edx, edi
mov rcx, rsi
call fcn.14000ead4
test al, al
jne 0x140002499
mov r9d, dword [rbp + 0x77]
lea rdx, str.____Error_data_checksum_mismatch__Header_sum_0x_lx__calculated_sum_0x_lx_r_n
mov r8d, dword [rbp + 0x6f]
mov ecx, r15d
call fcn.14000f8a0
jmp 0x1400024d2
lea rcx, str.___Checksum_verification_skipped_r_n
call fcn.140002250
mov rax, qword gs:[0x30]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400024d2
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140014620
mov qword [r12], rdi
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.msdelta.dll_DeltaFree]
jmp 0x1400024f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_while_decompressing_resource
call fcn.14001080c
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xa0]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400037cc
Capabilities:
Disable driver code integrity
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x430
xor ebx, ebx
lea r14, str.g_CiEnabled
mov qword [rax + 0x10], rbx
lea rsi, str.ntoskrnl.exe
mov edx, 0x23f0
lea rax, str.g_CiOptions
cmp ecx, edx
cmovae r14, rax
lea rax, str.CI.dll
cmovae rsi, rax
call fcn.140011dac
test eax, eax
je 0x14000396c
mov edx, 0x104
mov word [rsp + 0x20], bx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000396c
lea rax, [rsp + 0x20]
cmp word [rsp + 0x20], bx
je 0x140003852
add rax, 2
cmp word [rax], bx
jne 0x140003849
lea rdx, [0x1400355dc]
mov ecx, 0x5c
sub rdx, rax
mov word [rax], cx
lea rax, [rax + 2]
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140003861
mov word [rax], bx
lea rax, [rsp + 0x20]
cmp word [rsp + 0x20], bx
je 0x140003889
add rax, 2
cmp word [rax], bx
jne 0x140003880
movzx ecx, word [rsi]
test cx, cx
je 0x1400038a7
mov rdx, rsi
sub rdx, rax
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140003897
xor edx, edx
mov word [rax], bx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14000394a
mov rdx, rsi
lea rcx, str.___Module___ws__loaded_for_symbols_lookup_r_n
call fcn.140002250
call fcn.14000f2cc
mov rdx, rdi
mov rcx, rsi
mov rbp, rax
call fcn.140011c58
test eax, eax
je 0x14000392e
lea rdx, [rsp + 0x458]
mov rcx, r14
call fcn.140011cdc
test eax, eax
je 0x140003925
mov rbx, rbp
lea rdx, str.___Symbol_resolved_to_0x_llX_address_r_n
sub rbx, rdi
mov ecx, 2
add rbx, qword [rsp + 0x458]
mov r8, rbx
call fcn.14000f8a0
jmp 0x14000393f
lea rdx, str.____Unable_to_find_specified_symbol_r_n
jmp 0x140003935
lea rdx, str.____Unable_to_load_symbols_for_file_r_n
mov ecx, 1
call fcn.14000f8a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140003967
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rsi
lea rdx, str.____Could_not_load___ws___GetLastError__lu_r_n
mov r9d, eax
mov ecx, 1
call fcn.14000f8a0
mov rax, rbx
jmp 0x14000396e
xor eax, eax
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a4e0
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov rax, qword [rcx + 0x40]
xor ebx, ebx
mov rsi, rcx
mov dword [rbp + 0x630], ebx
mov rdx, qword [rax]
mov eax, dword [rdx + 8]
sub eax, 0x8c
je 0x14000a532
cmp eax, 1
jne 0x14000a532
lea r15, str.RegExp.exe
lea r12, [0x140036468]
jmp 0x14000a540
lea r12, [0x14003646c]
lea r15, [0x140036470]
xor eax, eax
lea rdi, [rbp - 0x20]
mov ecx, 0x20a
lea rdx, [rbp - 0x20]
rep stosb byte [rdi], al
lea rcx, [0x140035b38]
call fcn.140001b8c
dec eax
cmp eax, 0x103
ja 0x14000a718
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x630]
mov byte [rsp + 0x20], 1
mov rdx, rax
mov ecx, 0x7d1
call fcn.1400022a4
mov r14, rax
test rax, rax
jne 0x14000a5a7
lea rdx, str.____Failed_to_load_helper_dll_r_n
lea ecx, [rax + 1]
call fcn.14000f8a0
jmp 0x14000a723
mov edx, dword [rbp + 0x630]
lea r8, str.RegisterForProvider2
mov r9d, 1
mov rcx, r14
call fcn.14000fcec
test eax, eax
je 0x14000a6e7
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r15
lea r8, [0x140035bd0]
mov edx, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.140002530
mov r8d, dword [rbp + 0x630]
lea rax, [rbp + 0x630]
mov rdx, r14
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x1f0]
call fcn.14000152c
test rax, rax
je 0x14000a6d3
xor eax, eax
lea rdi, [rsp + 0x70]
lea edx, [rax + 0x68]
mov ecx, edx
rep stosb byte [rdi], al
lea ecx, [rax + 0x18]
mov dword [rsp + 0x70], edx
lea rdi, [rsp + 0x50]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, r12
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000a6b4
mov qword [rsp + 0x20], rsi
call fcn.14000ad98
mov rcx, qword [rsp + 0x58]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rdi, rdi
je 0x14000a6b4
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x28], rbx
setne bl
jmp 0x14000a6f8
mov edx, dword [rbp + 0x630]
lea rcx, str.____Failed_to_write_help_dll_on_disk
call fcn.140010740
jmp 0x14000a6f8
lea rdx, str.____Error_while_configuring_helper_dll_r_n
mov ecx, 1
call fcn.14000f8a0
mov rcx, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14000a725
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000b850
Capabilities:
Access pe header

Disassembly:
push rdi
sub rsp, 0x3e0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0x58]
mov dword [rsp + 0x30], ecx
lea rax, str.Fri_Sep_22_13:22:17_2023
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x903
mov r8d, 3
mov r9d, r8d
lea edx, [r8 - 2]
lea rcx, str.___Kernel_Driver_Utility_v_lu._lu._lu__build__lu__started___c_2020___2023_KDU_Project_r_n___Built_at__s__header_checksum_0x_lX_r_n___Supported_x64_OS_:_Windows_7_and_above_r_n
call fcn.140002250
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x1d0]
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov dword [rsp + 0x3f0], 0x1030303
movzx ecx, word [rax + 0x58]
or ecx, 0x23070000
mov dword [rsp + 0x3f4], ecx
lea r10, [rsp + 0xd0]
mov r11, qword [rsp + 0x3f0]
mov word [rsp + 0xce], 0x5f2d
xor edi, edi
mov r8b, dil
lea r9, [rsp + 0xc4]
movzx ecx, r8b
lea edx, [r8 + 0x61]
lea eax, [rdx - 0x20]
mov byte [r9 - 0x34], al
mov byte [rsp + rcx + 0xaa], dl
cmp cl, 0xa
jae 0x14000b951
sub dl, 0x31
mov byte [r9], dl
inc r8b
inc r9
cmp r8b, 0x1a
jl 0x14000b930
mov ecx, 0xd
mov rax, r11
shr r11, 5
and eax, 0x3f
movsx eax, byte [rsp + rax + 0x90]
mov word [r10], ax
lea r10, [r10 + 2]
sub rcx, 1
jne 0x14000b962
mov word [r10], di
lea r9, [rsp + 0xd0]
lea r8, str.BaseNamedObjects_ws
mov edx, 0x104
lea rcx, [rsp + 0x1d0]
call fcn.140002530
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor r9d, r9d
lea r8, [rsp + 0x58]
mov edx, 0x1f0001
lea rcx, [rsp + 0x3f8]
call qword [sym.imp.ntdll.dll_NtCreateMutant]
mov ecx, 0xb7
cmp eax, 0xc0000035
cmove edi, ecx
cmp edi, ecx
je 0x14000ba2e
call fcn.14000b3b0
mov edi, eax
mov dword [rsp + 0x40], eax
jmp 0x14000ba3f
lea rdx, str.____Another_instance_is_running__close_it_before_r_n
mov ecx, 1
call fcn.14000f8a0
mov edx, edi
lea rcx, str.___Return_value:__d._Bye_bye__r_n
call fcn.140002250
mov eax, edi
add rsp, 0x3e0
pop rdi
ret
Function at 0x14000fa98
Capabilities:
Access peb ldr_data
Delete file

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 rax, qword gs:[0x30]
xor edi, edi
mov rsi, r8
mov rbp, rcx
mov r15d, edi
mov r9, qword [rax + 0x60]
mov r14, qword [r9 + 0x20]
mov r9, qword [r8 + 0x28]
mov rax, r9
test r9, r9
jne 0x14000fae1
mov r9d, edi
jmp 0x14000faed
add r9, 2
cmp word [r9], di
jne 0x14000fadd
sub r9, rax
sar r9, 1
mov rax, qword [r8 + 0x30]
mov rcx, rax
test rax, rax
jne 0x14000fb02
mov rax, rdi
jmp 0x14000fb0d
add rax, 2
cmp word [rax], di
jne 0x14000fafe
sub rax, rcx
sar rax, 1
lea rcx, [rax + r9]
movzx eax, word [r14 + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x14000fc29
mov rcx, rbp
call fcn.14000bc40
test eax, eax
jne 0x14000fb40
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000fcd1
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000fcc6
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.140001498
lea rdx, [0x1400355dc]
call fcn.1400013f4
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov r14, rax
call fcn.1400013f4
mov r8d, dword [rsi + 0x38]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.14000fe0c
test eax, eax
je 0x14000fc08
mov word [r14], di
mov rcx, rbx
mov rdx, qword [rsi + 0x30]
call fcn.1400013f4
mov r8d, dword [rsi + 0x3c]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.14000fe0c
test eax, eax
je 0x14000fc08
mov eax, dword [rsi + 0x4c]
lea rcx, [rsi + 8]
mov r8d, dword [rsi + 0x48]
mov r9, rsi
mov rdx, qword [rsi + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14000f958
mov r15d, eax
test eax, eax
jne 0x14000fc08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000fcc6
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
je 0x14000fcc6
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.140001498
lea rdx, [0x1400355dc]
call fcn.1400013f4
mov rdx, qword [rsi + 0x28]
mov rcx, rbp
mov rbx, rax
call fcn.1400013f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx], di
mov rcx, rbp
mov rdx, qword [rsi + 0x30]
call fcn.1400013f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15d, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
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
Function at 0x14000fcec
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov edi, r9d
mov r12, r8
mov r15d, edx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
je 0x14000fdeb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, r14
call section..text
mov rbp, rax
test rax, rax
je 0x14000fdeb
mov rdx, r12
mov rcx, rax
call fcn.140001198
test rax, rax
je 0x14000fdda
sub eax, ebp
mov dword [rsi + 0x28], eax
test edi, edi
je 0x14000fd6c
mov eax, 0xdfff
and word [rsi + 0x16], ax
lea r8d, [r15 + 1]
mov r9, r14
shr r8d, 1
mov edx, ebx
je 0x14000fd94
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add r8d, 0xffffffff
jne 0x14000fd7a
mov edi, edx
mov rcx, r14
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x14000fdc9
movzx eax, word [rax + 0x58]
cmp di, ax
adc ax, bx
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, bx
sub di, ax
jmp 0x14000fdcc
movzx edi, bx
movzx eax, di
mov ebx, 1
add eax, r15d
mov dword [rsi + 0x58], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x14000fec0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov qword [rsp + 0x20], r9
xor eax, eax
lea rdi, [rsp + 0x30]
mov esi, edx
mov r9, r8
mov ecx, 0x410
lea r8, [0x140035bd0]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.140002530
cmp dword [rsp + 0x470], 0
je 0x14000ff1a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000ff2f
test rbx, rbx
je 0x14000ff2f
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000fe0c
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000ff44
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000ffd3
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x14000ffca
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140013060
Capabilities:
Parse pe header

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

Function at 0x14001d734
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d530
Function at 0x140022c04
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140022c34
xor eax, eax
jmp 0x140022cf7
mov rbp, rbx
cmp word [rax], si
je 0x140022c59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022c40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022c3c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140022b24
movsxd r14, eax
test eax, eax
jne 0x140022c97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022c2d
mov rcx, r14
call fcn.14001f22c
mov rdi, rax
test rax, rax
jne 0x140022cb0
xor ecx, ecx
call fcn.14001e5b4
jmp 0x140022c8c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140022b24
test eax, eax
jne 0x140022ce1
mov rcx, rdi
call fcn.14001e5b4
jmp 0x140022ceb
xor ecx, ecx
call fcn.14001e5b4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140027118
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002712e
mov al, 1
jmp 0x14002718e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002713f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002718c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023524
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002718c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002718c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002718c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002718e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140028290
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140021bf4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002831a
cmp byte [rbp - 0x21], r15b
je 0x140028315
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028350
call fcn.14001e804
test eax, eax
jne 0x14002833c
cmp byte [rbp - 0x21], r15b
je 0x140028334
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028350
cmp byte [rbp - 0x21], r15b
je 0x14002834d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400211d4
test eax, eax
jne 0x1400283f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140021bf4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002838f
cmp byte [rbp - 0x21], r15b
je 0x1400283c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400283c4
call fcn.14001e804
test eax, eax
jne 0x1400283b0
cmp byte [rbp - 0x21], r15b
je 0x1400283a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400283c4
cmp byte [rbp - 0x21], r15b
je 0x1400283c1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400211d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400283f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400283f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028401
mov rcx, rdi
call fcn.14001e5b4
cmp byte [rbp + 0x3f], r15b
je 0x140028410
mov rcx, qword [rbp + 0x27]
call fcn.14001e5b4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14002a980
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a9a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a9a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000c5e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x14030fb18], 0
jne 0x14000c651
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x14030fb08], rax
mov eax, dword [rsp + 0x48]
mov qword [0x14030fb10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x14030fb18], rax
lea rax, [0x14030fb08]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140110ce0
add rsp, 0x68
ret