joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002410
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, r8
mov byte [rcx], dil
mov rbx, rcx
cmp byte [r8], 0x23
lea r12d, [rdi + 1]
jne 0x1400025c8
add rsi, r12
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rsi, rax
cmp r14b, 0x53
je 0x1400025c5
cmp r14b, 0x57
je 0x1400025b5
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
mov dword [rsp + 0x34], 0x104
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400024c7
mov al, byte [r8 + rcx]
test al, al
je 0x1400024c7
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x1400024a9
test rdx, rdx
jne 0x1400024cf
sub rcx, r12
mov byte [rcx], dil
mov r8, rsi
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140007628
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400025d7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x1400095f0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400025a8
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x1400025a1
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x14000259d
lea r8, [rsp + 0x40]
mov edx, 0x104
sub r8, rbx
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14000258d
mov al, byte [r8 + rcx]
test al, al
je 0x14000258d
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x14000256f
test rdx, rdx
jne 0x140002595
sub rcx, r12
mov byte [rcx], dil
mov edi, r12d
jmp 0x1400025a8
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400025d3
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1400025d7
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x1400025e7
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140007628
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140007e20
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002614
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor r14d, r14d
mov rsi, rdx
mov r15, rcx
mov ebx, r14d
mov r13d, r14d
mov r12d, r14d
cmp dword [rcx + 0x7c], r14d
jle 0x1400027e5
mov eax, r14d
mov qword [rbp - 0x18], rax
mov edi, dword [r15 + 0x80]
lea r8, [r15 + 0x84]
add rdi, rax
mov rcx, rsi
mov eax, dword [rdi + r15 + 0xbc]
add r8, rax
call fcn.140002410
test eax, eax
je 0x1400027eb
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x1400027b4
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x1400027eb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x1400027eb
mov edx, dword [rbp + 0x58]
mov r8d, esi
mov rsi, qword [rbp + 0x50]
mov r9, rax
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x1400027a6
lea r9, [rbp + 0x48]
mov rcx, r14
lea r8, [rbp - 0x10]
lea rdx, [0x14000970c]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor r14d, r14d
test eax, eax
je 0x1400027a9
cmp dword [rbp + 0x48], r14d
je 0x1400027a9
mov rax, qword [rbp - 0x10]
lea rcx, [r15 + 0x94]
add rcx, rdi
mov edx, r14d
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
cmp r9d, dword [rcx - 0x10]
jae 0x140002739
or eax, 0xffffffff
jmp 0x14000274e
jbe 0x140002742
mov eax, 1
jmp 0x14000274e
cmp r8d, dword [rcx - 0xc]
jb 0x140002734
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x28], eax
cmp r9d, dword [rcx - 4]
jae 0x14000275d
or eax, 0xffffffff
jmp 0x140002771
jbe 0x140002766
mov eax, 1
jmp 0x140002771
cmp r8d, dword [rcx]
jb 0x140002758
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x20], eax
add rcx, 0x18
add rdx, 4
cmp rdx, 8
jl 0x14000272e
cmp dword [rbp - 0x28], r14d
jl 0x14000278f
cmp dword [rbp - 0x20], r14d
jle 0x1400027a9
cmp dword [rbp - 0x24], r14d
jl 0x14000279b
cmp dword [rbp - 0x1c], r14d
jle 0x1400027a9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400027eb
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1400027cc
cmp dword [rdi + r15 + 0x84], r14d
jne 0x1400027eb
cmp dword [rdi + r15 + 0x88], r14d
jne 0x1400027eb
mov rsi, qword [rbp + 0x50]
mov rax, qword [rbp - 0x18]
inc r12d
add rax, 0x3c
mov qword [rbp - 0x18], rax
cmp r12d, dword [r15 + 0x7c]
jl 0x140002659
mov r13d, 1
mov rax, qword [rbp + 0x60]
mov dword [rax], r12d
test rbx, rbx
je 0x140002800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r13d
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002a68
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor ebp, ebp
test eax, eax
js 0x140002ad2
cmp al, 6
jb 0x140002ad2
lea rcx, [0x140009710]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ad2
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140002ad2
mov rcx, rax
call qword [0x140009520]
xor r9d, r9d
lea edx, [rbp + 1]
xor r8d, r8d
xor ecx, ecx
call rbx
mov rdx, rdi
mov dword [0x14000de7c], ebp
mov rcx, rsi
call fcn.140002bb8
test eax, eax
je 0x140002b84
call fcn.140002ebc
mov ebx, eax
call fcn.140003158
test ebx, ebx
je 0x140002b84
cmp byte [0x14000cbfa], bpl
jne 0x140002b84
mov edi, dword [0x14000de5c]
test dil, 1
je 0x140002b84
test dil, 2
jne 0x140002b38
cmp dword [0x14000de78], ebp
jne 0x140002b38
movzx ecx, word [0x14000de74]
mov ebx, dword [0x14000de70]
call fcn.140002140
cmp ebx, eax
je 0x140002b84
test dil, 4
jne 0x140002b69
mov dword [rsp + 0x28], 4
lea r8, [0x1400095f0]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.140004b0c
cmp eax, 6
jne 0x140002b84
cmp word [0x14000de74], bp
jne 0x140002b7f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140002b84
call fcn.140001afc
mov rcx, qword [0x14000c840]
test rcx, rcx
je 0x140002b96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x14000de7c]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003158
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 [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000d608]
jmp 0x1400031bf
cmp dword [0x14000cbe4], 0
jne 0x1400031a9
cmp dword [0x14000de60], 0
jne 0x1400031a9
mov rcx, qword [rbx]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi]
mov rbx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, rbx
test rbx, rbx
jne 0x140003180
mov eax, dword [0x14000cbe0]
mov ebx, 1
test eax, eax
je 0x14000325e
cmp dword [0x14000cbe4], 0
jne 0x14000325e
cmp dword [0x14000de60], 0
jne 0x14000325e
lea r8, [0x14000d610]
mov edx, 0x104
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003223
mov al, byte [r8 + rcx]
test al, al
je 0x140003223
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x140003205
test rdx, rdx
jne 0x14000322b
sub rcx, rbx
test byte [0x14000de64], 0x20
mov byte [rcx], 0
je 0x140003241
lea rcx, [rsp + 0x40]
call fcn.1400076b8
lea rcx, [0x1400096c0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.140001ec4
mov eax, dword [0x14000cbe0]
cmp word [0x14000de74], bx
je 0x1400032bc
test eax, eax
je 0x1400032bc
cmp byte [0x14000c7e0], 0
je 0x1400032bc
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]
test eax, eax
jne 0x1400032bc
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14000c7e0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x14000cbe0], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140007e20
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x1400044d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rbx, rcx
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov qword [rsp + 0x68], rax
mov esi, 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
mov rdx, rcx
and qword [rsp + 0x38], 0
xor ecx, ecx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000462b
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x14000cbe8], 0
mov edi, dword [rsp + 0x50]
jne 0x1400045a2
mov ecx, dword [0x14000de5c]
test sil, cl
je 0x1400045a2
test cl, 2
jne 0x1400045a2
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x14000de5c], ecx
test dword [0x14000de64], 0x800
je 0x1400045b6
mov dword [0x14000de7c], edi
jmp 0x140004600
cmp dword [0x14000de78], 0
jne 0x1400045f6
movzx ecx, word [0x14000de74]
mov ebx, dword [0x14000de70]
call fcn.140002140
cmp ebx, eax
jne 0x1400045f6
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1400045e8
test sil, dil
jne 0x1400045f6
test dword [0x14000de64], 0x200
je 0x140004600
jmp 0x1400045ae
mov dword [0x14000de7c], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x14000de64], 0x400
je 0x140004699
cmp dword [rsp + 0x50], 0
jge 0x140004699
jmp 0x140004697
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000de7c], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c4
xor ecx, ecx
call fcn.140004b0c
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140007e20
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400047c8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r15, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x14000498c
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x14000497c
mov edx, 0xc3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x14000497c
lea rdx, str.SHGetPathFromIDList
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x14000497c
cmp byte [0x14000d440], bl
lea rdi, [0x14000d440]
mov ebp, 0x104
jne 0x1400048b0
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140004880
add rdx, rdi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
mov r14, rax
cmp byte [rax], 0x5c
jne 0x1400048b0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
cmp byte [rax], 0x3a
je 0x1400048b0
mov byte [r14], bl
mov r14, qword [rsp + 0xb0]
lea rax, [0x14000c860]
mov qword [rsp + 0x48], rax
mov rcx, r14
lea rax, [0x1400047a0]
mov byte [0x14000ca70], bl
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], rdi
call qword [0x140009520]
lea rcx, [rsp + 0x30]
call r14
mov r14, rax
test rax, rax
je 0x140004966
mov rcx, r13
call qword [0x140009520]
mov rdx, rdi
mov rcx, r14
call r13
cmp byte [0x14000d440], bl
je 0x140004957
lea rcx, [0x14000ca70]
sub rdi, rcx
lea rax, [rbp + 0x7ffffefa]
test rax, rax
je 0x14000494d
mov al, byte [rdi + rcx]
test al, al
je 0x14000494d
mov byte [rcx], al
inc rcx
sub rbp, 1
jne 0x14000492f
test rbp, rbp
jne 0x140004955
dec rcx
mov byte [rcx], bl
mov rcx, r12
call qword [0x140009520]
mov rcx, r14
call r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [0x14000ca70], bl
setne bl
mov eax, ebx
jmp 0x1400049ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x140004991
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov rcx, r15
call fcn.140004b0c
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004dac
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]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp eax, ebp
ja 0x140004e40
test rsi, rsi
je 0x140004e40
test eax, eax
jne 0x140004df8
xor eax, eax
jmp 0x140004e42
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140004df4
mov r9, rbx
mov rdx, rbp
mov r8, rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005040
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
lea r13, [0x14000cf20]
mov ebx, edx
mov rsi, rcx
mov rax, r13
lea edi, [r14 + 1]
cmp dword [rax], edi
je 0x14000508a
add r14d, edi
lea rcx, [0x14000d420]
add rax, 0x20
cmp rax, rcx
jl 0x140005073
cmp r14d, 0x28
jne 0x1400050bd
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c830]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004b0c
or rax, 0xffffffffffffffff
jmp 0x140005256
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14000510e
test ebx, 0x10b
jne 0x1400050b4
movsxd rdx, r14d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000d560]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000d568]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x140005253
test bl, 8
je 0x14000511c
or rcx, 0xffffffffffffffff
jmp 0x14000522d
mov al, bl
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140005152
bt ebx, 0xa
jae 0x140005140
mov ebx, edi
jmp 0x140005162
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140005162
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000522d
cmp ebx, 3
je 0x14000522d
mov al, byte [rsi]
test al, al
je 0x140005207
xor r15d, r15d
lea rdi, [rsi + 1]
cmp byte [rdi], 0x3a
jne 0x1400051b9
cmp byte [rsi + 2], 0x5c
jne 0x1400051b9
lea rdi, [rsi + 3]
jmp 0x1400051cb
cmp al, 0x5c
jne 0x1400051cb
cmp byte [rdi], al
jne 0x1400051cb
lea rdi, [rsi + 2]
mov r15d, 2
cmp byte [rdi], 0
je 0x140005207
cmp byte [rdi], 0x5c
jne 0x1400051f6
cmp byte [rdi - 1], 0x3a
je 0x1400051f6
test r15d, r15d
je 0x1400051e5
dec r15d
jmp 0x1400051f6
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
mov rdi, rax
cmp byte [rax], 0
jne 0x1400051d0
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x14000524f
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x140005253
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140005a60
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.140004dac
mov r8d, 0xa
mov dword [0x14000d568], eax
lea rdx, str.CABINET
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14000d560], rax
test rax, rax
je 0x140005c59
mov rcx, qword [0x14000c830]
test rcx, rcx
je 0x140005afc
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000c830]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140005938
test eax, eax
jne 0x140005b0f
mov edx, 0x4ba
jmp 0x140005bc8
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x140005280]
mov dword [rsp + 0x38], 1
lea rax, [0x140005460]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140005040]
lea rax, [fcn.1400053f0]
mov qword [rsp + 0x28], rax
lea rdx, [0x140005510]
lea rax, [0x140005320]
lea rcx, [0x1400054f0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
mov rdi, rax
test rax, rax
je 0x140005bbc
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x1400095f0]
and qword [rsp + 0x28], 0
lea rax, [0x140005520]
lea rdx, str.MEMCAB
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDICopy]
mov ebx, eax
test eax, eax
je 0x140005be9
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
test eax, eax
jne 0x140005be9
mov edx, dword [0x14000d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c830]
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
call fcn.140004b0c
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140005c03
call qword [sym.imp.KERNEL32.dll_FreeResource]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140005c2d
cmp dword [0x14000d5fc], ebx
jne 0x140005c2d
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004b0c
test byte [0x14000cbf8], 1
jne 0x140005c57
test byte [0x14000de64], 1
jne 0x140005c57
mov rcx, qword [0x14000c830]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140005e64
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 [0x14000c008]
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.1400010c4
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140005edd
mov al, byte [r14 + rcx]
test al, al
je 0x140005edd
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140005ebe
test rdx, rdx
jne 0x140005ee5
dec rcx
mov byte [rcx], dil
lea r8, [rsp + 0x20]
mov rcx, rbx
mov edx, 0x104
call fcn.140007628
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005f76
cmp esi, 0x190
jl 0x140005e9b
mov r9, rbx
lea rdx, [0x14000986c]
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x140005f4c
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140007e20
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]
test eax, eax
je 0x140005f19
mov dword [0x14000cbe0], 1
mov edi, 1
jmp 0x140005f4c