joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038770
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x14003c210
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14003b7d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14003c277
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1400602f8]
jmp 0x14003c299
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14003c5a0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x14003f8c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14005d360
sub rsp, rax
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14007fb40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14003fab2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14003fa06
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14003fa06
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14003f9eb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14003f988
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003fa72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14003fad1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14003faad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14003fad1
jmp 0x14003f95e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140009cc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14003faf0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14005d360
sub rsp, rax
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14007fb40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14003fcfd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14003fc49
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14003fc49
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14003fc29
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14003fbb8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003fcbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14003fd1c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14003fcf8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14003fd1c
jmp 0x14003fb8e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140009cc0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14004de50
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400040a0
lea rcx, [rsp + 0x40]
call fcn.14004de10
movzx eax, al
test eax, eax
jne 0x14004de98
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14004dd40
mov rax, qword [rsp + 0x70]
jmp 0x14004e069
lea rcx, [rsp + 0x40]
call fcn.140009580
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14004ddc0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140009580
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14004a020
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14004df3e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14004dd40
mov rax, qword [rsp + 0x80]
jmp 0x14004e069
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14001a4a0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400040a0
lea rcx, [rsp + 0x48]
call fcn.140009c60
movzx eax, al
test eax, eax
jne 0x14004dfa5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140009c40
lea rcx, [rsp + 0x40]
call fcn.14004dd40
mov rax, qword [rsp + 0x88]
jmp 0x14004e069
lea rcx, [rsp + 0x48]
call fcn.140009580
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140009580
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14004a020
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14004e03b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140009c40
lea rcx, [rsp + 0x40]
call fcn.14004dd40
mov rax, qword [rsp + 0xa0]
jmp 0x14004e069
lea rcx, [rsp + 0x48]
call fcn.14000ce30
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140009c40
lea rcx, [rsp + 0x40]
call fcn.14004dd40
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14005b200
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14002f140
lea rcx, [rsp + 0x48]
call fcn.14002f140
call fcn.140038460
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14002f030
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14005b26f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14002f1d0
lea rcx, [rsp + 0x78]
call fcn.14002f1d0
mov eax, dword [rsp + 0x24]
jmp 0x14005b300
call fcn.140038460
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14002f030
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14005b2b6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14002f1d0
lea rcx, [rsp + 0x78]
call fcn.14002f1d0
mov eax, dword [rsp + 0x2c]
jmp 0x14005b300
lea rcx, [rsp + 0x48]
call fcn.14002f4f0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14002f4f0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14002f1d0
lea rcx, [rsp + 0x78]
call fcn.14002f1d0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140001564
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1080
call fcn.14000c9b0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000161d
mov ecx, eax
call fcn.1400054b0
xor esi, esi
test al, al
je 0x14000161d
mov ecx, ebx
call fcn.1400054c0
test al, al
jne 0x14000161d
mov r8d, 0x800
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140008ca4
lea rcx, [rsp + 0x60]
call fcn.140017958
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140001642
xor edx, edx
mov word [rsp + rax + 0x60], si
lea r8d, [rsi + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000d8c0
lea eax, [rsi + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000ca10
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000c704
int3

Function at 0x14000169c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov eax, r8d
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x104
jb 0x1400016dc
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, eax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400016dc
mov bl, 1
jmp 0x1400016ee
mov r8, rdi
lea rdx, str.unknown_folder
mov rcx, rsi
call fcn.140008ca4
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001a78
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdi, [0x140029a08]
mov rbx, rcx
mov rdx, rdi
lea rcx, str.Setup.rar
call fcn.14000a814
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lz
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0xe]
lea rcx, str.Setup.xz
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0xf]
lea rcx, str.Setup.zipx
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x10]
lea rcx, str.Setup.zst
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x11]
lea rcx, str.Setup.001
mov rdx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
mov rcx, rdi
lea rdx, str.Desktop
call fcn.14000a814
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
mov rcx, rdi
lea rdx, str.ShellExt
call fcn.14000a814
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
call fcn.14000a814
movzx r8d, byte [rbx + 0x1a]
lea rdx, str.LegacyMenu
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000a814
Function at 0x1400029f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.14000c9b0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0xf90], rax
movzx ebx, cl
call fcn.14000a67c
test al, al
je 0x140002b19
mov r8d, 0x800
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x800
lea rdx, str.RarExtPackage.msix
lea rcx, [rbp - 0x70]
call fcn.140006cd4
lea rcx, [rbp - 0x70]
call fcn.140005388
test al, al
je 0x140002b19
mov r8d, 0x800
lea rdx, str.RarExtInstaller.exe
lea rcx, [rbp - 0x70]
call fcn.140006cd4
lea rcx, [rbp - 0x70]
call fcn.140005388
test al, al
je 0x140002b19
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.14000d8c0
mov dword [rsp + 0x20], 0x70
test bl, bl
jne 0x140002aad
or dword [rsp + 0x24], 0x40
lea rax, [rbp - 0x70]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], rax
lea rcx, str._install
test bl, bl
lea rax, str._Uninstall
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140002b03
test bl, bl
jne 0x140002b03
mov rcx, qword [rbp - 0x78]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
lea rdx, str.NewContextMenu
lea rcx, str.Setup
call fcn.14000a814
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.14000ca10
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x10a0
pop rbp
ret
Function at 0x14000332c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx r8d, byte [rdx]
mov rbx, rdx
mov edx, 0x13ed
mov rsi, rcx
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 1]
mov edx, 0x13ee
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 2]
mov edx, 0x13ef
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 3]
mov edx, 0x13f0
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 4]
mov edx, 0x13fb
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 5]
mov edx, 0x13f1
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 6]
mov edx, 0x13f2
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 7]
mov edx, 0x13f3
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 8]
mov edx, 0x13f4
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 9]
mov edx, 0x13f5
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xa]
mov edx, 0x13f6
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xb]
mov edx, 0x13f7
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xc]
mov edx, 0x13f8
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xd]
mov edx, 0x13fa
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xe]
mov edx, 0x13f9
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0xf]
mov edx, 0x13fc
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x10]
mov edx, 0x13fd
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x11]
mov edx, 0x13fe
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x14]
mov edx, 0x13ff
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x15]
mov edx, 0x1400
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x16]
mov edx, 0x1401
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x17]
mov edx, 0x1402
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x18]
mov edx, 0x1403
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x19]
mov edi, 0x1404
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
movzx r8d, byte [rbx + 0x1a]
lea edx, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckDlgButton]
mov r8b, byte [rbx + 0x17]
lea edx, [rdi - 1]
mov rcx, rsi
call fcn.1400010c0
mov r8b, byte [rbx + 0x17]
mov edx, edi
mov rcx, rsi
call fcn.1400010c0
xor edi, edi
cmp byte [rbx + 0x17], dil
je 0x140003549
call fcn.1400061e8
test al, al
je 0x140003549
mov dil, 1
mov r8b, dil
mov edx, 0x1405
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400010c0
Function at 0x140003ec8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140003f0f
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
test cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140003edd
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140003ed4
ret

Function at 0x140004724
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000475b
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140004747
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140029578]
cmp byte [rbx + 0x21], 0
je 0x14000475b
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.140005304
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140004764
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140004796
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140004813
mov rcx, rbx
call fcn.1400048a0
test al, al
je 0x1400047d9
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x1400047d9
mov rdx, rbp
mov rcx, rbx
call fcn.140004764
jmp 0x140004817
cmp dword [rbx + 0x14], 1
jne 0x1400047ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400047ee
xor eax, eax
jmp 0x140004817
cmp dword [rbx + 0x14], 0
jne 0x14000480e
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000480e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000480e
mov r8d, edi
jmp 0x1400047cc
or eax, 0xffffffff
jmp 0x140004817
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004ed8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov rsi, rcx
test r8, r8
jne 0x140004f05
mov al, 1
jmp 0x1400050a1
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x140004f22
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov rdx, qword [rsp + 0x78]
mov r15b, dil
mov dword [rsp + 0x80], edi
cmp dword [rsi + 0x14], edi
je 0x140004f85
mov rbx, rdi
test rbp, rbp
je 0x140004fae
mov r8d, 0x4000
mov qword [rsp + 0x20], rdi
mov eax, ebp
lea r9, [rsp + 0x80]
sub eax, ebx
mov rcx, rbp
sub rcx, rbx
cmp rcx, r8
mov rcx, qword [r14]
cmovb r8d, eax
add rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r15b
jne 0x140004fa5
mov rdx, qword [rsp + 0x78]
add rbx, 0x4000
cmp rbx, rbp
jb 0x140004f39
jmp 0x140004fa5
mov rcx, qword [r14]
lea r9, [rsp + 0x80]
mov r8d, ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r15b
test r15b, r15b
jne 0x14000509a
cmp byte [rsi + 0x22], dil
je 0x14000509a
cmp dword [rsi + 0x14], edi
jne 0x14000509a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsi]
mov edi, eax
mov rax, qword [rcx + 0x28]
mov rcx, rsi
call qword [0x140029578]
lea r12, [rsi + 0x3a]
mov r13, rax
mov rcx, r12
call fcn.140005418
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x140005022
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x140005022
mov rax, rbp
add rax, r13
cmp rax, rbx
jbe 0x140005022
mov rdx, r12
lea rcx, [0x14003c6d8]
call fcn.1400043f8
xor r8d, r8d
lea rcx, [0x14003c6d8]
mov rdx, r12
call fcn.1400041f0
xor edi, edi
test al, al
je 0x140005089
mov ecx, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
cmp rcx, rbp
jae 0x140004f22
test ecx, ecx
je 0x140004f22
mov rbx, qword [rsi]
mov rcx, rsi
mov rax, qword [rbx + 0x28]
call qword [0x140029578]
mov ecx, dword [rsp + 0x80]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x140029578]
jmp 0x140004f1d
mov r8, r12
lea rcx, [0x14003c6d8]
xor edx, edx
call fcn.140004354
mov byte [rsi + 0x10], 1
mov al, r15b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140005304
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14000c9b0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140005362
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400068f4
test al, al
je 0x140005362
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca10
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret