joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004610
Capabilities:
Read file via mapping

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140018240]
xor r9d, r9d
lea rdi, str.GlobalNitroPDF_Shared_UpdateService_Data
lea r8d, [r9 + 4]
xor edx, edx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x140018030], rax
test rax, rax
jne 0x140004698
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateFileMapping
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x40]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x40]
call fcn.140005030
xor eax, eax
jmp 0x140004766
lea rcx, str.CreateFileMapping_succeeded
mov qword [rsp + 0x170], rbx
call fcn.140005030
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea edx, [rbx + 6]
lea r8d, [rbx + 4]
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov r9d, 0x103
lea rcx, [0x140018038]
lea edx, [r9 + 1]
mov r8, rdi
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov rcx, qword [0x140018030]
lea edx, [rbx + 6]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [0x140018248]
mov rbx, rax
test rcx, rcx
je 0x140004722
mov r8d, dword [0x140018240]
xor edx, edx
call sub.MSVCR120.dll_memset
mov qword [0x140018248], rbx
test rbx, rbx
mov rbx, qword [rsp + 0x170]
jne 0x140004755
mov rcx, qword [0x140018030]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x140011070]
jmp 0x14000466d
lea rcx, str.MapViewOfFile_succeeded
call fcn.140005030
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000cf10
add rsp, 0x160
pop rdi
ret
Function at 0x140004a50
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub rsp, 0x3a8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x390], rax
lea rcx, str.Service_installation_started
call fcn.140005030
lea rdx, [rsp + 0x180]
mov r8d, Ordinal_265
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.GetModuleFileName
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x70]
call fcn.140005030
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000cf10
add rsp, 0x3a8
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x3b8], rsi
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140004b2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenSCManager
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x70]
call fcn.140005030
jmp 0x140004c6d
xor ecx, ecx
lea rax, [0x140010974]
lea r8, str.Nitro_Update_Service
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x180]
mov qword [rsp + 0x38], rax
lea r9d, [rcx + 0x14]
mov dword [rsp + 0x30], 1
lea rdx, str.NitroUpdateService
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0x3a0], rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140004c16
mov qword [rsp + 0x3b0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateService
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x70]
call fcn.140005030
cmp ebx, 0x431
mov rbx, qword [rsp + 0x3b0]
jne 0x140004c4e
lea rdx, str.NitroUpdateService
mov r8d, 0x10014
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140004c16
lea rcx, str.OpenService
jmp 0x140004c49
lea rcx, str.Service_installed
call fcn.140005030
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140004c42
lea rcx, str.Service_started
call fcn.140005030
jmp 0x140004c4e
lea rcx, str.StartService
call fcn.1400053a0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140004c65
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x3a0]
mov rsi, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000cf10
add rsp, 0x3a8
ret
Function at 0x140004c90
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor eax, eax
lea rcx, str.Service_uninstallation_started
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call fcn.140005030
xor edx, edx
lea r8d, [rdx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140004d18
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenSCManager
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x50]
call fcn.140005030
jmp 0x140004e58
lea rdx, str.NitroUpdateService
mov r8d, 0x10024
mov rcx, rax
mov qword [rsp + 0x180], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140004d6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenService
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x50]
call fcn.140005030
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004df2
lea rcx, str.Stopping_service
call fcn.140005030
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140004dd6
nop
mov eax, dword [rsp + 0x34]
cmp eax, 3
jne 0x140004dda
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140004db0
mov eax, dword [rsp + 0x34]
lea rcx, str.Service_is_stopped
cmp eax, 1
je 0x140004ded
lea rcx, str.Service_failed_to_stop
call fcn.140005030
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140004e2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x140011270]
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004fa0
lea rcx, [rsp + 0x50]
jmp 0x140004e34
lea rcx, str.Service_removed
call fcn.140005030
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140004e50
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000cf10
add rsp, 0x170
pop rdi
ret
Function at 0x140005410
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rdx, [rsp + 0x60]
call fcn.140001240
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000547b
mov qword [rsp + 0x50], 0
xor bl, bl
jmp 0x1400054cb
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140005480
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
lea rdx, str.RunNitroVersion
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400054c3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x1400054c5
xor ebx, ebx
cmp ebx, 1
sete bl
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x40
pop rbx
ret
Function at 0x140005d20
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.Nitro_updateService_OnStart_entered
call fcn.140005030
xor eax, eax
lea rcx, [0x140006310]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.mfc120u.dll_Ordinal_2107]
lea rcx, str.Nitro_updateService_OnStart_exited
mov qword [rbx + 0x18], rax
add rsp, 0x30
pop rbx
jmp fcn.140005030
Function at 0x140006d10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006e4f
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov rdx, rbx
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
mov edx, 0x5c
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_12433]
test eax, eax
js 0x140006d99
lea r8d, [rax + 1]
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_3683]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
xor r8d, r8d
lea rdx, [0x1400117a0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_4467]
mov edx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_13902]
lea rdx, str.__quiet
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
lea rdx, str._s__s
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_4612]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax - 0x10]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.NitroInstaller
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140006e70
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006eb1
mov rcx, qword [rsp + 0x40]
lea rdx, str.NitroInstaller
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x140007f20
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov r9, r14
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc120u.dll_Ordinal_4612]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x140007fa4
xor sil, sil
jmp 0x1400080b2
lea rdx, [0x140010ba8]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1496]
lea rdx, [0x140011860]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
xor sil, sil
cmp rax, 0xffffffffffffffff
je 0x1400080b2
nop dword [rax + rax]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_12470]
nop
lea rdx, str..msi
mov rcx, rax
call qword [sym.imp.mfc120u.dll_Ordinal_2867]
test eax, eax
sete bl
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
test bl, bl
jne 0x14000805f
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400080a8
jmp 0x140008000
mov r8, qword [rsp + 0x28]
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_7629]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400056a0
nop
mov rdx, r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_2867]
movzx esi, sil
mov ecx, 1
test eax, eax
cmove esi, ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, sil
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14000cf10
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ac80
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, r8
mov rbx, rcx
mov dword [rsp + 0x20], 0
call qword [sym.imp.mfc120u.dll_Ordinal_286]
mov dword [rsp + 0x20], 1
mov rax, qword [rbx]
mov edx, dword [rax - 0x10]
dec edx
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_4822]
cmp ax, 0x5c
je 0x14000acdb
lea rdx, [0x140010ba8]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
lea rdx, str.NPUpdate
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000ad04
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x140010ba8]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ad37
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ad50
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
cmp dword [rdi + 0x10], 0
je 0x14000ae39
xor edx, edx
mov r8d, Ordinal_265
lea rcx, [rsp + 0x50]
call sub.MSVCR120.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000ae39
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_13477]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x30]
cmp dword [rdi + 0x10], 1
lea rdx, str.NitroProUpdate
je 0x14000adfd
lea rdx, str.NitroReaderUpdate
call qword [sym.imp.mfc120u.dll_Ordinal_13477]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.mfc120u.dll_Ordinal_2372]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000ae2a
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
jmp 0x14000ae3b
xor bl, bl
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
movzx eax, bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000cf10
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14000c930
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, qword [rcx]
cmp dword [rbx - 0x10], 0
jne 0x14000c958
xor al, al
jmp 0x14000c9cf
xor eax, eax
lea rcx, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rax
mov r8d, 0x208
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call sub.MSVCR120.dll_memset
movsxd r8, dword [rbx - 0x10]
lea rcx, [rsp + 0x60]
add r8, r8
mov rdx, rbx
call sub.MSVCR120.dll_memcpy
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000cf10
add rsp, 0x280
pop rbx
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
push r9
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x992058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9921df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x992089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x99206f
add dl, dl
jne 0x992096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x9920f6
xor eax, eax
add dl, dl
jne 0x9920a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x9921ad
add dl, dl
jne 0x9920b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9920c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9920d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9920dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x9920ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x99207e
mov eax, 1
add dl, dl
jne 0x992106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x992113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x9920fb
sub eax, ebx
mov ebx, 1
jne 0x99214c
mov ecx, 1
add dl, dl
jne 0x99212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x99213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x992123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x99207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x992168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x992175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x99215d
cmp eax, 0x7d00
jae 0x99219b
cmp eax, 0x500
jb 0x992196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x99207e
cmp eax, 0x7f
ja 0x99219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x99207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x9921d2
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 0x99207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rcx
push rsi
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
pop rsi
add rax, rdx
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021