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

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14013f53c
xor eax, eax
jmp 0x14013f5ff
mov rbp, rbx
cmp word [rax], si
je 0x14013f561
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013f548
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013f544
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14013c374
movsxd r14, eax
test eax, eax
jne 0x14013f59f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14013f535
mov rcx, r14
call fcn.140138008
mov rdi, rax
test rax, rax
jne 0x14013f5b8
xor ecx, ecx
call fcn.140137178
jmp 0x14013f594
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14013c374
test eax, eax
jne 0x14013f5e9
mov rcx, rdi
call fcn.140137178
jmp 0x14013f5f3
xor ecx, ecx
call fcn.140137178
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14013f61c
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 0x14013f6a3
mov rsi, rbx
cmp word [rax], bp
je 0x14013f662
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14013f64c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14013f648
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140138008
mov rdi, rax
test rax, rax
je 0x14013f690
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140118430
mov rbp, rdi
xor ecx, ecx
call fcn.140137178
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 0x140142714
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401368ec
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401427b5
cmp ebx, dword [rsp + 0x30]
je 0x1401427ae
test esi, esi
je 0x1401427ae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140142789
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140142796
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140142773
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14014279a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401427b7
mov eax, 1
jmp 0x1401427b7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140144ed8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14018a240]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140144f22
call fcn.140123798
mov dword [rax], select
call fcn.1401237b8
mov dword [rax], select
call fcn.14011cfa4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140116030
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140144f2d
lea eax, [rbx + 1]
jmp 0x140144f0f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140144f0d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140144f0f
Function at 0x1401454ac
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140123944
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140145536
cmp byte [rbp - 0x21], r15b
je 0x140145531
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14014556c
call fcn.1401374d4
test eax, eax
jne 0x140145558
cmp byte [rbp - 0x21], r15b
je 0x140145550
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14014556c
cmp byte [rbp - 0x21], r15b
je 0x140145569
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140130338
test eax, eax
jne 0x14014560c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140123944
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401455ab
cmp byte [rbp - 0x21], r15b
je 0x1401455e0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401455e0
call fcn.1401374d4
test eax, eax
jne 0x1401455cc
cmp byte [rbp - 0x21], r15b
je 0x1401455c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401455e0
cmp byte [rbp - 0x21], r15b
je 0x1401455dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140130338
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14014560c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14014560f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14014561d
mov rcx, rdi
call fcn.140137178
cmp byte [rbp + 0x3f], r15b
je 0x14014562c
mov rcx, qword [rbp + 0x27]
call fcn.140137178
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400095b4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000962c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000962c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000962c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140009620
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000963e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000960e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000962e

Function at 0x14000a8a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a8ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a8ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a8ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a8ea
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a8ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a8ec
xor al, al
add rsp, 0x28
ret
Function at 0x140a9f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a9f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a9f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a9f06f
add dl, dl
jne 0x140a9f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a9f0f6
xor eax, eax
add dl, dl
jne 0x140a9f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a9f1ad
add dl, dl
jne 0x140a9f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a9f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a9f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a9f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a9f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a9f07e
mov eax, 1
add dl, dl
jne 0x140a9f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a9f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a9f0fb
sub eax, ebx
mov ebx, 1
jne 0x140a9f14c
mov ecx, 1
add dl, dl
jne 0x140a9f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a9f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a9f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a9f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a9f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a9f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a9f15d
cmp eax, 0x7d00
jae 0x140a9f19b
cmp eax, 0x500
jb 0x140a9f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a9f07e
cmp eax, 0x7f
ja 0x140a9f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a9f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a9f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a9f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400292ec
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.14001c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002943c
cmp rax, 0xffffffffffffffff
je 0x14002943c
xor edi, edi
test rbp, rbp
jle 0x1400293e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2e0
mov rbx, rax
test rax, rax
jne 0x140029374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400293dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a2e8
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.14001d690
cmp eax, 0xffffffff
je 0x1400293bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029384
mov edx, r15d
mov ecx, r14d
call fcn.14001a2e8
jmp 0x1400293dd
cmp byte [rsi + 0x38], dil
je 0x1400293d4
cmp dword [rsi + 0x34], 5
jne 0x1400293d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400293dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b07c
jmp 0x140029450
jns 0x140029450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c9b4
cmp rax, 0xffffffffffffffff
jne 0x140029408
cmp byte [rsi + 0x30], dil
je 0x140029450
mov edi, dword [rsi + 0x2c]
jmp 0x140029450
mov ecx, r14d
call fcn.1400187a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029450
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 0x140029450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029449
mov eax, dword [rsi + 0x2c]
jmp 0x14002944e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c9b4
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 0x1400026d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140046360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002749
mov rcx, r10
call fcn.1400025a0
test eax, eax
je 0x140002749
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002746
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000273d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002749
add r8, 0x28
cmp r8, r9
jne 0x140002728
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001c2c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
and dword [rsp + 0x20], ebp
mov rsi, rdx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbp + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140001cb8
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140001cb8
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov rdx, rax
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
lfence
test eax, eax
jns 0x140001ce2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140001e40
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edi, edi
cmp dword [rbx], edi
jbe 0x140001da4
mov eax, edi
lea rcx, [rsp + 0x30]
imul rax, rax, 0x128
mov edx, 2
add rax, 8
add rax, rbx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140001d06
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.140001db8
mov rcx, rax
mov rdx, r14
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140001d94
inc edi
cmp edi, dword [rbx]
jb 0x140001cec
jmp 0x140001da4
mov rbp, qword [rsp + 0x40]
test rsi, rsi
je 0x140001da4
mov ecx, dword [rsp + 0x48]
mov dword [rsi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
jmp 0x140001cba
Function at 0x10006710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
call fcn.100c1a60
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetFileAttributesW
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.100c1d30
mov eax, dword [rbp - 0x1c]
cmp eax, 0xffffffff
je 0x10006777
mov dword [rbp - 0x18], 1
jmp 0x10006778
nop
mov eax, dword [rbp - 0x18]
leave
ret

Function at 0x1000677d
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push rbp
mov rbp, rsp
push rdi
sub rsp, 0x448
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x20], 0
mov dword [rbp - 0x24], 0
lea rax, [rbp - 0x430]
mov r8, rax
mov eax, 0
mov edx, pe_nt_image_headers64
mov rdi, r8
mov rcx, rdx
rep stosq qword [rdi], rax
lea rax, [rbp - 0x430]
mov r9, 0xffffffffffffffff
mov r8, qword [rbp + 0x10]
mov edx, 0x200
mov rcx, rax
call fcn.100c1240
lea rax, [rbp - 0x430]
mov rcx, rax
call sub.KERNEL32.dll_DeleteFileW
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
test eax, eax
jne 0x1000684c
lea rax, [rbp - 0x430]
mov rcx, rax
call sub.KERNEL32.dll_GetFileAttributesW
mov dword [rbp - 0x18], eax
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x24], eax
lea rax, [rbp - 0x430]
mov edx, pe_nt_image_headers64
mov rcx, rax
call sub.KERNEL32.dll_SetFileAttributesW
lea rax, [rbp - 0x430]
mov rcx, rax
call sub.KERNEL32.dll_DeleteFileW
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x10006849
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x20], eax
jmp 0x10006853
nop
jmp 0x10006853
nop
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x20]
add rsp, 0x448
pop rdi
pop rbp
ret
Function at 0x10006a9b
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0x34], 0
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x44], 0
mov dword [rbp - 0x48], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
call fcn.100c1a60
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000000
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call sub.KERNEL32.dll_CreateFileW
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.100c1d30
mov rax, qword [rbp - 0x40]
test eax, eax
jle 0x10006bd5
mov rax, qword [rbp - 0x40]
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_GetFileSize
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp - 0x48]
mov eax, eax
mov rcx, rax
call fcn.100c0cb0
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp + 0x18]
mov dword [rsp + 0x20], 0
mov r9, 0xffffffffffffffff
mov r8, rdx
mov rdx, 0xffffffffffffffff
mov rcx, rax
call fcn.100bf4b0
mov qword [rbp - 0x30], rax
mov ecx, dword [rbp - 0x48]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x40]
lea r8, [rbp - 0x44]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sub.KERNEL32.dll_ReadFile
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [rbp - 0x44]
mov dword [rbp - 0x34], eax
jmp 0x10006bd6
nop
mov eax, dword [rbp - 0x34]
leave
ret
Function at 0x10007d1d
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x4c], 0
mov qword [rbp - 0x58], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleA
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x68], 0
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x60]
add rax, 0x10
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x68]
mov rax, qword [rax]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x78]
add rax, 0x30
mov rdx, qword [rax]
mov rax, qword [rbp - 0x58]
cmp rdx, rax
jne 0x10007e53
mov rdx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x78]
add rax, 8
mov rax, qword [rax]
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x78]
mov rdx, qword [rdx]
add rdx, 8
mov rax, qword [rax + 8]
mov qword [rdx], rax
mov rdx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x78]
add rax, 0x28
mov rax, qword [rax]
mov rdx, qword [rdx + 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x78]
add rdx, 0x20
mov rdx, qword [rdx]
add rdx, 8
mov rax, qword [rax + 0x28]
mov qword [rdx], rax
mov rdx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x78]
add rax, 0x18
mov rax, qword [rax]
mov rdx, qword [rdx + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x78]
add rdx, 0x10
mov rdx, qword [rdx]
add rdx, 8
mov rax, qword [rax + 0x18]
mov qword [rdx], rax
jmp 0x10007e72
nop
mov rax, qword [rbp - 0x70]
mov rax, qword [rax]
mov qword [rbp - 0x70], rax
mov rdx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x70]
cmp rdx, rax
je 0x10007e71
jmp 0x10007da6
nop
mov dword [rbp - 0x4c], 1
mov eax, dword [rbp - 0x4c]
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x100081b3
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 0x5c], 0
lea rcx, [0x10008333]
call fcn.100be8a0
lea rax, [rbp - 0x80]
mov qword [rax], 0
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov qword [rbp - 0x88], 0
mov edx, 1
lea rcx, [0x100c7032]
call fcn.100c0e30
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov r8, rax
mov rdx, qword [rbp + 0x10]
mov ecx, 1
call fcn.100c0830
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
sub rax, 1
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.100c0b20
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x20], 0
mov r9, 0xffffffffffffffff
mov r8, rdx
mov rdx, 0xffffffffffffffff
mov rcx, rax
call fcn.100bf4b0
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x80]
mov rax, qword [rax]
mov rcx, rax
call fcn.100c1a60
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov rcx, rax
call fcn.100c1a60
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rcx, rax
call fcn.100c1a60
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x50]
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, rdx
lea rdx, str.open
mov ecx, 0
call sub.SHELL32.dll_ShellExecuteW
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x88], rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
call fcn.100c1d30
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.100c1d30
mov rax, qword [rbp - 0x50]
mov rcx, rax
call fcn.100c1d30
mov rax, qword [rbp - 0x88]
mov dword [rbp - 0x5c], eax
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.100c0370
mov eax, dword [rbp - 0x5c]
leave
ret