joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cb2c
Capabilities:
Get geographical location

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

Function at 0x14000db64
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1402fb0a0
sub rsp, rax
mov rax, qword [0x140344bc0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1402f6912
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402f68bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402f68b0
cmp rcx, 1
jb 0x1402f696a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402f68e0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14030a664
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402f68a0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1402f6943
lea rcx, [rsp + 0x80]
call fcn.14030d4a4
jmp 0x1402f6945
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1402fadd0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1402ff430
int3
Function at 0x1402fa950
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140344bc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x1402fa9f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402fa9ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402fa9a0
cmp rcx, 1
jb 0x1402faa26
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402fa9c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14030a664
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402fa990
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402fadd0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1402ff430
int3

Function at 0x1402fac60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140344bc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1402fad05
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402facbd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402facb0
cmp rcx, 1
jb 0x1402fad37
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402facd3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14030a664
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402faca0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402fadd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1402ff430
int3

Function at 0x1402fb804
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402fb84e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402fb84e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402fb84e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402fb84e
cmp dword [rcx + 0x84], 0xe
jbe 0x1402fb84e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1402fb850
xor al, al
add rsp, 0x28
ret
Function at 0x140300ca8
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 0x140300b13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140300b13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140300b13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140300b13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140300b13
cmp dword [rcx + 0x84], 0xe
jbe 0x140300b13
cmp dword [rcx + 0xf8], 0
je 0x140300b13
mov ecx, ebx
call fcn.140300bc4
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.1403009a0
nop
cmp dword [rbp + 0x20], 0
je 0x140300b61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140300b6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140300aa4
Function at 0x140312710
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 0x140312797
mov rsi, rbx
cmp word [rax], bp
je 0x140312756
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140312740
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14031273c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14030dc90
mov rdi, rax
test rax, rax
je 0x140312784
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140318a90
mov rbp, rdi
xor ecx, ecx
call fcn.14030e7d8
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 0x14031630c
Capabilities:
Get file size

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

Function at 0x140318870
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140318898
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140318898
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a500
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
mov edi, 0x28
test dl, dl
je 0x14000a5a5
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a55d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a550
cmp rcx, 1
jb 0x14000a5d6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a573
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000fc10
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a540
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c120
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000f8d4
int3
Function at 0x14000a660
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a6a5
xor al, al
jmp 0x14000a6f2
cmp word [rbx], 0
je 0x14000a6bd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a6b0
cmp word [rsp + 0x30], 0
je 0x14000a6eb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a713
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a6d0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c120
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f8d4
int3
Function at 0x14000b540
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b57b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b56e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b66e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029898]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b64f
test al, 0x10
je 0x14000b64f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b5f5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000ca14
Capabilities:
Parse pe header

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

Function at 0x14000f6c4
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 0x14000f733
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f733
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f733
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f733
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f733
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f733
cmp dword [rcx + 0xf8], 0
je 0x14000f733
mov ecx, ebx
call fcn.14000f7e4
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.14000f5c0
nop
cmp dword [rbp + 0x20], 0
je 0x14000f781
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f78c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f6c4

Function at 0x14000f8c8
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 0x14000f733
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f733
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f733
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f733
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f733
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f733
cmp dword [rcx + 0xf8], 0
je 0x14000f733
mov ecx, ebx
call fcn.14000f7e4
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.14000f5c0
nop
cmp dword [rbp + 0x20], 0
je 0x14000f781
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f78c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f6c4
Function at 0x140018cd8
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 0x140018d5f
mov rsi, rbx
cmp word [rax], bp
je 0x140018d1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018d08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018d04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016508
mov rdi, rax
test rax, rax
je 0x140018d4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001f8f0
mov rbp, rdi
xor ecx, ecx
call fcn.140015618
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 0x14001aecc
Capabilities:
Get file size

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

Function at 0x14001f160
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f188
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f188
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2265f951020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x330
mov rbx, rcx
cmp edx, 1
jne 0x2265f951170
xor r8d, r8d
mov edx, 0x96000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x2265f97ab68], rax
call fcn.2265f95cd14
mov rcx, rbx
mov qword [0x2265f979ff8], rbx
mov dword [0x2265f979ff0], 1
call fcn.2265f96ad44
mov edx, 0x288
lea rcx, [0x2265f973dd0]
mov r8d, 5
call fcn.2265f95cc5c
xor r8d, r8d
mov qword [0x2265f979fe8], rax
mov edx, 0x1d0
lea rcx, [0x2265f973f20]
call fcn.2265f95cc5c
mov ecx, 0x5b2
mov qword [0x2265f979fe0], rax
call fcn.2265f95dae8
mov rcx, rax
mov qword [rsp + 0x358], rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x358]
cmp eax, 0xffffffff
je 0x2265f9510db
call fcn.2265f95da84
xor eax, eax
jmp 0x2265f95115f
call fcn.2265f95da84
xor ebx, ebx
mov edi, 0x14
movzx eax, word [0x2265f97400c]
lea rcx, [rsp + 0x33]
mov word [rsp + 0x30], ax
xor edx, edx
mov al, byte [0x2265f97400e]
mov r8d, 0xfd
mov byte [rsp + 0x32], al
call sub.msvcrt.dll_memset
xor edx, edx
mov word [rsp + 0x130], bx
mov r8d, 0x1fe
lea rcx, [rsp + 0x132]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x130]
mov dword [rsp + 0x28], 0xff
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
sub rdi, 1
jne 0x2265f9510e7
mov eax, 1
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rdi
ret
test edx, edx
jne 0x2265f95115a
mov rax, qword [0x2265f979fe8]
mov ecx, 0xaa
call qword [rax + 0x178]
jmp 0x2265f9510d4
Function at 0x2265f9511b4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rcx, qword [0x2265f97ab68]
xor ebx, ebx
test rcx, rcx
jne 0x2265f9511d3
mov edi, ebx
jmp 0x2265f9511e5
mov edx, 8
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov rcx, qword [0x2265f97a050]
cmp word [rcx + 0x242], 0x3a
jne 0x2265f95122a
movzx eax, word [rcx + 0x240]
mov word [rsp + 0x20], ax
movzx eax, word [rcx + 0x242]
mov word [rsp + 0x22], ax
movzx eax, word [rcx + 0x244]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x24], ax
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov qword [rdi], 2
lea r14, [rdi + 8]
call fcn.2265f9532f8
mov ecx, 0xd2b
mov qword [r14], rax
call fcn.2265f95dae8
mov rcx, qword [0x2265f97a050]
xor r8d, r8d
add rcx, 0x240
mov qword [rsp + 0x68], rax
mov rdx, rax
call fcn.2265f95d2e0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rsi, rax
call fcn.2265f95da84
mov rax, qword [0x2265f979fe8]
mov rcx, rsi
call qword [rax + 0x110]
cmp eax, 0xffffffff
je 0x2265f9512ba
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.2265f965460
test rax, rax
jne 0x2265f9512a3
mov rax, rbx
jmp 0x2265f9512ab
mov rcx, rax
call fcn.2265f95f74c
lea rsi, [rdi + 0x10]
mov dword [rdi], 3
mov qword [rsi], rax
jmp 0x2265f9512be
lea rsi, [rdi + 0x10]
mov rdx, 0xfffffffffffffffe
lea rcx, [rsp + 0x70]
call fcn.2265f95c7c4
mov rcx, qword [r14]
test rcx, rcx
je 0x2265f951300
mov r8d, dword [rcx]
mov eax, ebx
test r8d, r8d
je 0x2265f951300
mov rdx, qword [rcx + 8]
mov ecx, eax
add rcx, rcx
cmp dword [rdx + rcx*8], 0x3b
je 0x2265f9512f9
inc eax
cmp eax, r8d
jb 0x2265f9512e5
jmp 0x2265f951300
cmp qword [rdx + rcx*8 + 8], rbx
jne 0x2265f95130e
call fcn.2265f9531cc
test eax, eax
je 0x2265f95130e
or ebx, 0xffffffff
jmp 0x2265f951316
mov rcx, rdi
call fcn.2265f9522e4
mov rcx, r14
call fcn.2265f95f868
mov rcx, rsi
call fcn.2265f95f868
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret