joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003158
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 [0x14000e1bc]
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 0x140003331
lea rcx, [rbp + 0x2b]
call fcn.1400025b4
test eax, eax
jne 0x140003320
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 0x140003331
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 0x14000330b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14000330b
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 0x14000330b
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 0x1400032fc
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 0x1400032fc
mov edi, esi
cmp dword [rbx], esi
jbe 0x1400032ec
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 0x1400032db
inc edi
cmp edi, dword [rbx]
jb 0x1400032b5
jmp 0x1400032ec
mov dword [0x14000e1bc], 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 0x140003331
mov eax, dword [rbp + 0x2b]
test eax, eax
je 0x140003331
mov dword [0x14000e1bc], 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008f70
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 0x140003360
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 0x1400033bc
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4f0
xor ecx, ecx
call fcn.140006208
mov cl, byte [rsp + 0x30]
cmp byte [rdi], cl
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140008f70
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x1400033f0
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 0x140003461
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f5
mov dword [rsp + 0x20], FDICopy
call fcn.140006208
xor eax, eax
jmp 0x1400034ff
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 0x1400034de
mov edx, 0x4f6
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
jmp 0x14000344d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
test eax, eax
jne 0x1400034fa
mov edx, 0x4f7
jmp 0x1400034cc
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008f70
add rsp, 0x50
pop rbx
ret
Function at 0x14000351c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
movzx edx, cx
test edx, edx
je 0x1400035d3
sub edx, 1
je 0x1400035cc
sub edx, 1
je 0x140003546
cmp edx, 1
jne 0x1400035da
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 0x1400035c6
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 0x1400035b5
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 0x1400035da
call fcn.140002fc8
jmp 0x1400035d8
call fcn.140003084
mov ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140004188
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 0x14000421b
test al, 0x10
jne 0x14000421b
cmp dword [0x14000f660], 0
jne 0x140004207
test byte [0x14000ed78], bl
jne 0x140004207
mov r8, qword [0x14000e888]
lea r9, [0x140006750]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
and qword [rsp + 0x20], 0
mov qword [0x14000f890], rdi
call fcn.1400064d0
sub rax, 6
je 0x140004207
sub rax, rbx
je 0x140004229
cmp rax, 0x832
jne 0x140004207
mov dword [0x14000f660], 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 0x14000421b
Function at 0x140004234
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 0x140004341
lea rdx, [rsp + 0x50]
call fcn.140005018
test eax, eax
je 0x1400043f6
lea rbx, [0x14000f670]
mov edi, 0x104
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400042b0
mov al, byte [r8 + rcx]
test al, al
je 0x1400042b0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140004291
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
test byte [0x14000fec4], 0x20
je 0x14000432e
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 0x14000431d
sub ecx, 1
je 0x140004314
sub ecx, 1
je 0x14000430b
cmp ecx, 1
jne 0x14000432e
lea r8, [0x14000ba28]
jmp 0x140004324
lea r8, str.alpha
jmp 0x140004324
lea r8, str.mips
jmp 0x140004324
lea r8, str.i386
mov edx, edi
mov rcx, rbx
call fcn.14000899c
lea r8, [0x14000b760]
mov edx, edi
mov rcx, rbx
call fcn.14000899c
jmp 0x140004380
lea rbx, [0x14000f670]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140004372
mov al, byte [r9 + rcx]
test al, al
je 0x140004372
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x140004353
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rbx
call fcn.140005f10
test eax, eax
jne 0x1400043ab
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x1400043ca
mov dword [0x14000ed60], 1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140005b80
test eax, eax
je 0x1400043d7
and dword [0x14000f5a4], 0
mov eax, 1
jmp 0x1400043f8
call fcn.1400065b0
mov dword [0x14000f5a4], eax
jmp 0x1400043f6
cmp dword [0x14000ed60], 0
je 0x1400043f6
and dword [0x14000ed60], 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.140008f70
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004424
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 [0x14000f668]
jmp 0x1400044a6
cmp dword [0x14000ed64], 0
mov rdi, rbx
jne 0x140004484
cmp dword [0x14000fec0], 0
jne 0x140004484
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 0x14000444c
mov eax, dword [0x14000ed60]
mov ebx, 1
test eax, eax
je 0x14000454f
cmp dword [0x14000ed64], 0
jne 0x14000454f
cmp dword [0x14000fec0], 0
jne 0x14000454f
lea r8, [0x14000f670]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000450b
mov al, byte [r8 + rcx]
test al, al
je 0x14000450b
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400044ed
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
test byte [0x14000fec4], 0x20
mov byte [rax], 0
je 0x14000452c
lea rcx, [rsp + 0x40]
call fcn.140008a34
lea rcx, [0x14000b830]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.1400026d8
mov eax, dword [0x14000ed60]
cmp word [0x14000fed8], bx
je 0x1400045c5
test eax, eax
je 0x1400045c5
and qword [rsp + 0x30], 0
cmp byte [0x14000e830], 0
je 0x1400045c5
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 0x1400045c5
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000e830]
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 [0x14000ed60], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008f70
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140004744
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 [0x14000ed78], di
jne 0x140004799
cmp dword [0x14000ed64], edi
jne 0x14000478c
call fcn.1400056f8
test eax, eax
je 0x14000488d
cmp word [0x14000ed78], di
jne 0x140004799
call fcn.1400045f4
test eax, eax
je 0x14000488d
call fcn.140004f58
test eax, eax
je 0x14000488d
call fcn.14000525c
test eax, eax
je 0x14000488d
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.14000899c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140004820
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140004820
xor edx, edx
lea rcx, [0x14000f670]
call fcn.14000a010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
cmp dword [0x14000ed64], edi
jne 0x1400048ca
cmp dword [0x14000fec0], edi
jne 0x1400048ca
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x1400048b1
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
xor ecx, ecx
call fcn.140006208
call fcn.1400065b0
mov dword [0x14000f5a4], eax
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008f70
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140005b80
test eax, eax
je 0x14000488d
lea rcx, [0x14000f670]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x1400048e8
mov edx, 0x4bc
jmp 0x140004869
cmp dword [0x14000ed6c], edi
jne 0x140004968
lea rax, [0x14000f0a0]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x1400048fc
test byte [0x14000ed78], 1
jne 0x140004984
test byte [0x14000fec4], 1
jne 0x140004984
mov eax, dword [0x14000e21c]
lea r9, [0x1400049f0]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.1400064d0
test rax, rax
je 0x14000498d
lea rcx, [0x140006f00]
call fcn.140007c98
test eax, eax
je 0x14000488d
mov dword [0x14000f5a4], edi
mov eax, dword [0x14000f088]
test al, 0x40
jne 0x14000499c
test al, al
js 0x14000499c
movzx ecx, word [0x14000fed8]
call fcn.14000351c
jmp 0x14000499e
call fcn.140004c20
test eax, eax
jne 0x14000494e
mov dword [0x14000f5a4], 0x8007042b
jmp 0x14000488d
mov eax, edi
mov dword [0x14000fedc], eax
mov eax, dword [0x14000ed64]
test eax, eax
jne 0x1400049c9
cmp dword [0x14000fec0], edi
jne 0x1400049c9
call fcn.1400072dc
test eax, eax
je 0x14000488d
mov eax, dword [0x14000ed64]
cmp word [0x14000ed78], di
jne 0x1400049db
test eax, eax
jne 0x1400049db
call fcn.140004e74
mov eax, 1
jmp 0x14000488f
Function at 0x140004c20
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.140005180
mov r8d, 0xa
mov dword [0x14000f5c8], 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 [0x14000f5c0], rax
test rax, rax
je 0x140004e61
mov rcx, qword [0x14000e888]
test rcx, rcx
je 0x140004ce6
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 [0x14000e888]
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.140007f00
test eax, eax
jne 0x140004cf9
mov edx, 0x4ba
jmp 0x140004dc4
lea rax, [0x14000f5cc]
mov qword [rsp + 0x40], rax
lea r9, [0x140008780]
mov dword [rsp + 0x38], 1
lea rax, [0x140008830]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140008520]
lea rax, [fcn.140008270]
mov qword [rsp + 0x28], rax
lea rdx, [0x140008500]
lea rax, [0x1400088c0]
lea rcx, [0x140008250]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004db8
lea rax, [0x14000f5c0]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x14000b760]
and qword [rsp + 0x28], 0
lea rax, [0x1400082e0]
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 0x140004de5
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140004de5
mov edx, dword [0x14000f5cc]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000e888]
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
call fcn.140006208
xor ebx, ebx
mov rcx, qword [0x14000f5c0]
test rcx, rcx
je 0x140004e05
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
and qword [0x14000f5c0], 0
test ebx, ebx
jne 0x140004e2f
cmp dword [0x14000f65c], ebx
jne 0x140004e2f
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140006208
test byte [0x14000ed78], 1
jne 0x140004e5f
test byte [0x14000fec4], 1
jne 0x140004e5f
mov rcx, qword [0x14000e888]
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 0x140005018
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.1400036b0
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005091
mov al, byte [r14 + rcx]
test al, al
je 0x140005091
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005072
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.14000899c
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 0x140005150
cmp esi, 0x190
jl 0x14000504f
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 0x140005125
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.140008f70
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 0x1400050e0
mov dword [0x14000ed60], 1
mov edi, 1
jmp 0x140005125

Function at 0x140005180
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 0x140005239
test rsi, rsi
je 0x140005239
test eax, eax
je 0x140005251
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 0x140005251
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 0x14000523b
Function at 0x140005f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x140005f2b
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x140005f95
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4b5
xor ecx, ecx
call fcn.140006208
call fcn.1400065b0
mov dword [0x14000f5a4], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test edi, edi
je 0x140005fdd
cmp rbx, 0x7fffffff
ja 0x140005fda
mov edx, 0x7ffffffe
mov r8, rbp
sub rdx, rbx
mov rcx, rsi
sub r8, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140005fcf
mov al, byte [r8 + rcx]
test al, al
je 0x140005fcf
mov byte [rcx], al
inc rcx
sub rbx, 1
jne 0x140005fb3
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
lea r8, str.TMP4351_.TMP
mov edx, edi
mov rcx, rsi
call fcn.14000899c
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x4000080
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x140005f72
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005f72
test al, 0x10
je 0x140005f72
and dword [0x14000f5a4], 0
mov eax, 1
jmp 0x140005f7f

Function at 0x1400064d0
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, 0x30
mov rbx, qword [0x14000fed0]
mov rbp, r8
mov rcx, rbx
mov r8d, 5
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
je 0x14000656b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000656b
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x140006542
and qword [rsp + 0x20], rax
jmp 0x140006547
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
nop dword [rax + rax]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
jne 0x14000658f
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDICopy
mov edx, 0x4fb
xor ecx, ecx
call fcn.140006208
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret