joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d860
Capabilities:
Persist via run registry key

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x48], 0xffffffff80000001
lea rcx, [rsp + 0x70]
call fcn.140005eb0
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.14000c360
lea rcx, [rsp + 0x78]
call fcn.140005c90
nop
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rsp + 0x40]
call fcn.140005120
nop
lea rdx, [0x14002abb0]
lea rcx, [rsp + 0x38]
call fcn.140005120
nop
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x68]
call fcn.14000e960
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140009030
movzx eax, al
test eax, eax
jne 0x14000d90b
mov dword [rsp + 0x2c], 1
jmp 0x14000d913
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x70], al
lea rcx, [rsp + 0x68]
call fcn.140006c40
nop
lea rcx, [rsp + 0x38]
call fcn.140006c40
nop
lea rcx, [rsp + 0x40]
call fcn.140006c40
nop
movzx eax, byte [rsp + 0x70]
test eax, eax
je 0x14000d9a7
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
lea rcx, [rsp + 0x58]
call fcn.140005120
nop
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rdx, str.PCAppStore
lea rcx, [rsp + 0x50]
call fcn.140005120
nop
mov eax, dword [rsp + 0x24]
or eax, 2
mov dword [rsp + 0x24], eax
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.14000e850
movzx eax, al
test eax, eax
je 0x14000d9a7
mov byte [rsp + 0x20], 1
jmp 0x14000d9ac
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x24]
and eax, 2
test eax, eax
je 0x14000d9d0
and dword [rsp + 0x24], 0xfffffffd
lea rcx, [rsp + 0x50]
call fcn.140006c40
nop
mov eax, dword [rsp + 0x24]
and eax, 1
test eax, eax
je 0x14000d9eb
and dword [rsp + 0x24], 0xfffffffe
lea rcx, [rsp + 0x58]
call fcn.140006c40
nop
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x14000da5e
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c8d0
movzx eax, byte [rax]
test eax, eax
je 0x14000da4d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c8d0
movzx eax, byte [rax]
cmp eax, 2
je 0x14000da4d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c8d0
movzx eax, byte [rax]
cmp eax, 6
je 0x14000da4d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000c8d0
movzx eax, byte [rax]
cmp eax, 8
je 0x14000da4d
mov dword [rsp + 0x30], 0
jmp 0x14000da55
mov dword [rsp + 0x30], 1
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x70], al
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x29], al
lea rcx, [rsp + 0x78]
call fcn.140006f20
movzx eax, byte [rsp + 0x29]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400129f0
add rsp, 0xa8
ret
Function at 0x14000dba0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14000dbf9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000dc46
mov rcx, qword [rsp + 0x290]
call fcn.14000c980
mov rdx, rax
lea rcx, [rsp + 0x5c]
call fcn.14001b264
test eax, eax
jne 0x14000dc26
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000dc46
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000dbf9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400129f0
add rsp, 0x288
ret
Function at 0x14000e850
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 0x1000
mov eax, dword [rsp + 0x58]
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.14000ed20
nop
mov rcx, qword [rsp + 0x90]
call fcn.140002e10
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000e93f
mov rcx, qword [rsp + 0x88]
call fcn.14000cdf0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
call fcn.140002e10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000e930
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14000e941
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000e941
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400129f0
add rsp, 0x78
ret

Function at 0x14000e960
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14000c360
lea rcx, [rsp + 0x60]
call fcn.1400051e0
nop
mov dword [rsp + 0x50], 0x1000
mov rcx, qword [rsp + 0xa0]
call fcn.140002e10
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000ea85
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.140008ca0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x98]
call fcn.140002e10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x60]
call fcn.140009610
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.1400050f0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140006c40
mov rax, qword [rsp + 0x90]
jmp 0x14000eab6
lea rdx, [0x14002ac78]
mov rcx, qword [rsp + 0x90]
call fcn.140005120
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.140006c40
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400129f0
add rsp, 0x88
ret
Function at 0x140011448
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140011482
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140011487
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400114d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002b870]
cmp byte [rcx + rax], 0
je 0x1400114d0
dec r8
sub rdx, 1
jne 0x1400114b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001316c
Capabilities:
Parse pe header

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

Function at 0x14001b3e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14001b41b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001add8
call fcn.14001ae64
mov eax, dword [rax]
jmp 0x14001b492
cmp rdi, qword [rbx + 0x18]
ja 0x14001b427
mov qword [rbx + 0x20], rdi
jmp 0x14001b490
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x14001b43e
mov rcx, qword [rbx + 0x10]
call fcn.14001d7d4
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14001d810
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14001b492
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x14001b405
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b8ac
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 0x14001b8e3
call fcn.14001ae64
mov dword [rax], 0x16
call fcn.140018174
xor eax, eax
jmp 0x14001b971
mov rdx, r9
mov rcx, r8
call fcn.14001b848
mov rbx, rax
test rax, rax
je 0x14001b96e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001b774]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001b95b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001add8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001b942
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001b951
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001d7d4
jmp 0x14001b96e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001b96b
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 0x14001bf60
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 0x14001bfcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bfcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bfcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bfcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bfcf
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bfcf
cmp dword [rcx + 0xf8], 0
je 0x14001bfcf
mov ecx, ebx
call fcn.14001c080
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.14001be5c
nop
cmp dword [rbp + 0x20], 0
je 0x14001c01d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c028
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001bf60

Function at 0x14001c164
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001bf60
Function at 0x140021504
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.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002158b
mov rsi, rbx
cmp word [rax], bp
je 0x14002154a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140021534
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140021530
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d810
mov rdi, rax
test rax, rax
je 0x140021578
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140027300
mov rbp, rdi
xor ecx, ecx
call fcn.14001d7d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.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 0x140026f60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140026f88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140026f88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003498
Capabilities:
Parse pe header

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

Function at 0x14000db04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d900

Function at 0x140010610
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.14001bee0
sub rsp, rax
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14000fc24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001065f
mov rax, rbp
jmp 0x140010767
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 + 0x2c1c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400102b8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2c1c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140010763
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.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140010763
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400102b8
test rax, rax
js 0x140010763
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140010763
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140010755
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140010755
cmp byte [rcx], 0xd
jne 0x14001073b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001074a
cmp byte [rcx + 1], 0xa
jne 0x14001074a
inc rcx
jmp 0x14001074a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2a3a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001071d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140010767
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140002f50
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 0x1400123d8
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, [0x14002c1c0]
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 0x14001242f
cmp word [rdx], r13w
jne 0x14001242f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140012434
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140012559
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001257a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001246d
mov rdx, r9
mov word [rbx], cx
jmp 0x140012494
cmp r9, r8
jae 0x1400124a4
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 0x14001244e
jmp 0x140012559
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001254e
cmp dword [rsp + 0x80], esi
je 0x14001254e
lea r8, [0x14002c1c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140012526
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400124f6
mov word [rbx], r13w
jmp 0x140012556
mov ecx, 0xd
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 0x140012503
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140012556
cmp word [rsp + 0x70], r13w
jne 0x140012533
cmp rbx, r14
je 0x1400124f0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400102c0
cmp word [rsp + 0x70], r13w
je 0x140012559
mov ecx, 0xd
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, [0x14002c1c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140012553
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140012559
Function at 0x1400142d4
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.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001435b
mov rsi, rbx
cmp word [rax], bp
je 0x14001431a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140014304
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140014300
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010b74
mov rdi, rax
test rax, rax
je 0x140014348
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001c670
mov rbp, rdi
xor ecx, ecx
call fcn.14000e7d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.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 0x140016ae8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140016afe
mov al, 1
jmp 0x140016b5e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016b0f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140016b5c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140014d94
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016b5c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140016b5c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016b5c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140016b5e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001ad94
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400102c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400102c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001aee4
cmp rax, 0xffffffffffffffff
je 0x14001aee4
xor edi, edi
test rbp, rbp
jle 0x14001ae8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000e75c
mov rbx, rax
test rax, rax
jne 0x14001ae1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001ae85
mov edx, 0x8000
mov ecx, r14d
call fcn.14000db80
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400166e0
cmp eax, 0xffffffff
je 0x14001ae65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001ae2c
mov edx, r15d
mov ecx, r14d
call fcn.14000db80
jmp 0x14001ae85
cmp byte [rsi + 0x38], dil
je 0x14001ae7c
cmp dword [rsi + 0x34], 5
jne 0x14001ae7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001ae85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000e7d4
jmp 0x14001aef8
jns 0x14001aef8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400102c0
cmp rax, 0xffffffffffffffff
jne 0x14001aeb0
cmp byte [rsi + 0x30], dil
je 0x14001aef8
mov edi, dword [rsi + 0x2c]
jmp 0x14001aef8
mov ecx, r14d
call fcn.140014d94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001aef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001aef8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001aef1
mov eax, dword [rsi + 0x2c]
jmp 0x14001aef6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400102c0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14001be10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001be38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001be38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret