joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015010
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
lea rax, [rsp + 0x30]
mov rsi, r8
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREASUSROGLiveServicePackage
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x140015089
cmp eax, 2
jne 0x14001506c
xor eax, eax
jmp 0x1400150cc
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.RegOpenKeyEx_error
mov r8d, edi
call fcn.140005b00
jmp 0x1400150ca
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test eax, eax
je 0x1400150ba
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.RegDeleteValue_error
mov r8d, edi
call fcn.140005b00
jmp 0x1400150bf
mov ebx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001f550
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400150f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x30], rax
mov rdi, r8
mov dword [rsp + 0x38], eax
mov r9d, 1
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140015175
cmp eax, 2
jne 0x140015158
mov eax, 0xffffffff
jmp 0x1400151e2
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.RegOpenKeyEx_error
mov r8d, ebx
call fcn.140005b00
jmp 0x1400151de
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
xor ecx, ecx
mov ebx, eax
test eax, eax
je 0x1400151ba
call fcn.140003ed0
mov r8d, ebx
lea rdx, str.RegQueryValueEx_error
jmp 0x1400151cb
call fcn.140003ed0
mov r8d, dword [rsp + 0x38]
lea rdx, str.dwUiResult_lu
mov rcx, rax
call fcn.140005c50
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f550
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140015200
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015264
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
test eax, eax
jne 0x14001527e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x50
pop rbx
ret
Function at 0x1400158e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140015985
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140015956
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140015930
jmp 0x140015985
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140015985
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001f550
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x140016550
Capabilities:
Get system firmware table

Disassembly:
push rbx
mov eax, 0x10040
call fcn.140020360
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x10030], rax
xor edx, edx
mov r8d, 0x10000
lea rcx, [rsp + 0x30]
call fcn.1400220d0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov ebx, eax
test eax, eax
jne 0x1400165b8
lea rcx, str.Function_failed__n
call fcn.140002530
mov eax, 1
jmp 0x140016628
mov r9d, ebx
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
test eax, eax
je 0x1400165a5
lea rax, [rsp + 0x38]
lea ecx, [rbx - 8]
mov r8, qword [rsp + 0x34]
cmp r8d, ecx
je 0x1400165f6
lea rcx, str.Smbios_length_error_n
call fcn.140002530
mov eax, 1
jmp 0x140016628
xor edx, edx
test r8d, r8d
je 0x140016626
nop dword [rax]
cmp byte [rax], 3
je 0x140016641
movzx ecx, byte [rax + 1]
add rax, rcx
cmp word [rax], 0
je 0x14001661b
inc rax
cmp word [rax], 0
jne 0x140016612
add rax, 2
inc edx
cmp edx, r8d
jb 0x140016600
xor eax, eax
mov rcx, qword [rsp + 0x10030]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x10040
pop rbx
ret
movzx ebx, byte [rax + 5]
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov r8d, ebx
lea rdx, str.Type3__Enclosure_Type___d
call fcn.140005c50
mov eax, ebx
jmp 0x140016628
Function at 0x140016e70
Capabilities:
Get file size
Hash data with crc32
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x878
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov qword [r11 + 0x18], rbx
mov rsi, rdx
mov qword [r11 - 0x18], rdi
xor edx, edx
mov rdi, rcx
mov qword [r11 - 0x20], r14
lea rcx, [rsp + 0x50]
mov qword [r11 - 0x28], r15
mov r8d, 0x800
mov ebx, 0x56
call fcn.1400220d0
xor ebp, ebp
lea r8d, [rbx - 0x55]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], rbp
lea r8d, [rbx - 0x55]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov rcx, r14
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp r14, 0xffffffffffffffff
je 0x14001703e
cmp rsi, 0xffffffffffffffff
je 0x14001703e
lea edi, [rax - 4]
test edi, edi
je 0x140016fef
lea r15, [0x14005ab80]
nop dword [rax + rax]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, r14
mov r8d, 0x800
cmp edi, 0x800
ja 0x140016f73
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140017019
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140016fef
sub edi, r8d
lea r9, [rsp + 0x50]
test r8d, r8d
je 0x140016fdf
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r9]
lea r9, [r9 + 1]
mov eax, ebx
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [r15 + rdx*4]
xor ebx, eax
add r8d, 0xffffffff
jne 0x140016fc0
dec r8d
mov dword [rsp + 0x40], r8d
test edi, edi
jne 0x140016f50
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x44]
cmp ebx, eax
jne 0x140017056
mov ebp, eax
jmp 0x140017056
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
mov ebx, eax
call fcn.140003ed0
mov rcx, rax
lea rdx, str.write_fail__lx
mov r8d, ebx
call fcn.140005b00
jmp 0x140017056
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str._file_create_fail
call fcn.140005b00
mov r15, qword [rsp + 0x860]
mov rdi, qword [rsp + 0x870]
mov rbx, qword [rsp + 0x8a0]
test r14, r14
je 0x14001707c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x868]
test rsi, rsi
je 0x140017092
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x878
pop rsi
pop rbp
ret
Function at 0x140017270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x470
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea rdx, str.checkIfACIsInstalledViaPs
call fcn.140005c50
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1400220d0
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.1400220d0
lea r9, str.AsusROGLSLServiceQueryUWP.exe
lea rcx, [rsp + 0x40]
call fcn.140019e40
test al, al
jne 0x140017305
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, str.checkIfACIsInstalledViaPs
lea r8, str.Download
lea rdx, str.__ls___hs__getWorkingPath_QueryUWP__failed.
call fcn.140005c50
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, str.pathOfQueryAC___ls
call fcn.140005c50
xor edi, edi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x38], edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017435
test al, 0x10
jne 0x140017435
mov qword [rsp + 0x480], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x488], rsi
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, str._ls_exists.
call fcn.140005c50
lea r9, [rsp + 0x40]
mov edx, 0x104
lea r8, str.__ls_
lea rcx, [rsp + 0x250]
call fcn.1400011b0
mov ecx, 0x540
call fcn.14001f818
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x540
mov rcx, rax
mov rbx, rax
call fcn.1400220d0
mov rcx, rbx
call fcn.1400170c0
lea r9, [rsp + 0x38]
mov byte [rsp + 0x20], dil
mov r8b, 1
lea rdx, [rsp + 0x250]
mov rcx, rax
mov rsi, rax
call fcn.1400142e0
xor edx, edx
xor ecx, ecx
movzx ebx, al
call fcn.140003ed0
test bl, bl
lea rdx, str.Launch_QueryUWP_successfully.
mov rbx, qword [rsp + 0x480]
jne 0x1400173ff
lea rdx, str.Failed_to_launch_QueryUWP.
mov rcx, rax
call fcn.140005c50
test rsi, rsi
je 0x140017421
mov rcx, rsi
call fcn.1400145c0
mov edx, 0x540
mov rcx, rsi
call fcn.14001f574
cmp dword [rsp + 0x38], edi
mov rsi, qword [rsp + 0x488]
sete dil
mov eax, edi
jmp 0x140017454
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r8, [rsp + 0x40]
lea rdx, str._ls_not_found.
call fcn.140005c50
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x470
pop rdi
ret
Function at 0x140017f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r8, str.ProgramFiles_x86_
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.14002bb00
test eax, eax
jne 0x140017fc6
mov r9, qword [rsp + 0x30]
lea r8, str._sASUS
mov qword [rsp + 0x50], rbx
mov edx, 0x104
lea rbx, [0x14006dab0]
mov rcx, rbx
call fcn.1400011b0
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r9, str.initProjectFolder
lea r8, str.Download
lea rdx, str.__ls___hs__ProjectFolder___ls
call fcn.140005c50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017fa3
test al, 0x10
jne 0x140017fab
mov rcx, rbx
call fcn.140014be0
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x30]
call fcn.140029d98
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x58
ret
Function at 0x140019240
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub rsp, 0x258
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400220d0
lea rax, str.ROGLSLoader
mov edx, 0x104
lea r9, [0x14006dab0]
mov qword [rsp + 0x20], rax
lea r8, str._s_s.zip
lea rcx, [rsp + 0x30]
call fcn.1400011b0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400192b3
test al, 0x10
jne 0x1400192b3
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001f550
add rsp, 0x258
ret
Function at 0x14001ab30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14006a080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001ab5d
xor eax, eax
jmp 0x14001aca3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001ab97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001ab97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001aca3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001ac96
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001abda
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001abe9
movsx ecx, dil
jmp 0x14001ac3d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x14001ac96
cmp eax, 1
jle 0x14001ac57
cmp eax, 3
jne 0x14001ac96
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14002bb48
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001ac9b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001ac84
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14002c198
cmp rsi, rax
jne 0x14001ac96
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14001ac9b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001f550
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001d1c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
xor edx, edx
xor ecx, ecx
call fcn.140003ed0
mov rcx, rax
lea r9, str.OnDoPreShutDown
lea r8, str.ServiceControl
lea rdx, str.__hs___hs__.
add rsp, 0x28
jmp fcn.140005c50

Function at 0x14002b514
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14002b3a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002b3a7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002b3a7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002b3a7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002b3a7
cmp dword [rcx + 0x84], 0xe
jbe 0x14002b3a7
cmp dword [rcx + 0xf8], 0
je 0x14002b3a7
mov ecx, ebx
call fcn.14002b448
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14002b238
cmp dword [rbp + 0x20], 0
je 0x14002b3f4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002b3fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002b340

Function at 0x14002d48c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002d4ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002ad38
or eax, 0xffffffff
jmp 0x14002d4ae
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002d4e4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002d504
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002ad38
or eax, 0xffffffff
jmp 0x14002d506
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002880
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400028b5
lea rax, [rdi - 1]
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140001588
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
xor ebx, ebx
test eax, eax
jle 0x1400029b9
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140001588
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jl 0x140002930
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call section..text
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x1400029f9
mov rdi, r14
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400029f9
call fcn.140001590
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x1400029e0
mov rcx, r14
call fcn.140001590
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140c5e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c5e1df
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 0x140c5e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e06f
add dl, dl
jne 0x140c5e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e0f6
xor eax, eax
add dl, dl
jne 0x140c5e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5e1ad
add dl, dl
jne 0x140c5e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5e07e
mov eax, 1
add dl, dl
jne 0x140c5e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e0fb
sub eax, ebx
mov ebx, 1
jne 0x140c5e14c
mov ecx, 1
add dl, dl
jne 0x140c5e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5e15d
cmp eax, 0x7d00
jae 0x140c5e19b
cmp eax, 0x500
jb 0x140c5e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e07e
cmp eax, 0x7f
ja 0x140c5e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5e1d2
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 0x140c5e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20