joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400131f0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbp, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400f7448]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rcx], rdx
movaps xmm0, xmmword [0x1400f7610]
movups xmmword [rcx + 0x10], xmm0
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov al, byte [0x1401502f0]
test al, al
je 0x140013357
mov ebx, dword [0x140152800]
lea rax, [rdi + rbp]
add rax, 0xffffffffffffffff
mov rcx, rax
shr rcx, 0x20
je 0x140013263
xor edx, edx
div rbx
mov r15, rax
jmp 0x14001326a
xor edx, edx
div ebx
mov r15d, eax
mov rax, rdi
shr rax, 0x20
je 0x140013280
mov rax, rdi
xor edx, edx
div rbx
mov rdi, rax
jmp 0x140013288
mov eax, edi
xor edx, edx
div ebx
mov edi, eax
sub r15, rdi
inc r15
je 0x14001332f
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul rdi, rbx
xor r13d, r13d
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x1400132d1
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rdi
add qword [rsi + 0x10], 1
add r13, 1
add rdi, rbx
cmp r13, r15
je 0x14001332f
mov rcx, qword [r14]
test rcx, rcx
je 0x140013327
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov r8, rbx
mov r9d, dword [rsp + 0xd0]
call r12
test eax, eax
je 0x14001331f
mov ebp, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
jne 0x1400132b0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400134a0
test al, al
je 0x140013327
mov rax, qword [rsi + 0x10]
jmp 0x1400132b0
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400133a0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [0x1400f7448]
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x140013391
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401502f0]
call fcn.1400c0fd4
test eax, eax
je 0x140013242
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140152800], eax
lea rcx, [0x1401502f0]
call fcn.1400c10ab
jmp 0x140013242
call fcn.1400763e0
int3
Function at 0x1400133a0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12, rcx
mov r14, qword [0x1400f7448]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov al, byte [0x1401502f0]
test al, al
je 0x140013454
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x14001342a
mov rdi, qword [r12 + 8]
mov r15d, dword [0x140152800]
shl rbx, 4
xor esi, esi
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140013409
add rsi, 0x10
cmp rbx, rsi
je 0x14001342a
mov rax, qword [r12]
mov rcx, qword [rax]
test rcx, rcx
je 0x140013400
mov r9d, dword [rdi + rsi]
mov rdx, qword [rdi + rsi + 8]
mov qword [rsp + 0x20], r13
mov r8, r15
call rbp
jmp 0x140013400
mov qword [r12 + 0x10], 0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14001348e
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401502f0]
call fcn.1400c0fd4
test eax, eax
je 0x1400133d3
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov dword [0x140152800], eax
lea rcx, [0x1401502f0]
call fcn.1400c10ab
jmp 0x1400133d3
call fcn.1400763e0
int3

Function at 0x140013bf0
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x860
mov r14, rcx
mov qword [rsp + 0x898], rdx
mov qword [rsp + 0x8a0], r8
mov qword [rsp + 0x8a8], r9
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x858], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140013ca3
lea rdi, [rsp + 0x898]
mov qword [rsp + 0x28], rdi
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [method.mozilla::PrintfTarget.PrintfTarget__]
lea rax, [0x1400f7428]
mov qword [rsp + 0x30], rax
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 0x800
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call qword [method.mozilla::PrintfTarget.vprint_char_const__char_]
mov rax, qword [rsp + 0x38]
cmp rax, 0x7ff
mov ecx, 0x7ff
cmovb rcx, rax
mov byte [rsp + rcx + 0x50], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
cmp eax, 0xfffffffe
je 0x140013cfb
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
lea rdx, str.aremote_debugging_port
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
test rax, rax
je 0x140013cfb
mov rdi, rax
lea r8, [rsp + 0x898]
mov qword [rsp + 0x50], r8
mov rcx, rax
mov rdx, r14
call fcn.1400c2de0
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, qword [rsp + 0x858]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140013d1d
add rsp, 0x860
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x140014f90
Capabilities:
Map section object

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [0x1400f7448]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [0x140152010]
test rax, rax
jne 0x140015031
mov rcx, qword [0x140152008]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 8
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x50]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x140015020
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140015052
mov qword [0x140152010], rax
mov byte [rsi + 0x10], 0
mov qword [rsi], rax
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x1400150a7
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret
call sub.ntdll.dll_RtlGetLastWin32Error
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xdb
mov dword [rsi + 0xc], ecx
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140015038
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140015038
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
jmp 0x140015038
call fcn.1400763e0
int3
Function at 0x1400164e0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov ebp, r9d
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov r15b, byte [rsp + 0x88]
mov ebx, dword [rsp + 0x80]
mov eax, dword [0x14015201c]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
je 0x140016542
cmp byte [0x14015201a], 0
je 0x140016542
mov eax, dword [0x14014f600]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 8]
jmp 0x140016547
call fcn.1400189b0
mov qword [rsi], rax
lea r14, [rsi + 8]
mov qword [rsi + 8], 0
mov byte [rsi + 0x10], 0
mov dword [rsi + 0x14], ebp
lea rcx, [rsi + 0x18]
mov qword [rsi + 0x20], 0
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [rsi + 0x28], eax
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmm1, xmmword [rdi]
movups xmmword [rsi + 0x40], xmm1
mov dword [rdi], 0
mov qword [rdi + 8], 0
mov qword [rsi + 0x50], r12
movups xmmword [rsi + 0x60], xmm0
mov qword [rsi + 0x58], 8
mov dword [rsi + 0x70], ebx
mov byte [rsi + 0x74], r15b
call sub.ntdll.dll_RtlQueryPerformanceCounter
mov eax, dword [0x14015201c]
mov rcx, qword gs:[0x30]
cmp eax, dword [rcx + 0x48]
jne 0x1400165ce
mov rcx, rsi
call fcn.1400189c0
jmp 0x140016608
cmp byte [0x14015201a], 0
jne 0x1400165ee
mov rax, qword gs:[0x30]
cmp qword [rax + 0x58], 0
je case.default.0x140016632
mov byte [0x14015201a], 1
mov eax, dword [0x14014f600]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 8], rsi
add rsi, 0x40
lea rcx, case.0x1400164be.0
mov rax, qword [case.0x1400164be.0]
mov rax, qword [rax + 0x30]
mov rdx, r14
mov r8, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp rax
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
mov dword [0x14015201c], eax
jmp 0x1400165c4
Function at 0x140016f30
Capabilities:
Map section object

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
mov rbx, qword [0x1400f7448]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 4
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14001704c
mov rdi, rax
mov rdx, qword [0x140152010]
test rdx, rdx
je 0x140016fb6
mov qword [0x140152010], 0
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x140016fb6
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rcx, qword [0x140152008]
cmp rcx, rdi
je 0x140016fd4
test rcx, rcx
je 0x140016fcd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140152008], rdi
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea r8, [rsp + 0x58]
mov rcx, rdi
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jns 0x140017039
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001707a
call fcn.140016930
xor eax, eax
jmp 0x1400170a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_7913966da16e_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xb5
mov dword [rsi + 0xc], ecx
jmp 0x1400170cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str._var_tmp_build_firefox_7913966da16e_browser_app_winlauncher_freestanding_SharedSection.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0xbf
mov dword [rsi + 0xc], ecx
mov al, 1
mov byte [rsi + 0x10], al
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400170cf
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jns 0x1400170cf
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
mov rax, qword [rsp + 0x68]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x1400170ea
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
call fcn.1400763e0
int3
Function at 0x1400189d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
test rdx, rdx
je 0x140018a5a
mov rax, rdx
movzx ecx, word [rdx]
cmp ecx, 0x5a4d
jne 0x140018a5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
je 0x140018a5a
cmp dword [rcx], 0x4550
jne 0x140018a5a
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x140018a5a
cmp dword [rcx + 0x50], 0x147
jbe 0x140018a5a
cmp dword [rcx + 0x84], 0
je 0x140018a5a
mov r9d, dword [rcx + 0x88]
test r9, r9
je 0x140018a5a
mov ecx, dword [rcx + 0x8c]
test ecx, ecx
je 0x140018a5a
mov rdx, r9
add rdx, rax
je 0x140018a5a
cmp dword [rdx + 0x14], 0
je 0x140018a5a
add ecx, r9d
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], ecx
mov rcx, rsi
mov rdx, r8
mov r8, rax
call fcn.140018a90
jmp 0x140018a83
mov qword [rsi], r8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov dword [rsi + 0x18], 0
mov qword [rsi + 0x20], r8
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], r8
movups xmmword [rsi + 0x40], xmm0
mov qword [rsi + 0x50], r8
movups xmmword [rsi + 0x58], xmm0
mov rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140018c40
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
mov rbx, rdx
mov r14, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, str.CreateFileVersionInfoWin
lea r8, str._var_tmp_build_firefox_7913966da16e_security_sandbox_chromium_shim_base_file_version_info_win.cpp
lea rcx, [rsp + 0x38]
mov r9d, 0x31
call fcn.140021b90
test byte [rbx], 1
je 0x140018c93
mov rbx, qword [rbx + 0x10]
jmp 0x140018c97
add rbx, 2
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x140018daf
mov ebp, eax
mov esi, eax
mov rcx, rsi
call fcn.1400c1200
mov rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call sub.ntdll.dll_memset
mov edx, dword [rsp + 0x28]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140018d9e
mov qword [rsp + 0x38], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140018d9e
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140018d9e
mov rbp, rdi
add rbp, rsi
mov ecx, 0x30
call fcn.1400c1200
mov rsi, rax
mov eax, dword [rbx]
mov qword [rsi], rdi
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], rdi
mov dword [rsi + 0x20], eax
mov qword [rsp + 0x30], 0
lea rdx, [0x1400fa002]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140018d90
lea rdx, str._var_tmp_build_firefox_7913966da16e_security_sandbox_chromium_shim_base_file_version_info_win.cpp
lea r9, str.::VerQueryValue_data__kRoot__fixed_file_info__dummy_size_
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x28
call fcn.14001a430
mov rcx, rdi
call fcn.14001a6b0
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x28], rax
mov qword [r14], rsi
jmp 0x140018db6
mov qword [r14], 0
mov rcx, rdi
call fcn.1400c12e0
jmp 0x140018db6
mov qword [r14], 0
mov rax, qword [rsp + 0x170]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140018ddc
mov rax, r14
add rsp, 0x178
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x14001dbf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov r15, rcx
mov r14, qword [0x1400f7448]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx r8d, byte [rdx]
lea rbx, [rdx + 2]
test r8b, 1
je 0x14001dc2c
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
jmp 0x14001dc32
shr r8, 1
mov rdx, rbx
add r8, r8
lea rcx, [rsp + 0x28]
call fcn.14001cf70
mov r11, qword [r15 + 8]
test r11, r11
je 0x14001dde5
mov r8, rax
mov rax, r11
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r11
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs r10, 0x101010101010101
imul r10, rax
shr r10, 0x38
cmp r10, 1
ja 0x14001dcba
lea r9, [r11 - 1]
and r9, r8
jmp 0x14001dce8
cmp r8, r11
jae 0x14001dcc4
mov r9, r8
jmp 0x14001dce8
mov rax, r8
or rax, r11
shr rax, 0x20
je 0x14001dcdd
mov rax, r8
xor edx, edx
div r11
mov r9, rdx
jmp 0x14001dce8
mov eax, r8d
xor edx, edx
div r11d
mov r9d, edx
mov rax, qword [r15]
mov rax, qword [rax + r9*8]
test rax, rax
je 0x14001dde5
mov rcx, qword [rax]
test rcx, rcx
je 0x14001dde5
movzx edi, byte [rsi]
test dil, 1
je 0x14001dd17
mov rdi, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x14001dd1a
shr rdi, 1
lea rsi, [r11 - 1]
jmp 0x14001dd38
and rax, rsi
cmp rax, r9
jne 0x14001dde5
mov rcx, qword [rcx]
test rcx, rcx
je 0x14001dde5
mov rax, qword [rcx + 8]
cmp rax, r8
jne 0x14001dd60
movzx eax, byte [rcx + 0x10]
test al, 1
je 0x14001dd90
mov rdx, qword [rcx + 0x18]
cmp rdx, rdi
jne 0x14001dd2c
jmp 0x14001dd9b
cmp r10d, 1
jbe 0x14001dd20
cmp rax, r11
jb 0x14001dd23
mov rdx, rax
or rdx, r11
shr rdx, 0x20
je 0x14001ddd9
xor edx, edx
div r11
mov rax, rdx
jmp 0x14001dd23
mov rdx, rax
shr rdx, 1
cmp rdx, rdi
jne 0x14001dd2c
test rdi, rdi
je 0x14001dde7
test al, 1
je 0x14001ddaa
mov rax, qword [rcx + 0x20]
jmp 0x14001ddb2
lea rax, [rcx + 0x10]
add rax, 2
xor edx, edx
nop word cs:[rax + rax]
nop
movzx ebp, word [rax + rdx*2]
cmp bp, word [rbx + rdx*2]
jne 0x14001dd2c
add rdx, 1
cmp rdi, rdx
jne 0x14001ddc0
jmp 0x14001dde7
xor edx, edx
div r11d
mov eax, edx
jmp 0x14001dd23
xor ecx, ecx
mov rax, qword [rsp + 0x30]
xor rax, rsp
mov rdx, qword [r14]
cmp rdx, rax
jne 0x14001de07
mov rax, rcx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x140021520
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r14, rdx
mov rsi, rcx
mov r15, qword [0x1400f7448]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.140034ac0
test byte [rsp + 0x50], 1
je 0x140021568
mov rcx, qword [rsp + 0x60]
jmp 0x14002156d
lea rcx, [rsp + 0x52]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test byte [rsp + 0x50], 1
je 0x14002158b
mov rcx, qword [rsp + 0x60]
call fcn.1400c12e0
test r14, r14
je 0x140021650
test edi, edi
je 0x140021650
mov ecx, edi
add rcx, rcx
call fcn.1400c12a0
mov rbx, rax
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call fcn.140034ac0
test byte [rsp + 0x50], 1
je 0x1400215ce
mov rcx, qword [rsp + 0x60]
jmp 0x1400215d3
lea rcx, [rsp + 0x52]
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test byte [rsp + 0x50], 1
je 0x1400215f0
mov rcx, qword [rsp + 0x60]
call fcn.1400c12e0
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x140021611
xor ecx, ecx
nop dword [rax]
lea rax, [rcx + 1]
cmp word [rbx + rcx*2 + 2], 0
mov rcx, rax
jne 0x140021600
jmp 0x140021613
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.140034b30
test byte [r14], 1
je 0x140021636
mov rcx, qword [r14 + 0x10]
call fcn.1400c12e0
mov rax, qword [rsp + 0x60]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [r14], xmm0
mov rcx, rbx
call fcn.1400c1310
test edi, edi
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x140021671
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400763e0
int3
Function at 0x140021dd0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.1400222f0
test rdi, rdi
je 0x140021e34
test al, al
je 0x140021e34
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x140021e34
test rcx, rcx
js 0x140021e34
cmp qword [rsi + 0x10], rax
jb 0x140021e34
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140022750
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov ebp, edx
mov rsi, rcx
mov r13, qword [0x1400f7448]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
cmp dword [rcx + 8], 0
setne al
lea r12d, [rax + rax]
add r12d, 4
mov edi, edx
sar edi, 0x1f
mov rcx, qword [rcx]
mov qword [rsp + 0x20], r8
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
jne 0x1400227d8
mov rcx, qword [rsi]
mov qword [rsp + 0x20], r15
mov edx, r12d
mov r8d, edi
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [r14], rax
test rax, rax
je 0x14002282f
mov rsi, qword [rsp + 0xd0]
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
add rcx, qword [rsp + 0x38]
test rax, rax
cmove rcx, rax
mov qword [rsi], rcx
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x140022833
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14002280d
call fcn.1400763e0
int3

Function at 0x140021e40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140021ed3
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rbx, qword [rsi]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140021e98
mov r14, qword [rsp + 0x48]
call fcn.140021bd0
mov rcx, rbx
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.140045a60
mov rcx, qword [rsi]
call fcn.1400459f0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140021ec0
mov qword [rsi], rdi
mov rbx, qword [rsp + 0x48]
call fcn.140021bd0
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
mov r9, rax
call fcn.140045a20
mov ecx, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140022230
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov qword [rcx], 0
mov rdi, qword [rdx]
mov qword [rdx], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140022275
mov rbx, rdx
mov r14, qword [rsp + 0x48]
call fcn.140021bd0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.140045a60
mov rcx, rsi
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140021e40