joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007a660
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x858
mov rsi, rdx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov qword [rdx + 8], 0
lea rdi, [rsp + 0x50]
xor r13d, r13d
lea rbp, str.:Z_
mov rbx, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r14, [rsp + 0x38]
jmp 0x14007a6c5
inc r13
cmp r13, 3
sete al
or al, r15b
cmp al, 1
je 0x14007a78c
mov r15, qword [rbp + r13*8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0x400
mov r12d, 0x400
xor r8d, r8d
nop word [rax + rax]
cmp r8, r12
je 0x14007a71a
ja 0x14007a712
cmp qword [rsp + 0x48], r12
jae 0x14007a712
mov r9d, 2
mov rcx, r14
mov rdx, rdi
mov r8, r12
call fcn.1400218c0
mov qword [rsp + 0x40], r12
mov r8, r12
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call rbx
test eax, eax
je 0x14007a770
mov r12d, eax
mov r8, qword [rsp + 0x40]
cmp r8, r12
jb 0x14007a6f0
mov qword [rsp + 0x40], r12
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x28]
mov edx, 0xfde9
mov r9, r12
call fcn.140080500
cmp dword [rsp + 0x28], 0
sete r15b
jmp 0x14007a773
xor r15d, r15d
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x14007a6b0
call qword [0x140276c98]
jmp 0x14007a6b0
test r15b, r15b
je 0x14007a7aa
mov rcx, rsi
xor edx, edx
call fcn.140078cb0
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.14007b610
jmp 0x14007a7ef
mov rax, qword [rsi + 8]
lea r8, [rax + 7]
cmp qword [rsi + 0x10], r8
jae 0x14007a7ce
lea rdx, [rsi + 0x18]
mov r9d, 1
mov rcx, rsi
call fcn.1400218c0
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
mov dword [rcx + rax + 3], 0x706d6554
mov dword [rcx + rax], 0x545c3a43
add qword [rsi + 8], 7
mov rcx, rsi
xor edx, edx
call fcn.140078cb0
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1401a5de0
nop
add rsp, 0x858
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007b7b0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0x104
mov eax, 0x104
xor ecx, ecx
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r14, [rsp + 0x30]
nop word [rax + rax]
mov r15d, eax
cmp rcx, r15
je 0x14007b83d
ja 0x14007b835
cmp qword [rsp + 0x40], r15
jae 0x14007b835
mov r9d, 2
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.1400218c0
mov qword [rsp + 0x38], r15
mov rcx, r15
mov rdx, qword [rsp + 0x30]
call r12
test eax, eax
je 0x14007b8b5
mov r9d, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, r9
jb 0x14007b810
mov qword [rsp + 0x38], r9
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov edx, 0xfde9
call fcn.140080500
cmp dword [rsi], 0
jne 0x14007b8c5
mov rcx, rbx
xor edx, edx
call fcn.140078cb0
mov dword [rsi], 0
mov eax, dword [0x1402b90c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007b8f9
lea rax, [0x14027b498]
mov qword [rsi + 8], rax
jmp 0x14007b8c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.14008e840
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x14007b8d5
call qword [0x140276c98]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1402b90c0]
call fcn.1401a5bcc
cmp dword [0x1402b90c0], 0xffffffff
jne 0x14007b8a8
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b90c0]
call fcn.1401a5c34
jmp 0x14007b8a8

