joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010458
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x40
mov eax, r9d
mov rsi, r8
mov r9, r8
mov qword [r11 - 0x28], rax
mov r8, rdx
mov rbx, rdx
mov rdx, rcx
mov rdi, rcx
lea rcx, [0x140046940]
call fcn.14000fa54
test al, al
je 0x140010499
xor eax, eax
jmp 0x1400104ef
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140010dc4
mov rdi, rax
test rax, rax
je 0x1400104e9
mov rcx, rsi
call fcn.1400018c0
mov rdx, rax
mov r9d, 4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140010f30
jmp 0x1400104ed
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140010534
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, dword [rsp + 0xa8]
mov rdi, r9
mov r12, qword [rsp + 0xa0]
mov r13, r8
mov qword [rax - 0x48], r14
mov rbx, rdx
mov qword [rax - 0x50], r12
mov rsi, rcx
mov qword [rax - 0x58], r9
mov r9, r8
mov r8, rdx
mov rdx, rcx
call fcn.14000fc20
test al, al
je 0x140010591
mov al, 1
jmp 0x14001062f
mov rdx, rbx
mov rcx, rsi
call fcn.140010e90
xor sil, sil
mov rbp, rax
test rax, rax
je 0x14001061e
lea ecx, [r14 + r14]
mov dword [rsp + 0xa8], ecx
mov rcx, r13
call fcn.1400018c0
mov rdx, rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0xa8]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r13d, r13d
mov rcx, rbp
test eax, eax
mov ebx, eax
sete sil
call fcn.140010f30
test ebx, ebx
jne 0x140010619
mov ecx, dword [rsp + 0xa8]
shr ecx, 1
test r14d, r14d
jne 0x14001060b
mov word [rdi], r13w
jmp 0x140010619
lea eax, [r14 - 1]
cmp ecx, eax
cmovb eax, ecx
mov word [rdi + rax*2], r13w
test sil, sil
jne 0x14001062c
mov r8, r14
mov rdx, r12
mov rcx, rdi
call fcn.14000dfd8
mov al, sil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140010758
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
jmp 0x140010768
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov edi, r9d
mov qword [r11 - 0x20], rax
lea rcx, [0x140046940]
mov dword [r11 - 0x28], r9d
mov rbp, r8
mov r9, r8
mov rbx, rdx
mov r8, rdx
mov rsi, 0xffffffff80000001
mov rdx, rsi
call fcn.14000fe04
test al, al
jne 0x140010814
mov rdx, rbx
mov rcx, rsi
call fcn.140010e90
mov dword [rsp + 0x50], 4
mov rsi, rax
test rax, rax
je 0x140010818
mov rcx, rbp
call fcn.1400018c0
mov rdx, rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call fcn.140010f30
test ebx, ebx
jne 0x140010818
cmp dword [rsp + 0x50], ebx
je 0x140010818
mov edi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140010768
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
jmp 0x140010768
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov edi, r9d
mov qword [r11 - 0x20], rax
lea rcx, [0x140046940]
mov dword [r11 - 0x28], r9d
mov rbp, r8
mov r9, r8
mov rbx, rdx
mov r8, rdx
mov rsi, 0xffffffff80000001
mov rdx, rsi
call fcn.14000fe04
test al, al
jne 0x140010814
mov rdx, rbx
mov rcx, rsi
call fcn.140010e90
mov dword [rsp + 0x50], 4
mov rsi, rax
test rax, rax
je 0x140010818
mov rcx, rbp
call fcn.1400018c0
mov rdx, rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call fcn.140010f30
test ebx, ebx
jne 0x140010818
cmp dword [rsp + 0x50], ebx
je 0x140010818
mov edi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140010830
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x14003adb0]
lea rcx, [rsp + 0x40]
call fcn.140001b9c
nop
lea r9, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.14000fe34
mov bl, al
lea rcx, [rsp + 0x40]
call fcn.140002050
test bl, bl
jne 0x1400108dd
lea rcx, [rsp + 0x20]
call fcn.1400024c0
nop
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.140010fb8
test al, al
je 0x1400108d3
lea rcx, [rsp + 0x20]
call fcn.1400018c0
mov r8d, dword [0x14004a990]
mov rdx, rax
mov rcx, rdi
test r8d, r8d
jne 0x1400108c9
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400108d3
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop
lea rcx, [rsp + 0x20]
call fcn.140002050
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400143d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400108fc
Capabilities:
Delete registry value

Disassembly:
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.140010910

Function at 0x140010910
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov r9, r8
mov r8, rdx
mov rdx, rcx
call fcn.14000fe34
test al, al
jne 0x1400109b9
lea rcx, [rsp + 0x38]
call fcn.1400024c0
nop
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, rbx
call fcn.140010fb8
test al, al
je 0x1400109af
lea rcx, [rsp + 0x38]
call fcn.1400018c0
mov rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400109af
mov rcx, rdi
call fcn.1400018c0
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call fcn.140010f30
nop
lea rcx, [rsp + 0x38]
call fcn.140002050
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400143d0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400109d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
call fcn.140010e90
mov rdi, rax
test rax, rax
je 0x140010a28
mov rcx, rbx
call fcn.1400018c0
mov rdx, rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rcx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov ebx, eax
call fcn.140010f30
test ebx, ebx
jne 0x140010a28
mov eax, dword [rsp + 0x58]
jmp 0x140010a2a
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140010b54
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140009cf0
test eax, eax
jne 0x140010b7d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140010b98
and dword [0x140046774], 0
mov rdx, rbx
mov rcx, rdi
call fcn.140010ba4
cmp dword [0x140046774], 0
jne 0x140010b7d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140010ba4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor r14d, r14d
mov rbx, rdx
mov rdi, rcx
cmp word [rdx], r14w
je 0x140010c9f
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010c9f
mov esi, r14d
xor edx, edx
jmp 0x140010c45
lea rax, [rsp + 0x60]
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x200
lea rcx, [rbp + 0xf0]
call fcn.140007250
lea rdx, [rbp + 0xf0]
mov rcx, rdi
call fcn.140010ba4
inc esi
mov edx, esi
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], 0xc8
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010c0d
mov rcx, qword [rsp + 0x48]
call fcn.140010f30
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140010c9f
inc dword [0x140046774]
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400143d0
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x1400113c4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
mov dword [rax - 0x28], edi
mov edx, 0x105
lea rcx, [rax - 0x20]
call fcn.140001ebc
nop
lea rcx, [rsp + 0x28]
call fcn.140001bd0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140001bd8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, eax
test eax, eax
je 0x14001143c
lea rcx, [rsp + 0x28]
call fcn.140001bd8
cmp rdx, rax
ja 0x14001143c
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14000948c
cmp word [rax], di
je 0x14001143c
lea rcx, [rsp + 0x28]
call fcn.140001bd0
jmp 0x140011443
lea rax, str._rartemp_
mov rdx, rax
mov rcx, rbx
call fcn.140001b9c
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x28]
call fcn.140001be4
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140011d3c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rbx, rcx
call fcn.14000eaa4
mov rdx, rbx
call fcn.14000d818
lea rdx, str.uninstall.lng
lea rcx, [rsp + 0x78]
call fcn.140001b9c
nop
lea rdx, [rsp + 0x78]
call fcn.14000b994
nop
lea rcx, [rsp + 0x78]
call fcn.140002050
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, str.riched20.dll
call fcn.14000eaf8
mov rbx, rax
lea rdx, str.RARICON
mov rcx, qword [0x140046760]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14004a998], rax
xor edi, edi
test rax, rax
jne 0x140011dfb
mov rcx, qword [0x140046768]
cmp rcx, qword [0x140046760]
je 0x140011dfb
lea rdx, str.RARICON
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x14004a998], rax
call fcn.140011c90
mov ecx, eax
lea rax, str.MS_Shell_Dlg
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x2bc
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.GDI32.dll_CreateFontW]
mov qword [0x14004a9a0], rax
mov byte [rsp + 0x70], dil
mov byte [rsp + 0x71], dil
mov word [rbp - 0x60], di
mov r8d, 0x400
lea rdx, [rbp - 0x60]
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x78]
call fcn.140001b9c
nop
lea r9, [rsp + 0x71]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
mov cl, 1
call fcn.140011f9c
nop
lea rcx, [rsp + 0x78]
call fcn.140002050
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140001b9c
nop
lea r9, [rsp + 0x71]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
xor ecx, ecx
call fcn.140011f9c
nop
lea rcx, [rsp + 0x78]
call fcn.140002050
cmp byte [rsp + 0x70], dil
je 0x140011f35
mov qword [rsp + 0x20], rdi
lea r9, [0x1400122d0]
xor r8d, r8d
lea rdx, str.SETUPDLG
mov rcx, qword [0x140046760]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
test rax, rax
je 0x140011f35
call fcn.140013c2c
cmp byte [0x140046772], dil
jne 0x140011f35
mov qword [rsp + 0x20], rdi
lea r9, [0x140012720]
xor r8d, r8d
lea rdx, str.DONEDLG
mov rcx, qword [0x140046760]
call qword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [rsp + 0x71], dil
je 0x140011f41
call fcn.140012fd8
test rbx, rbx
je 0x140011f4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov rcx, qword [0x14004a9a0]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x14004a998]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x14004aa00]
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400143d0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140012668
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov bl, dl
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140001b9c
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000ab00
nop
lea rcx, [rsp + 0x50]
call fcn.140002050
test bl, bl
jne 0x1400126bd
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14000d954
lea rcx, [rsp + 0x30]
call fcn.1400018c0
mov r8, rax
mov dword [rsp + 0x28], 1
lea rax, [0x14003adb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg bl
lea rcx, [rsp + 0x30]
call fcn.140002050
mov al, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400143d0
add rsp, 0x80
pop rbx
ret

Function at 0x140012f04
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140001ebc
nop
lea rcx, [rsp + 0x20]
call fcn.140001bd8
mov r8, rax
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
mov rcx, rsi
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001bd8
cmp rbx, rax
jb 0x140012f9e
lea rcx, [rsp + 0x20]
call fcn.140001768
lea rcx, [rsp + 0x20]
call fcn.140001bd8
mov r8, rax
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
mov rcx, rsi
call fcn.1400018c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x140012fb9
lea rcx, [rsp + 0x20]
call fcn.140001bd0
mov rdx, rax
mov rcx, rdi
call fcn.1400011f8
test ebx, ebx
setne bl
lea rcx, [rsp + 0x20]
call fcn.140001be4
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140013b04
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rcx
xor ebx, ebx
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x48]
call fcn.1400024c0
nop
lea rcx, [rbp - 0x48]
call fcn.14000a5f4
lea r8, [rbp - 0x48]
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.14000a3d4
lea rcx, [rbp - 0x48]
call fcn.1400085e0
lea edi, [rbx + 1]
test al, al
jne 0x140013bf8
lea rcx, [rbp - 0x48]
call fcn.140007048
lea rdx, str.sfxname
lea rcx, [rbp - 0x28]
call fcn.140001b9c
nop
mov dword [rbp - 0x50], edi
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140012f04
test al, al
je 0x140013ba4
lea rcx, [rbp - 0x48]
call fcn.14000694c
test al, al
mov sil, bl
je 0x140013ba7
mov sil, dil
mov eax, edi
and eax, 0xfffffffe
mov dword [rbp - 0x50], eax
lea rcx, [rbp - 0x28]
call fcn.140002050
test sil, sil
jne 0x140013bf8
mov rdx, r14
lea rcx, [rbp - 0x48]
call fcn.14000a2e8
lea rcx, [rbp - 0x48]
call fcn.1400085e0
test al, al
je 0x140013bfb
mov rcx, r14
call fcn.1400018c0
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.1400018c0
mov r8d, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x140013bfe
mov bl, dil
mov dil, bl
lea rcx, [rbp - 0x48]
call fcn.140002050
mov al, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400143d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140015434
Capabilities:
Parse pe header

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

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

Function at 0x1400264d4
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.140015060
sub rsp, rax
mov rax, qword [0x140044038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140023ec0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140026523
mov rax, rbp
jmp 0x14002662b
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 + 0x45ec0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002617c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x45ec0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026627
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 0x140026627
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002617c
test rax, rax
js 0x140026627
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026627
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026619
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026619
cmp byte [rcx], 0xd
jne 0x1400265ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002660e
cmp byte [rcx + 1], 0xa
jne 0x14002660e
inc rcx
jmp 0x14002660e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x44960]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400265e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002662b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400143d0
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 0x140028340
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 0x140028370
xor eax, eax
jmp 0x140028433
mov rbp, rbx
cmp word [rax], si
je 0x140028395
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002837c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140028378
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.140028260
movsxd r14, eax
test eax, eax
jne 0x1400283d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140028369
mov rcx, r14
call fcn.140022c64
mov rdi, rax
test rax, rax
jne 0x1400283ec
xor ecx, ecx
call fcn.140022c28
jmp 0x1400283c8
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.140028260
test eax, eax
jne 0x14002841d
mov rcx, rdi
call fcn.140022c28
jmp 0x140028427
xor ecx, ecx
call fcn.140022c28
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 0x14002b8d4
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, [0x140045ec0]
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 0x14002b92b
cmp word [rdx], r13w
jne 0x14002b92b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002b930
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002ba55
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002ba76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002b969
mov rdx, r9
mov word [rbx], cx
jmp 0x14002b990
cmp r9, r8
jae 0x14002b9a0
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 0x14002b94a
jmp 0x14002ba55
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 0x14002ba4a
cmp dword [rsp + 0x80], esi
je 0x14002ba4a
lea r8, [0x140045ec0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002ba22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002b9f2
mov word [rbx], r13w
jmp 0x14002ba52
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 0x14002b9ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002ba52
cmp word [rsp + 0x70], r13w
jne 0x14002ba2f
cmp rbx, r14
je 0x14002b9ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140026184
cmp word [rsp + 0x70], r13w
je 0x14002ba55
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, [0x140045ec0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002ba4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002ba55