joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031180
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14018b7d8]
mov qword [rcx], rax
add rcx, 8
call fcn.14003ac50
lea rcx, [rsi + 0x10]
call fcn.14003ac50
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.14003ac50
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov dword [rsi + 0xd0], 0x3f800000
mov dword [rsi + 0xd8], 0
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], 0x3f800000
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], 0x3f800000
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], 0x3f800000
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], 0x3f800000
mov qword [rsi + 0x198], 0
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], 0
mov eax, dword [0x140191ff8]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14006eed0
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], 0x3f800000
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], 0
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], 0
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], 0
call fcn.140002ab0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x140191ffc], edx
je 0x14003136f
cmp rax, 0x40
mov eax, 0x3e8
jmp 0x140031380
test dword [0x140192000], edx
je 0x1400313ed
cmp rax, 0x40
mov eax, 0x100
cmovb rcx, rax
call fcn.14006db70
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x1400313a7
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401de008]
call fcn.140037320
mov qword [rsp + 0x20], 0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400374b0
mov qword [0x1401ca1b0], rsi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148650
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rdi
pop rsi
ret
test dword [0x140192004], edx
je 0x140031400
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140031409
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14006dc70
jmp 0x140031389
Function at 0x1400384a0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.14014b870
mov dword [rsp + 0x34], 0x11c
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140148228
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x1401ca218]
mov ecx, dword [0x1401ca5a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x40]
jg 0x14003856c
lea r8, [0x1401ca1e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400386d0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140148650
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ca218]
call fcn.140148390
cmp dword [0x1401ca218], 0xffffffff
jne 0x140038538
xorps xmm0, xmm0
movups xmmword [0x1401ca208], xmm0
movups xmmword [0x1401ca1f8], xmm0
movups xmmword [0x1401ca1e8], xmm0
lea rcx, [0x1401ca1e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ca218]
call fcn.140148428
jmp 0x140038538

Function at 0x140038620
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401ca218]
mov ecx, dword [0x1401ca5a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x40]
jg 0x140038681
movzx eax, word [0x1401ca1e8]
cmp rax, 0xc
ja case.0x140038660.1
lea rcx, [0x14018cf14]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x140038660.0
mov eax, 4
jmp case.0x140038660.0
mov eax, 1
jmp case.0x140038660.0
mov eax, 3
add rsp, 0x28
ret
lea rcx, [0x1401ca218]
call fcn.140148390
cmp dword [0x1401ca218], 0xffffffff
jne 0x140038645
xorps xmm0, xmm0
movups xmmword [0x1401ca208], xmm0
movups xmmword [0x1401ca1f8], xmm0
movups xmmword [0x1401ca1e8], xmm0
lea rcx, [0x1401ca1e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ca218]
call fcn.140148428
jmp 0x140038645