Function at 0x14007bd60
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x140
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0x80
lea r8, [rsp + 0x20]
mov r9d, 0xf8
call fcn.14007c550
cmp dword [rsi], 0
jne 0x14007be07
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14007bdd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14007be35
test bl, bl
je 0x14007be35
mov dword [rsi], 0
mov eax, dword [0x1402b90c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007be41
lea rax, [0x14027b498]
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x14007be17
call qword [0x140276c98]
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
mov edx, eax
call fcn.14008e840
jmp 0x14007be07
lea rcx, [0x1402b90c0]
call fcn.1401a5bcc
cmp dword [0x1402b90c0], 0xffffffff
jne 0x14007bdfc
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b90c0]
call fcn.1401a5c34
jmp 0x14007bdfc
Function at 0x14007c410
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [r8 + 8]
lea rcx, [r8 + 0x18]
mov qword [rsp + 0x38], rcx
mov r12d, 0xffffffff
cmp r9, r12
cmovb r12, r9
lea r13, [rsp + 0x5c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, rax
nop word cs:[rax + rax]
lea rbp, [rsi + rbx]
cmp rax, rbp
je 0x14007c49b
ja 0x14007c497
cmp qword [rdi + 0x10], rbp
jae 0x14007c497
mov r9d, 1
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, rbp
call fcn.1400218c0
mov qword [rdi + 8], rbp
mov rdx, qword [rdi]
add rdx, rsi
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov r8d, r12d
mov r9, r13
call r15
test eax, eax
jne 0x14007c4e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14007c4e0
cmp eax, 0x26
jne 0x14007c524
nop word cs:[rax + rax]
mov eax, dword [rsp + 0x5c]
test rax, rax
je 0x14007c4f5
add rsi, rax
mov rax, qword [rdi + 8]
jmp 0x14007c470
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov qword [rbx], rax
mov qword [rdi + 8], rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rbx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov edx, eax
call fcn.14008e840
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.14001f170
mov rax, qword [rsp + 0x50]
jmp 0x14007c4f7
Function at 0x14007cb30
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0x80
lea r8, [rsp + 0x28]
mov r9d, 0x104
call fcn.14007c550
cmp dword [rsi], 0
jne 0x14007cbd2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14007cbc2
mov dword [rsi], 0
mov eax, dword [0x1402b90c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007cbff
lea rax, [0x14027b498]
mov qword [rsi + 8], rax
jmp 0x14007cbd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.14008e840
mov rcx, qword [rsp + 0x28]
cmp rcx, rdi
je 0x14007cbe2
call qword [0x140276c98]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
lea rcx, [0x1402b90c0]
call fcn.1401a5bcc
cmp dword [0x1402b90c0], 0xffffffff
jne 0x14007cbb5
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b90c0]
call fcn.1401a5c34
jmp 0x14007cbb5
Function at 0x14007d060
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0x80
mov r15d, 0x80
mov r13, qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12, [rsp + 0x28]
nop word cs:[rax + rax]
mov rcx, qword [rsp + 0x30]
cmp rcx, r15
je 0x14007d11b
ja 0x14007d116
cmp qword [rsp + 0x38], r15
jae 0x14007d0fc
mov r9d, 2
mov rcx, r12
mov rdx, rdi
mov r8, r15
call fcn.1400218c0
mov rcx, qword [rsp + 0x30]
mov r8, r15
sub r8, rcx
je 0x14007d116
add rcx, rcx
add rcx, qword [rsp + 0x28]
add r8, r8
xor edx, edx
call fcn.1401a77d0
mov qword [rsp + 0x30], r15
mov rdx, qword [rsp + 0x28]
mov rcx, qword [r14]
mov r8d, r15d
call r13
test eax, eax
jne 0x14007d146
call rbp
add r15, r15
cmp eax, 0x7a
je 0x14007d0d0
mov rcx, rsi
mov edx, eax
call fcn.14008e840
jmp 0x14007d1d6
mov rax, qword [rsp + 0x30]
lea r8, [rax + 1]
cmp r8, qword [rsp + 0x38]
ja 0x14007d23d
mov rcx, qword [rsp + 0x28]
mov word [rcx + rax*2], 0
inc qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [0x140276d20]
mov qword [rsp + 0x30], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [rax - 4]
cmp ecx, 3
jb 0x14007d19d
cmp eax, 2
je 0x14007d19d
cmp eax, 3
jne 0x14007d20d
mov byte [rbx], 1
jmp 0x14007d1a0
mov byte [rbx], 0
mov dword [rsi], 0
mov eax, dword [0x1402b90c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007d25a
lea rax, [0x14027b498]
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x28]
cmp rcx, rdi
je 0x14007d1e6
call qword [0x140276c98]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1402b9148]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007d290
mov dword [rsi], 2
lea rax, [0x14027b340]
jmp 0x14007d1d2
lea rcx, [rsp + 0x28]
mov r9d, 2
mov rdx, rdi
call fcn.1400218c0
mov rax, qword [rsp + 0x30]
jmp 0x14007d15a
lea rcx, [0x1402b90c0]
call fcn.1401a5bcc
cmp dword [0x1402b90c0], 0xffffffff
jne 0x14007d1cb
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b90c0]
call fcn.1401a5c34
jmp 0x14007d1cb
lea rcx, [0x1402b9148]
call fcn.1401a5bcc
cmp dword [0x1402b9148], 0xffffffff
jne 0x14007d22e
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b9148]
call fcn.1401a5c34
jmp 0x14007d22e
Function at 0x14007e0b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x140
mov edi, r8d
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rbx, [rsp + 0x38]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0x80
lea r8, [rsp + 0x20]
mov r9d, 0x104
call fcn.14007c550
cmp dword [rsi], 0
jne 0x14007e20a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14007e12b
cmp edi, 1
jne 0x14007e148
mov ecx, eax
and ecx, 1
je 0x14007e148
mov dword [rsi], 0
jmp 0x14007e15c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 4]
cmp ecx, 0xfffffffd
ja 0x14007e198
mov rcx, rsi
mov edx, eax
call fcn.14008e840
jmp 0x14007e20a
mov dword [rsi], 0
cmp edi, 2
jne 0x14007e1da
and eax, 0x10
je 0x14007e1da
mov qword [rsi + 8], 0
mov eax, dword [0x1402b9148]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e238
mov dword [rsi], 0xd
lea rax, [0x14027b340]
jmp 0x14007e206
mov dword [rsi], 0
mov qword [rsi + 8], 0
mov eax, dword [0x1402b9148]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e26e
mov dword [rsi], 2
lea rax, [0x14027b340]
jmp 0x14007e206
mov eax, dword [0x1402b90c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e2a4
lea rax, [0x14027b498]
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x14007e21a
call qword [0x140276c98]
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402b9148]
call fcn.1401a5bcc
cmp dword [0x1402b9148], 0xffffffff
jne 0x14007e189
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b9148]
call fcn.1401a5c34
jmp 0x14007e189
lea rcx, [0x1402b9148]
call fcn.1401a5bcc
cmp dword [0x1402b9148], 0xffffffff
jne 0x14007e1cb
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b9148]
call fcn.1401a5c34
jmp 0x14007e1cb
lea rcx, [0x1402b90c0]
call fcn.1401a5bcc
cmp dword [0x1402b90c0], 0xffffffff
jne 0x14007e1ff
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b90c0]
call fcn.1401a5c34
jmp 0x14007e1ff
Function at 0x14007e3b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, r8
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp rdx, 0xffffffffffffffff
je case.default.0x14007e3f2
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov eax, eax
lea rcx, [0x14007e5c0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14007e56e
pxor xmm0, xmm0
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
movabs rax, 0xffff00000009
jmp 0x14007e51c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x14007e3f2
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x48]
movdqu xmm0, xmmword [rsp + 0x2c]
pshufd xmm0, xmm0, 0xb1
pshufd xmm1, xmmword [rsp + 0x20], 0x50
movdqu xmmword [rdi], xmm0
movq xmm0, qword [rsp + 0x40]
pand xmm1, xmmword [0x14023d190]
pxor xmm2, xmm2
pcmpeqd xmm2, xmm1
movdqa xmm1, xmm2
pandn xmm1, xmmword [0x14023d1a0]
pand xmm2, xmmword [0x14023d1b0]
por xmm2, xmm1
punpcklqdq xmm0, xmm2
movdqu xmmword [rdi + 0x10], xmm0
mov dword [rdi + 0x20], ecx
mov dword [rdi + 0x24], eax
mov rax, qword [rsp + 0x4c]
mov qword [rdi + 0x28], rax
jmp 0x14007e525
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
pxor xmm0, xmm0
cmp ecx, 2
jne 0x14007e4c8
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x18], 1
jmp 0x14007e562
cmp eax, 0x20
jne 0x14007e559
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x18], 9
jmp 0x14007e562
pxor xmm0, xmm0
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
movabs rax, 0xffff00000006
jmp 0x14007e51c
pxor xmm0, xmm0
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
movabs rax, 0xffff00000007
mov qword [rdi + 0x18], rax
movdqu xmmword [rdi + 0x20], xmm0
mov dword [rsi], 0
mov eax, dword [0x1402b90c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007e590
lea rax, [0x14027b498]
mov qword [rsi + 8], rax
jmp 0x14007e578
movdqu xmmword [rdi + 0xc], xmm0
movdqu xmmword [rdi], xmm0
mov dword [rdi + 0x1c], 0xffff
movdqu xmmword [rdi + 0x20], xmm0
mov rcx, rsi
mov edx, eax
call fcn.14008e840
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402b90c0]
call fcn.1401a5bcc
cmp dword [0x1402b90c0], 0xffffffff
jne 0x14007e54c
lea rcx, [fcn.140005fc0]
call fcn.1401a5e00
lea rcx, [0x1402b90c0]
call fcn.1401a5c34
jmp 0x14007e54c
Function at 0x14007e960
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14007e9dc
mov rax, qword [rsi]
cmp rax, 2
jae 0x14007e9f1
mov dil, 1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test dil, dil
jne 0x14007e9d2
cmp dword [rsi + 0x18], 1
jne 0x14007e9d2
mov eax, dword [0x1402b93b8]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007ea2d
cmp byte [0x1402b93b5], 0
je 0x14007e9d2
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401a5de0
nop
add rsp, 0x48
pop rdi
pop rsi
ret
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x14007e98a
cmp rax, 0x40
jb 0x14007e98a
mov edx, dword [rcx + 0x3c]
cmp rax, rdx
cmovb rdx, rax
sub rax, rdx
cmp rax, 4
jb 0x14007e98a
cmp dword [rcx + rdx], 0x4550
jne 0x14007e98a
xor edi, edi
jmp 0x14007e98d
lea rcx, [0x1402b93b8]
call fcn.1401a5bcc
cmp dword [0x1402b93b8], 0xffffffff
jne 0x14007e9bf
movaps xmm0, xmmword [0x14023d1c0]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.140082340
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400809d0
mov byte [0x1402b93b5], al
lea rcx, [0x1402b93b8]
call fcn.1401a5c34
jmp 0x14007e9bf

