joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f830
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14003f1b4]
mov r12, rcx
test ebx, ebx
jle 0x14000f960
mov rax, qword [0x14003f1b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000f87b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14000f905
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14000f860
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000f982
mov rax, qword [0x14003f1b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14003f1b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f8fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f910
add dword [0x14003f1b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14003f1b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f8fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x14000f888
mov rax, qword [0x14003f1b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ff00
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14003f220]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14003f200]
test rbx, rbx
je 0x14000ff5c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000ff53
test r12, r12
je 0x14000ff53
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ff38
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140010190
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400101a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400101b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400101c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140010205
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400101fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140010207
add rax, 0x28
cmp rax, r9
jne 0x1400101e8
xor eax, eax
ret

Function at 0x140010210
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400102a0
mov rdx, qword [0x140037970]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14001028e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001028e
cmp word [rax + 0x18], 0x20b
jne 0x14001028e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400102a0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140010279
add r12, 0x28
cmp r12, rsi
je 0x1400102a0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140010270
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140037970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400102d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400102d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400102d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140010325
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001031c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400102d0
add rax, 0x28
cmp rax, r9
jne 0x140010308
xor eax, eax
ret

Function at 0x140010330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140037970]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010350
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140010358
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140010350
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140010370
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140037970]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140010390
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140010398
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140010390
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400103d8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400103cf
test rcx, rcx
je 0x140010390
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400103c0
xor eax, eax
ret
Function at 0x1400103e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140037970]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140010400
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140010408
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140037970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140010440
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140010448
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140010440
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140010440
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14001048c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400104a0
add rdx, 0x28
cmp rdx, r9
jne 0x140010478
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140037970]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400104d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400104e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400104d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400104d2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400104d2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14001052d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140010540
add rdx, 0x28
cmp r10, rdx
jne 0x140010518
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14001054f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14001055f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140010536
test ecx, ecx
jg 0x140010548
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14001cfc0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
mov eax, edx
mov ebx, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea r10d, [rax*4]
movsxd r10, r10d
add r10, rcx
neg eax
movsxd rdx, eax
je 0x14001d019
nop word [rax + rax]
imul eax, dword [r10 + rdx*4], 0xcc9e2d51
rol eax, 0xf
imul ecx, eax, 0x1b873593
xor r8d, ecx
rol r8d, 0xd
add r8d, 0xfaddaf14
lea r8d, [r8 + r8*4]
add rdx, 1
jne 0x14001cff0
mov ecx, ebx
xor edx, edx
and ecx, 3
sub ecx, 1
je 0x14001d041
sub ecx, 1
je 0x14001d037
cmp ecx, 1
jne 0x14001d059
movzx edx, byte [r10 + 2]
shl edx, 0x10
movzx eax, byte [r10 + 1]
shl eax, 8
xor edx, eax
movzx eax, byte [r10]
xor eax, edx
imul ecx, eax, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor r8d, eax
xor r8d, ebx
mov rbx, qword [rsp + 8]
mov eax, r8d
shr eax, 0x10
xor eax, r8d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov dword [r9], eax
ret
Function at 0x14001edc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r8d
mov rsi, r9
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14001eded
lea eax, [rcx - 1]
jmp 0x14001ee6f
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14001edfa
lea eax, [rcx - 4]
jmp 0x14001ee6f
xor r8d, r8d
mov edx, esi
call fcn.14005df90
test eax, eax
je 0x14001ee0f
mov eax, 0xfffffffb
jmp 0x14001ee6f
mov r9, qword [rbx]
mov r8, rdi
mov edx, 1
mov rcx, rbp
call fcn.14005dcc0
cmp eax, edi
je 0x14001ee6d
mov rcx, qword [0x1400b2120]
cmp dword [rcx], 5
jl 0x14001ee66
lea rcx, [rbx + 0x3c]
mov edx, 0x147
mov qword [rsp + 0x38], rcx
lea r9, str._d____d_trying_to_read_from_offset__lld_of__s_n
mov qword [rsp + 0x30], rsi
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], edi
mov r8d, 5
mov dword [rsp + 0x20], eax
call fcn.14001b9f0
mov eax, 0xfffffffa
jmp 0x14001ee6f
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14001f030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r8d
mov rsi, r9
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14001f05d
lea eax, [rcx - 1]
jmp 0x14001f0df
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14001f06a
lea eax, [rcx - 4]
jmp 0x14001f0df
xor r8d, r8d
mov edx, esi
call fcn.14005df90
test eax, eax
je 0x14001f07f
mov eax, 0xfffffffb
jmp 0x14001f0df
mov r9, qword [rbx]
mov r8, rdi
mov edx, 1
mov rcx, rbp
call fcn.14005e1e8
cmp eax, edi
je 0x14001f0dd
mov rcx, qword [0x1400b2120]
cmp dword [rcx], 1
jl 0x14001f0d6
lea rcx, [rbx + 0x3c]
mov edx, 0x161
mov qword [rsp + 0x38], rcx
lea r9, str._d____d_trying_to_write_to_offset__lld_of__s_n
mov qword [rsp + 0x30], rsi
lea rcx, str.C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_common_packetlogger.c
mov dword [rsp + 0x28], edi
mov r8d, 1
mov dword [rsp + 0x20], eax
call fcn.14001b9f0
mov eax, 0xfffffffa
jmp 0x14001f0df
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400273f0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400b2d98]
xor rax, rsp
mov qword [rsp + 0x150], rax
xorps xmm0, xmm0
movsxd rbx, ecx
movups xmmword [rsp + 0xe2], xmm0
mov eax, 0x20
mov rdi, rdx
mov word [rsp + 0xe0], ax
xor eax, eax
mov word [r11 - 0x26], ax
movups xmmword [r11 - 0x76], xmm0
movups xmmword [r11 - 0x66], xmm0
movups xmmword [r11 - 0x56], xmm0
movups xmmword [r11 - 0x46], xmm0
movups xmmword [r11 - 0x36], xmm0
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x14002746a
lea rdx, str.Please_run_as_Administrator_n
mov ecx, 0x3e7
call fcn.14001ac00
cmp rbx, 1
jle 0x1400274d5
movzx eax, word [0x140076a7c]
mov r10d, 1
nop dword [rax]
lea rcx, [rsp + 0xe0]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140027490
mov r9, qword [rdi + r10*8]
xor r8d, r8d
movzx edx, byte [r9 + r8]
mov byte [rcx + r8], dl
lea r8, [r8 + 1]
test dl, dl
jne 0x1400274a1
lea rcx, [rsp + 0xe0]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400274c0
inc r10
mov word [rcx], ax
cmp r10, rbx
jl 0x140027480
lea rcx, str.nvidia_smi.exe_daemon_init
call fcn.140055248
mov r10, rax
lea rcx, [rax - 1]
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400274f0
lea r8, [rsp + 0xe0]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140027510
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0xb4], eax
xor r8d, r8d
lea rax, [rsp + 0xc0]
mov rdx, r10
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400275c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.nvidia_smi_deamon_CreateProcess_error__d_n
lea rcx, str.ERROR_C:_dvs_p4_build_sw_rel_gpu_drv_r535_r536_08_apps_nvml_nvsmi_stats_daemon.c:525
call fcn.1400012a0
xor edx, edx
mov ecx, 0x3e7
call fcn.14001ac00
jmp 0x1400275d3
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140027d00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rdi, r8
mov ecx, 0x10
mov rsi, rdx
call fcn.140053798
mov rbx, rax
test rax, rax
jne 0x140027d35
lea eax, [rbx + 4]
jmp 0x140027d73
mov qword [rax], rsi
lea r8, [0x140027af0]
mov qword [rax + 8], rdi
mov r9, rbx
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.14005f4ac
mov qword [r14], rax
test rax, rax
jne 0x140027d6e
mov rcx, rbx
call fcn.140053784
xor eax, eax
jmp 0x140027d73
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140037c70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140037d4f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140037ca7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140037d52
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140037cf6
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x140037d00
test rax, rax
je 0x140037d4f
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140037d40
cmp rdx, rax
jb 0x140037d20
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140038920
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140038982
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140038977
cmp edi, eax
jb 0x140038977
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d340
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
test eax, eax
jne 0x14004d360
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor edx, edx
cmp rcx, rbx
cmovb ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14004d440
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movsd xmm1, qword [0x14007a0e8]
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x60]
divsd xmm1, xmm0
movsd qword [0x1400b6f88], xmm1
mulsd xmm1, qword [0x14007a0f0]
movsd qword [0x1400b6f90], xmm1
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x28]
lea rcx, str.KernelBase.dll
mov qword [0x1400b6f98], rax
mov rax, qword [rsp + 0x30]
mov qword [0x1400b6fa0], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14004d4fc
lea rdx, str.VirtualAlloc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.MapViewOfFile3
mov rcx, rbx
mov qword [0x1400b6fa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnmapViewOfFile2
mov rcx, rbx
mov qword [0x1400b6fb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b6fb8], rax
add rsp, 0x50
pop rbx
ret

Function at 0x14005d2ac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14005d13f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005d13f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005d13f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005d13f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005d13f
cmp dword [rcx + 0x84], 0xe
jbe 0x14005d13f
cmp dword [rcx + 0xf8], 0
je 0x14005d13f
mov ecx, ebx
call fcn.14005d1e0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14005cfd0
cmp dword [rbp + 0x20], 0
je 0x14005d18c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005d194
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005d0d8

Function at 0x140062df0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140062dcd
call fcn.140060a00
mov dword [rax], 0x16
call fcn.140063900
or eax, 0xffffffff
jmp 0x140062dea
sub dword [rcx + 0x10], 1
jns 0x140062ddc
add rsp, 0x28
jmp fcn.14006b438
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140062dac
Function at 0x14006bdc0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14006bde0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140060990
or eax, 0xffffffff
jmp 0x14006bde2
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400199cd
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140188028]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rcx, rdx
call fcn.140061cb0
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebp, eax
je 0x140019a1c
mov rcx, rdi
call fcn.140018f1a
mov ebp, 0x100000
test al, al
je 0x140019a21
mov ebp, 0x101000
lea r14, [rsp + 0x50]
mov r8d, 0xa0
mov rcx, r14
mov dl, 0xaa
call fcn.1400a5dc0
mov rcx, r14
call fcn.140063d00
mov byte [r14 + 0x22], 1
lea rcx, [rsp + 0x58]
call fcn.140062be0
movaps xmm0, xmmword [0x14015cb80]
lea r15, [rsp + 0x40]
movaps xmmword [r15], xmm0
mov rcx, r15
mov rdx, rbx
mov r8, r14
call fcn.140061d20
mov rcx, r15
call fcn.14002ff30
test al, al
je 0x140019b03
lea rbx, [rsp + 0x38]
mov qword [rbx], 0
mov rcx, rdi
call fcn.14002ff50
mov r14, rax
lea rcx, [rsp + 0x40]
call fcn.14002ff50
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebp
mov rcx, rax
mov rdx, r15
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140019b03
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x140019b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140019b55
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140019af9
mov qword [rsi], r14
call fcn.1400341c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140019b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov edi, 0x80004005
cmovne edi, ecx
lea rcx, [rsp + 0x40]
call fcn.14002fe50
lea rcx, [rsp + 0x50]
call fcn.140063d70
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400a3c70
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400341c0
mov rcx, qword [rsi]
call fcn.14002fd10
mov qword [rsi], 0
jmp 0x140019ae7