joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002fa0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
sub rsp, 0x68
and qword [rax + 0x10], 0
mov r9d, 0x20019
and dword [rax + 8], 0
lea rax, [rax + 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000304b
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x70]
and qword [rsp + 0x50], 0
xor r9d, r9d
and qword [rsp + 0x48], 0
xor r8d, r8d
and qword [rsp + 0x40], 0
xor edx, edx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
nop dword [rax + rax]
test eax, eax
je 0x14000303a
and dword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rsp + 0x70]
add rsp, 0x68
ret

Function at 0x14000305c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
mov edx, edi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x140003103
lea r8, str.wininit.ini
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.14000896c
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
nop dword [rax + rax]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xffffffff
je 0x140003103
xor edx, edx
lea r8d, [rbx + 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
nop dword [rax + rax]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140003130
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [0x14000e1c4]
xor esi, esi
mov qword [rbp + 0x2f], rsi
mov dword [rbp + 0x27], esi
mov dword [rbp + 0x3f], esi
lea edi, [rsi + 2]
mov word [rbp + 0x43], 0x500
mov qword [rbp + 0x37], rsi
mov dword [rbp + 0x2b], esi
cmp eax, edi
jne 0x140003309
lea rcx, [rbp + 0x2b]
call fcn.140002590
test eax, eax
jne 0x1400032f8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rbp + 0x2f]
lea edx, [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
test eax, eax
je 0x140003309
mov rcx, qword [rbp + 0x2f]
lea rax, [rbp + 0x27]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
jne 0x1400032e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x1400032e3
mov edx, dword [rbp + 0x27]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400032e3
mov r9d, dword [rbp + 0x27]
lea rax, [rbp + 0x27]
mov rcx, qword [rbp + 0x2f]
mov r8, rbx
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
nop dword [rax + rax]
test eax, eax
je 0x1400032d4
lea rax, [rbp + 0x37]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], esi
mov r8d, 0x20
mov dword [rsp + 0x40], esi
mov dl, dil
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x1400032d4
mov edi, esi
cmp dword [rbx], esi
jbe 0x1400032c4
mov rdx, qword [rbp + 0x37]
mov ecx, edi
add rcx, rcx
mov rcx, qword [rbx + rcx*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
jne 0x1400032b3
inc edi
cmp edi, dword [rbx]
jb 0x14000328d
jmp 0x1400032c4
mov dword [0x14000e1c4], 1
mov dword [rbp + 0x2b], 1
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rbp + 0x2b]
jmp 0x140003309
mov eax, dword [rbp + 0x2b]
test eax, eax
je 0x140003309
mov dword [0x14000e1c4], 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008f40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003338
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140003394
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4f0
xor ecx, ecx
call fcn.1400061d8
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x1400033c8
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x140003439
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDICopy
call fcn.1400061d8
xor eax, eax
jmp 0x1400034d7
lea r8, [rsp + 0x3c]
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x1400034b6
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x140003425
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400034d2
mov edx, 0x4f7
jmp 0x1400034a4
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008f40
add rsp, 0x50
pop rbx
ret
Function at 0x1400034f4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
movzx edx, cx
test edx, edx
je 0x1400035ab
sub edx, 1
je 0x1400035a4
sub edx, 1
je 0x14000351e
cmp edx, 1
jne 0x1400035b2
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x14000359e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
je 0x14000358d
mov dword [rsp + 0x40], ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, dword [rsp + 0x40]
jmp 0x1400035b2
call fcn.140002fa0
jmp 0x1400035b0
call fcn.14000305c
mov ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140004158
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400041eb
test al, 0x10
jne 0x1400041eb
cmp dword [0x14000f680], 0
jne 0x1400041d7
test byte [0x14000ed98], bl
jne 0x1400041d7
mov r8, qword [0x14000e8a8]
lea r9, [0x140006720]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
and qword [rsp + 0x20], 0
mov qword [0x14000f8b0], rdi
call fcn.1400064a0
sub rax, 6
je 0x1400041d7
sub rax, rbx
je 0x1400041f9
cmp rax, 0x832
jne 0x1400041d7
mov dword [0x14000f680], ebx
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ebx, ebx
jmp 0x1400041eb
Function at 0x140004204
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x140004311
lea rdx, [rsp + 0x50]
call fcn.140004fe8
test eax, eax
je 0x1400043c6
lea rbx, [0x14000f690]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140004280
mov al, byte [r8 + rcx]
test al, al
je 0x140004280
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140004261
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000fee4], 0x20
je 0x1400042fe
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x1400042ed
sub ecx, 1
je 0x1400042e4
sub ecx, 1
je 0x1400042db
cmp ecx, 1
jne 0x1400042fe
lea r8, [0x14000ba28]
jmp 0x1400042f4
lea r8, str.alpha
jmp 0x1400042f4
lea r8, str.mips
jmp 0x1400042f4
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.14000896c
lea r8, [0x14000b760]
mov edx, edi
mov rcx, rbx
call fcn.14000896c
jmp 0x140004350
lea rbx, [0x14000f690]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140004342
mov al, byte [r9 + rcx]
test al, al
je 0x140004342
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140004323
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140005ee0
test eax, eax
jne 0x14000437b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14000439a
mov dword [0x14000ed80], 1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140005b50
test eax, eax
je 0x1400043a7
and dword [0x14000f5c4], 0
mov eax, 1
jmp 0x1400043c8
call fcn.140006580
mov dword [0x14000f5c4], eax
jmp 0x1400043c6
cmp dword [0x14000ed80], 0
je 0x1400043c6
and dword [0x14000ed80], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140008f40
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400043f4
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Set current directory
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000f688]
jmp 0x140004476
cmp dword [0x14000ed84], 0
mov rdi, rbx
jne 0x140004454
cmp dword [0x14000fee0], 0
jne 0x140004454
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
test rbx, rbx
jne 0x14000441c
mov eax, dword [0x14000ed80]
mov ebx, 1
test eax, eax
je 0x14000451f
cmp dword [0x14000ed84], 0
jne 0x14000451f
cmp dword [0x14000fee0], 0
jne 0x14000451f
lea r8, [0x14000f690]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400044db
mov al, byte [r8 + rcx]
test al, al
je 0x1400044db
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400044bd
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000fee4], 0x20
mov byte [rax], 0
je 0x1400044fc
lea rcx, [rsp + 0x40]
call fcn.140008a04
lea rcx, [0x14000b830]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400026b4
mov eax, dword [0x14000ed80]
cmp word [0x14000fef8], bx
je 0x140004595
test eax, eax
je 0x140004595
and qword [rsp + 0x30], 0
cmp byte [0x14000e850], 0
je 0x140004595
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140004595
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000e850]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and dword [0x14000ed80], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140004714
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000ed98], di
jne 0x140004769
cmp dword [0x14000ed84], edi
jne 0x14000475c
call fcn.1400056c8
test eax, eax
je 0x14000485d
cmp word [0x14000ed98], di
jne 0x140004769
call fcn.1400045c4
test eax, eax
je 0x14000485d
call fcn.140004f28
test eax, eax
je 0x14000485d
call fcn.14000522c
test eax, eax
je 0x14000485d
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop dword [rax + rax]
lea r8, str.advapi32.dll
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14000896c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400047f0
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400047f0
xor edx, edx
lea rcx, [0x14000f690]
call fcn.14000a010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp dword [0x14000ed84], edi
jne 0x14000489a
cmp dword [0x14000fee0], edi
jne 0x14000489a
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x140004881
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
xor ecx, ecx
call fcn.1400061d8
call fcn.140006580
mov dword [0x14000f5c4], eax
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008f40
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140005b50
test eax, eax
je 0x14000485d
lea rcx, [0x14000f690]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x1400048b8
mov edx, 0x4bc
jmp 0x140004839
cmp dword [0x14000ed8c], edi
jne 0x140004938
lea rax, [0x14000f0c0]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x1400048cc
test byte [0x14000ed98], 1
jne 0x140004954
test byte [0x14000fee4], 1
jne 0x140004954
mov eax, dword [0x14000e22c]
lea r9, [0x1400049c0]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.1400064a0
test rax, rax
je 0x14000495d
lea rcx, [0x140006ed0]
call fcn.140007c68
test eax, eax
je 0x14000485d
mov dword [0x14000f5c4], edi
mov eax, dword [0x14000f0a8]
test al, 0x40
jne 0x14000496c
test al, al
js 0x14000496c
movzx ecx, word [0x14000fef8]
call fcn.1400034f4
jmp 0x14000496e
call fcn.140004bf0
test eax, eax
jne 0x14000491e
mov dword [0x14000f5c4], 0x8007042b
jmp 0x14000485d
mov eax, edi
mov dword [0x14000fefc], eax
mov eax, dword [0x14000ed84]
test eax, eax
jne 0x140004999
cmp dword [0x14000fee0], edi
jne 0x140004999
call fcn.1400072ac
test eax, eax
je 0x14000485d
mov eax, dword [0x14000ed84]
cmp word [0x14000ed98], di
jne 0x1400049ab
test eax, eax
jne 0x1400049ab
call fcn.140004e44
mov eax, 1
jmp 0x14000485f
Function at 0x140004bf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call fcn.140005150
mov r8d, 0xa
mov dword [0x14000f5e8], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [0x14000f5e0], rax
test rax, rax
je 0x140004e31
mov rcx, qword [0x14000e8a8]
test rcx, rcx
je 0x140004cb6
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
mov rcx, qword [0x14000e8a8]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
nop dword [rax + rax]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
call fcn.140007ed0
test eax, eax
jne 0x140004cc9
mov edx, 0x4ba
jmp 0x140004d94
lea rax, [0x14000f5ec]
mov qword [rsp + 0x40], rax
lea r9, [0x140008750]
mov dword [rsp + 0x38], 1
lea rax, [0x140008800]
mov qword [rsp + 0x30], rax
lea r8, [fcn.1400084f0]
lea rax, [fcn.140008240]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400084d0]
lea rax, [0x140008890]
lea rcx, [0x140008220]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004d88
lea rax, [0x14000f5e0]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x14000b760]
and qword [rsp + 0x28], 0
lea rax, [0x1400082b0]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140004db5
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140004db5
mov edx, dword [0x14000f5ec]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000e8a8]
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
call fcn.1400061d8
xor ebx, ebx
mov rcx, qword [0x14000f5e0]
test rcx, rcx
je 0x140004dd5
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x14000f5e0], 0
test ebx, ebx
jne 0x140004dff
cmp dword [0x14000f67c], ebx
jne 0x140004dff
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4f8
xor ecx, ecx
call fcn.1400061d8
test byte [0x14000ed98], 1
jne 0x140004e2f
test byte [0x14000fee4], 1
jne 0x140004e2f
mov rcx, qword [0x14000e8a8]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140004fe8
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor esi, esi
xor edi, edi
mov r14, rcx
mov rbx, rdx
sub r14, rdx
mov rbp, rcx
mov r9d, esi
lea r8, str.IXP_03d.TMP
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140003688
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005061
mov al, byte [r14 + rcx]
test al, al
je 0x140005061
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005042
test rdx, rdx
lea rax, [rcx - 1]
lea r8, [rsp + 0x20]
mov edx, 0x104
cmovne rax, rcx
mov rcx, rbx
mov byte [rax], dil
call fcn.14000896c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005120
cmp esi, 0x190
jl 0x14000501f
mov r9, rbx
lea rdx, [0x14000ba0c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop dword [rax + rax]
test eax, eax
je 0x1400050f5
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008f40
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x1400050b0
mov dword [0x14000ed80], 1
mov edi, 1
jmp 0x1400050f5

Function at 0x140005150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, r8d
mov rdx, rcx
mov rdi, rcx
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ebx, eax
cmp eax, ebp
ja 0x140005209
test rsi, rsi
je 0x140005209
test eax, eax
je 0x140005221
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005221
mov r9d, ebx
mov edx, ebp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x14000520b