Function at 0x14007ea90
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a5de0
mov eax, esi
add rsp, 0x60
pop rsi
ret
Function at 0x14007f4f0
Capabilities:
Timestomp file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov eax, r9d
mov rsi, rcx
mov edi, dword [rsp + 0xf0]
mov rcx, qword [0x14027c048]
xor rcx, rsp
mov qword [rsp + 0xa8], rcx
mov r9d, 4
test dil, 4
jne 0x14007f533
movsxd rcx, r8d
lea r8, [0x14023d2b8]
mov r9d, dword [r8 + rcx*4]
bswap eax
mov ecx, eax
and ecx, 0x1000000
shl ecx, 7
shl eax, 5
and eax, 0x40000000
or eax, ecx
mov ecx, edi
and ecx, 8
shl ecx, 0xd
or ecx, eax
mov eax, edi
and eax, 0x20
lea eax, [rcx + rax*8]
mov ecx, edi
and ecx, 0x10
shr ecx, 4
mov byte [rsp + 0x30], cl
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x90]
lea r8, [rsp + 0xa0]
call fcn.14007f680
cmp dword [rsp + 0x90], 0
je 0x14007f5c3
movups xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x88]
lea rdx, [rsp + 0x70]
call fcn.14001f170
or byte [rsi + 8], 1
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
jmp 0x14007f619
test dil, 0x20
jne 0x14007f5d3
mov rdi, qword [rsp + 0xa0]
jmp 0x14007f612
lea rdi, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rdi, qword [rsp + 0xa0]
test eax, eax
je 0x14007f637
lea r8, [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x14007f637
and byte [rsi + 8], 0xfe
mov qword [rsi], rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov edx, ebx
call fcn.14008e840
lea rcx, [rsp + 0x50]
mov rdx, rdi
call fcn.14001f170
or byte [rsi + 8], 1
mov rax, qword [rsp + 0x50]
jmp 0x14007f5be

Function at 0x14007fce0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov r10, rdx
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [r8 + 8]
mov eax, 0xffffffff
cmp rcx, rax
cmovb rax, rcx
mov dword [rsp + 0x4c], 0
mov rdx, qword [r8]
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x4c]
mov rcx, r10
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007fd52
and byte [rsi + 8], 0xfe
mov eax, dword [rsp + 0x4c]
mov qword [rsi], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14007fd30
cmp eax, 0x26
je 0x14007fd30
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, eax
call fcn.14008e840
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14001f170
or byte [rsi + 8], 1
mov rax, qword [rsp + 0x40]
jmp 0x14007fd38
Function at 0x1400802e0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
xor edi, edi
lea r9, [rsp + 0x38]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140080365
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [0x140276d20]
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x28]
mov edx, 0xfde9
mov r8, rdi
mov r9, rax
call fcn.140080500
mov edi, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x140080358
xor edi, edi
jmp 0x140080365
mov rcx, rsi
xor edx, edx
call fcn.140078cb0
mov dil, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401a5de0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140081030
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1402b93c0]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008108a
and byte [rsi + 8], 0xfe
mov eax, dword [0x1402b93bc]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a5de0
mov rax, rsi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1402b93c0]
call fcn.1401a5bcc
cmp dword [0x1402b93c0], 0xffffffff
jne 0x140081068
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x2c]
mov dword [0x1402b93bc], eax
lea rcx, [0x1402b93c0]
call fcn.1401a5c34
jmp 0x140081068
Function at 0x140082230
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x14027c048]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14008229a
mov rdi, qword [rsp + 0x28]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, eax
mov esi, dword [rsp + 0x40]
test rdi, rdi
je 0x140082296
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x1400822c3
mov eax, dword [0x1402b93c8]
mov ecx, dword [0x1402b92f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400822da
call qword [0x140276d38]
mov esi, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401a5de0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402b93c8]
call fcn.1401a5bcc
cmp dword [0x1402b93c8], 0xffffffff
jne 0x1400822bb
lea rsi, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x3c]
mov r8, rsi
call fcn.1400824d0
mov ecx, dword [rsp + 0x30]
call qword [0x140276d40]
lea rcx, [0x1402b93c8]
call fcn.1401a5c34
jmp 0x1400822bb