Function at 0x1400390b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003912b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14003912b
cmp dword [rsp + 0x38], 4
jne 0x14003912b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140148650
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140039150
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1058
call fcn.140148570
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x1050], rax
lea r14, [rsp + 0x850]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14014b870
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x48], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x4c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140039342
mov eax, dword [rsp + 0x4c]
cmp eax, 2
je 0x140039216
mov edi, 0x3f4
cmp eax, 1
jne 0x140039342
lea rbx, [rsp + 0x850]
mov rcx, rbx
call fcn.14016dfe4
mov rdi, rax
movzx eax, byte [rsi]
test al, 1
jne 0x14003928a
cmp rdi, 0xa
ja 0x14003927c
lea rbx, [rsi + 2]
jmp 0x1400392a0
lea rdi, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14014b870
lea rcx, [rsp + 0x850]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x48], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140039342
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.14016dfe4
mov rdi, rax
movzx eax, byte [rsi]
test al, 1
jne 0x1400392cf
cmp rdi, 0xa
jbe 0x14003930d
movzx r9d, al
shr r9d, 1
mov edx, 0xa
jmp 0x1400392e5
mov rax, qword [rsi]
mov rdx, rax
and rdx, 0xfffffffffffffffe
dec rdx
cmp rdx, rdi
jb 0x1400392e1
mov rbx, qword [rsi + 0x10]
test rdi, rdi
je 0x1400392be
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x850]
mov rcx, rbx
call fcn.14014b1c0
movzx eax, byte [rsi]
test al, 1
jne 0x140039336
lea eax, [rdi + rdi]
mov byte [rsi], al
mov word [rbx + rdi*2], 0
jmp 0x140039340
mov rax, qword [rsi]
mov rdx, rax
and rdx, 0xfffffffffffffffe
dec rdx
cmp rdx, rdi
jae 0x140039313
mov r9, qword [rsi + 8]
mov r8, rdi
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14002e212
jmp 0x140039340
lea rbx, [rsi + 2]
jmp 0x140039317
mov rbx, qword [rsi + 0x10]
test rdi, rdi
je 0x140039332
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14014b1c0
movzx eax, byte [rsi]
test al, 1
je 0x1400392c2
mov qword [rsi + 8], rdi
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140148650
mov eax, edi
add rsp, 0x1058
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140039370
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14016dfe4
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140039af0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1401ca238]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140039c44
jp 0x140039c44
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401ca248]
mov ecx, dword [0x1401ca5a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x40]
jg 0x140039c64
mov eax, dword [0x1401ca258]
mov ecx, dword [0x1401ca5a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x40]
jg 0x140039c9e
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r14, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r14, qword [0x1401ca250]
xorps xmm0, xmm0
cvtsi2sd xmm0, r14
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1401865e8]
ucomisd xmm1, xmm0
ja 0x140039c44
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1401ca240]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140185e50]
subpd xmm1, xmmword [0x140185e60]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1401ca238], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148650
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401ca248]
call fcn.140148390
cmp dword [0x1401ca248], 0xffffffff
jne 0x140039b72
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401ca240], rdx
lea rcx, [0x1401ca248]
call fcn.140148428
jmp 0x140039b72
lea rcx, [0x1401ca258]
call fcn.140148390
cmp dword [0x1401ca258], 0xffffffff
jne 0x140039b97
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1401ca250], rax
lea rcx, [0x1401ca258]
call fcn.140148428
jmp 0x140039b97
Function at 0x14003a210
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140148228
mov rsi, rax
mov qword [rax], r15
test r14, r14
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14003a860]
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14003a29f
test r14, r14
je 0x14003a2cf
mov qword [r14], rdi
jmp 0x14003a2d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14003a2b8
mov ebp, eax
cmp eax, 0x5af
je 0x14003a2b8
cmp ebp, 0xe
jne 0x14003a2fc
mov rcx, rbx
call fcn.140007bd0
test rsi, rsi
je 0x14003a2d8
mov rcx, rsi
call fcn.140148278
jmp 0x14003a2d8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140148650
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [0x1401ca2a0]
mov ecx, dword [0x1401ca5a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x40]
jg 0x14003a3ef
lea rcx, [rsp + 0x30]
mov edx, ebp
call fcn.14004cb70
movzx eax, byte [rsp + 0x30]
test al, 1
jne 0x14003a349
shr eax, 1
lea rcx, [rsp + 0x31]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
jmp 0x14003a362
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
test rax, rax
js 0x14003a397
test rcx, rcx
jne 0x14003a36c
test rax, rax
jne 0x14003a3c3
mov rcx, qword [0x1401ca298]
lea rdx, [rsp + 0x48]
call fcn.1400447b0
test byte [rsp + 0x30], 1
je 0x14003a2c0
mov rcx, qword [rsp + 0x40]
call fcn.140148278
jmp 0x14003a2c0
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str.E:_nw82_sdk_win64_node_webkit_srcoutst_nw...._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.140005c64
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str.E:_nw82_sdk_win64_node_webkit_srcoutst_nw...._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.140005c64
lea rcx, [0x1401ca2a0]
call fcn.140148390
cmp dword [0x1401ca2a0], 0xffffffff
jne 0x14003a321
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140044780
mov qword [0x1401ca298], rax
lea rcx, [0x1401ca2a0]
call fcn.140148428
jmp 0x14003a321
Function at 0x14003cc80
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdx
mov qword [rcx], 0
test rdx, rdx
je 0x14003ccf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14003ccd7
call fcn.140059c20
mov rcx, qword [rsi]
call fcn.140038f70
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003cce9
mov qword [rsi], rdi
call fcn.140059c20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
cmp rax, rdi
je 0x14003cd1f
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140148650
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [0x14000df10]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140064140
mov rbx, rax
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140064140
lea rcx, str.handle___::GetCurrentProcess__
mov rdx, rax
mov r8, rbx
call fcn.140064380
test rax, rax
je 0x14003cd05
mov rdi, rax
lea rdx, str.Process
lea r8, str....._baseprocessprocess_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x29
call fcn.140059c00
lea r14, [rsp + 0x40]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.1400646f0
mov rcx, r14
call fcn.140064810
jmp 0x14003cd05

Function at 0x14003cda0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14003cdca
call fcn.140059c20
mov qword [rsi], 0
test r14, r14
je 0x14003cdf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003ce32
cmp r15, 2
jae 0x14003ce4c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14003ce23
call fcn.140059c20
mov rcx, qword [rdi]
call fcn.140038f70
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140059c20
mov rcx, qword [rsi]
call fcn.140038f70
mov qword [rsi], 0
cmp r15, 2
jb 0x14003cdf0
mov qword [rsi], r14
call fcn.140059c20
jmp 0x14003cdf0
Function at 0x14003ce60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jae 0x14003ce8c
cmp qword [rsi], r14
jne 0x14003ce96
jmp 0x14003ceb8
call fcn.140059c20
cmp qword [rsi], r14
je 0x14003ceb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003cef2
cmp r15, 2
jae 0x14003cf0c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14003cee3
call fcn.140059c20
mov rcx, qword [rdi]
call fcn.140038f70
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140059c20
mov rcx, qword [rsi]
call fcn.140038f70
mov qword [rsi], 0
cmp r15, 2
jb 0x14003ceb0
mov qword [rsi], r14
call fcn.140059c20
jmp 0x14003ceb0

Function at 0x14003cfe0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14003d00f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003d012
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14003d036
mov dil, 1
test bl, bl
je 0x14003d09d
cmp byte [rsi + 8], 0
je 0x14003d07c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003d07f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14003d04d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003d050
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003d063
xor edi, edi
jmp 0x14003d09d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14003d08c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14003d08f
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003d09d
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148650
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003ec40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140077c40
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x14018d7e0]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x14003eccb
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x14003ecb0
call fcn.140059c20
mov rcx, qword [rsi + 0x18]
call fcn.140038f70
mov qword [rsi + 0x18], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003ecc3
mov qword [rsi + 0x18], rdi
call fcn.140059c20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140040f20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401c6b58]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
movaps xmm6, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.140059c00
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.140048050
mov ebp, 0xffffffff
test r14, r14
js 0x14004105c
test esi, esi
js 0x14004105c
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x30], 0
call fcn.14007be70
test al, al
je 0x140040ffd
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14007bf30
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140041041
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
jns 0x140041052
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
lea rcx, [rsp + 0x30]
call fcn.14007bf00
lea rcx, [rsp + 0x60]
call fcn.1400480b0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140148650
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret