joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000261c
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 r14
push r15
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 r15d, [rdi + 1]
jne 0x1400027e0
add rsi, r15
movsx rcx, byte [rsi]
call qword [sym.imp.USER32.dll_CharUpperA]
nop dword [rax + rax]
mov rcx, rsi
mov r14, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rsi, rax
cmp r14b, 0x53
je 0x1400027dd
cmp r14b, 0x57
je 0x1400027c7
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 0x1400026e5
mov al, byte [r8 + rcx]
test al, al
je 0x1400026e5
mov byte [rcx], al
add rcx, r15
sub rdx, r15
jne 0x1400026c7
test rdx, rdx
lea rax, [rcx - 1]
mov r8, rsi
mov edx, 0x104
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov byte [rax], dil
call fcn.140007ba8
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400027f5
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, [0x140009700]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400027b4
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x1400027ad
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
nop dword [rax + rax]
test eax, eax
je 0x1400027a9
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
call fcn.140001008
mov edi, r15d
jmp 0x1400027b4
mov eax, dword [rsp + 0x30]
cmp eax, r15d
cmove edi, r15d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400027f1
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
nop dword [rax + rax]
jmp 0x1400027f5
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
nop dword [rax + rax]
test edi, edi
jne 0x140002805
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.140007ba8
mov eax, r15d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x198]
add rsp, 0x160
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002834
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 0x140002a2f
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.14000261c
test eax, eax
je 0x140002a35
lea rdx, [rbp + 0x58]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x1400029fe
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.DLL_GlobalAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140002a35
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GlobalLock]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140002a35
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]
nop dword [rax + rax]
test eax, eax
je 0x1400029ea
lea r9, [rbp + 0x48]
mov rcx, r14
lea r8, [rbp - 0x10]
lea rdx, [0x14000981c]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
je 0x1400029ed
cmp dword [rbp + 0x48], r14d
je 0x1400029ed
mov rax, qword [rbp - 0x10]
lea rcx, [r15 + 0x90]
add rcx, rdi
mov edx, r14d
mov r9d, dword [rax + 0xc]
mov r8d, dword [rax + 8]
cmp r8d, dword [rcx - 0xc]
jae 0x140002977
or eax, 0xffffffff
jmp 0x14000298c
jbe 0x140002980
mov eax, 1
jmp 0x14000298c
cmp r9d, dword [rcx - 8]
jb 0x140002972
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x28], eax
cmp r8d, dword [rcx]
jae 0x14000299a
or eax, 0xffffffff
jmp 0x1400029af
jbe 0x1400029a3
mov eax, 1
jmp 0x1400029af
cmp r9d, dword [rcx + 4]
jb 0x140002995
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x20], eax
add rcx, 0x18
add rdx, 4
cmp rdx, 8
jl 0x14000296c
cmp dword [rbp - 0x28], r14d
jl 0x1400029cd
cmp dword [rbp - 0x20], r14d
jle 0x1400029ed
cmp dword [rbp - 0x24], r14d
jl 0x1400029d9
cmp dword [rbp - 0x1c], r14d
jle 0x1400029ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
nop dword [rax + rax]
jmp 0x140002a35
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GlobalUnlock]
nop dword [rax + rax]
jmp 0x140002a16
cmp dword [rdi + r15 + 0x84], r14d
jne 0x140002a35
cmp dword [rdi + r15 + 0x88], r14d
jne 0x140002a35
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 0x140002879
mov r13d, 1
mov rax, qword [rbp + 0x60]
mov dword [rax], r12d
test rbx, rbx
je 0x140002a50
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GlobalFree]
nop dword [rax + rax]
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 0x140002c54
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.DLL_GetVersion]
nop dword [rax + rax]
xor esi, esi
test eax, eax
js 0x140002cc3
cmp al, 6
jb 0x140002cc3
lea rcx, [0x140009820]
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140002cc3
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140002cc3
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [vtable.H_MA8HI.0]
mov rdx, rbx
mov dword [0x14000d544], esi
mov rcx, rdi
call fcn.140002db4
test eax, eax
je 0x140002d7f
call fcn.1400030ec
mov ebx, eax
call fcn.1400061ec
test ebx, ebx
je 0x140002d7f
cmp byte [0x14000cd1a], sil
jne 0x140002d7f
mov edi, dword [0x14000de5c]
test dil, 1
je 0x140002d7f
test dil, 2
jne 0x140002d2d
cmp dword [0x14000d540], esi
jne 0x140002d2d
movzx ecx, word [0x14000de78]
mov ebx, dword [0x14000de7c]
call fcn.140002318
cmp ebx, eax
je 0x140002d7f
test dil, 4
jne 0x140002d5e
mov dword [rsp + 0x28], 4
lea r8, [0x140009700]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.140004dcc
cmp eax, 6
jne 0x140002d7f
cmp word [0x14000de78], si
jne 0x140002d7a
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x140002d7f
call fcn.140001c0c
mov rcx, qword [0x14000c830]
test rcx, rcx
je 0x140002d97
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000d544]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400030ec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000cd18], di
jne 0x140003141
cmp dword [0x14000cd04], edi
jne 0x140003134
call fcn.1400060a4
test eax, eax
je 0x140003236
cmp word [0x14000cd18], di
jne 0x140003141
call fcn.140003f74
test eax, eax
je 0x140003236
call fcn.140005fe4
test eax, eax
je 0x140003236
call fcn.1400066c4
test eax, eax
je 0x140003236
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.140007ba8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400031c9
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400031c9
xor edx, edx
lea rcx, [0x14000d610]
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
nop dword [rax + rax]
cmp dword [0x14000cd04], edi
jne 0x140003273
cmp dword [0x14000de60], edi
jne 0x140003273
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000325a
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
xor ecx, ecx
call fcn.140004dcc
call fcn.140007700
mov dword [0x14000d544], eax
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140006ca4
test eax, eax
je 0x140003236
lea rcx, [0x14000d610]
call qword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
nop dword [rax + rax]
test eax, eax
jne 0x140003291
mov edx, 0x4bc
jmp 0x140003212
cmp dword [0x14000cd0c], edi
jne 0x14000332d
lea rax, [0x14000d040]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x1400032a9
test byte [0x14000cd18], 1
jne 0x1400032fb
test byte [0x14000de64], 1
jne 0x1400032fb
mov eax, dword [0x14000c1ac]
lea r9, [0x140003910]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.140007ac8
test rax, rax
jmp 0x140003302
call fcn.140005d90
test eax, eax
jne 0x140003313
mov dword [0x14000d544], 0x8007042b
jmp 0x140003236
lea rcx, [0x1400078b0]
call fcn.14000772c
test eax, eax
je 0x140003236
mov dword [0x14000d544], edi
mov eax, dword [0x14000d028]
test al, 0x40
jne 0x140003349
test al, al
js 0x140003349
movzx ecx, word [0x14000de78]
call fcn.140002318
jmp 0x14000334b
mov eax, edi
mov dword [0x14000de7c], eax
mov eax, dword [0x14000cd04]
test eax, eax
jne 0x140003376
cmp dword [0x14000de60], edi
jne 0x140003376
call fcn.1400040c4
test eax, eax
je 0x140003236
mov eax, dword [0x14000cd04]
cmp word [0x14000cd18], di
jne 0x140003388
test eax, eax
jne 0x140003388
call fcn.14000494c
mov eax, 1
jmp 0x140003238
Function at 0x14000473c
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 + 0x68], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov esi, 1
and qword [rsp + 0x38], 0
mov rdx, rcx
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.DLL_CreateProcessA]
nop dword [rax + rax]
test eax, eax
je 0x1400048b3
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x14000cd08], 0
mov edi, dword [rsp + 0x50]
jne 0x14000481e
mov ecx, dword [0x14000de5c]
test sil, cl
je 0x14000481e
test cl, 2
jne 0x14000481e
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x14000de5c], ecx
test dword [0x14000de64], 0x800
je 0x140004832
mov dword [0x14000d544], edi
jmp 0x14000487c
cmp dword [0x14000d540], 0
jne 0x140004872
movzx ecx, word [0x14000de78]
mov ebx, dword [0x14000de7c]
call fcn.140002318
cmp ebx, eax
jne 0x140004872
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x140004864
test sil, dil
jne 0x140004872
test dword [0x14000de64], 0x200
je 0x14000487c
jmp 0x14000482a
mov dword [0x14000d544], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
nop dword [rax + rax]
test dword [0x14000de64], 0x400
je 0x14000491e
cmp dword [rsp + 0x50], 0
jge 0x14000491e
jmp 0x14000491c
call fcn.140007700
mov dword [0x14000d544], eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
nop dword [rax + rax]
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]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4c4
xor ecx, ecx
call fcn.140004dcc
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140008470
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004a60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rbp, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
nop dword [rax + rax]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140004c20
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x140004c0a
mov edx, 0xc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140004c0a
lea rdx, str.SHGetPathFromIDList
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x140004c0a
cmp byte [0x14000cba0], bl
lea r13, [0x14000cba0]
jne 0x140004b67
mov rdx, r13
mov ecx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetTempPathA]
nop dword [rax + rax]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], bl
jne 0x140004b2b
add rdx, r13
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
mov rsi, rax
cmp byte [rax], 0x5c
jne 0x140004b67
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_CharPrevA]
nop dword [rax + rax]
cmp byte [rax], 0x3a
je 0x140004b67
mov byte [rsi], bl
lea rax, [0x14000c850]
mov byte [0x14000ca60], bl
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x30]
lea rax, [0x140004a30]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x58], rax
mov rax, r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x60], r13
call qword [vtable.H_MA8HI.0]
mov rsi, rax
test rax, rax
je 0x140004bee
mov rcx, rax
mov rdx, r13
mov rax, r15
call qword [vtable.H_MA8HI.0]
cmp byte [0x14000cba0], bl
je 0x140004be2
mov r8, r13
lea rcx, [0x14000ca60]
mov edx, 0x104
call fcn.140001008
mov rcx, rsi
mov rax, r14
call qword [vtable.H_MA8HI.0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
nop dword [rax + rax]
cmp byte [0x14000ca60], bl
setne bl
mov eax, ebx
jmp 0x140004c41
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
nop dword [rax + rax]
mov edx, 0x4c1
jmp 0x140004c25
mov edx, 0x4c2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov rcx, rbp
call fcn.140004dcc
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005050
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 0x140005109
test rsi, rsi
je 0x140005109
test eax, eax
je 0x140005121
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 0x140005121
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 0x14000510b

Function at 0x1400051bc
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
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140005263
shr eax, 4
not eax
and eax, 1
je 0x140005263
xor ebx, ebx
cmp dword [0x14000d600], ebx
jne 0x140005246
test byte [0x14000cd18], 1
jne 0x140005246
mov r8, qword [0x14000c828]
lea r9, [0x140003840]
mov qword [rsp + 0x28], 6
mov edx, 0x7d3
mov qword [rsp + 0x20], rbx
mov qword [0x14000d830], rdi
call fcn.140007ac8
sub rax, 6
je 0x140005246
sub rax, 1
je 0x14000525f
cmp rax, 0x832
jne 0x140005246
mov dword [0x14000d600], 1
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
nop dword [rax + rax]
mov ebx, 1
mov eax, ebx
jmp 0x140005268
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140005380
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, [0x14000d040]
mov ebx, edx
mov rsi, rcx
mov rax, r13
lea edi, [r14 + 1]
cmp dword [rax], edi
je 0x1400053ca
add r14d, edi
lea rcx, [0x14000d540]
add rax, 0x20
cmp rax, rcx
jl 0x1400053b3
cmp r14d, 0x28
jne 0x1400053fd
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIIsCabinet
call fcn.140004dcc
or rax, 0xffffffffffffffff
jmp 0x1400055b6
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrcmpA]
nop dword [rax + rax]
test eax, eax
jne 0x140005454
test ebx, 0x10b
jne 0x1400053f4
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 0x1400055b3
test bl, 8
je 0x140005462
or rcx, 0xffffffffffffffff
jmp 0x14000558d
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x140005498
bt ebx, 0xa
jae 0x140005486
mov ebx, edi
jmp 0x1400054a8
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x1400054a8
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]
nop dword [rax + rax]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000558d
cmp ebx, 3
je 0x14000558d
cmp byte [rsi], 0
je 0x140005561
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r15d, r15d
cmp al, 0x3a
jne 0x140005505
cmp byte [rdi], 0x5c
jne 0x140005505
lea rdi, [rsi + 3]
jmp 0x140005514
cmp byte [rsi], 0x5c
jne 0x140005518
cmp al, 0x5c
jne 0x140005518
mov r15d, 2
mov al, byte [rdi]
jmp 0x14000555d
lea rdi, [rsi + 1]
jmp 0x14000555d
cmp al, 0x5c
jne 0x140005549
cmp byte [rdi - 1], 0x3a
je 0x140005549
test r15d, r15d
je 0x140005532
dec r15d
jmp 0x140005549
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x14000551e
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]
nop dword [rax + rax]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400055af
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x1400055b3
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 0x140005d90
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.140005050
mov r8d, 0xa
mov dword [0x14000d568], 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 [0x14000d560], rax
test rax, rax
je 0x140005fd1
mov rcx, qword [0x14000c828]
test rcx, rcx
je 0x140005e56
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 [0x14000c828]
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.140005c60
test eax, eax
jne 0x140005e69
mov edx, 0x4ba
jmp 0x140005f34
lea rax, [0x14000d56c]
mov qword [rsp + 0x40], rax
lea r9, [0x1400055e0]
mov dword [rsp + 0x38], 1
lea rax, [0x1400057e0]
mov qword [rsp + 0x30], rax
lea r8, [fcn.140005380]
lea rax, [fcn.140005770]
mov qword [rsp + 0x28], rax
lea rdx, [0x140005890]
lea rax, [0x140005690]
lea rcx, [0x140005870]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140005f28
lea rax, [0x14000d560]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [0x140009700]
and qword [rsp + 0x28], 0
lea rax, [0x1400058b0]
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 0x140005f55
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
nop dword [rax + rax]
test eax, eax
jne 0x140005f55
mov edx, dword [0x14000d56c]
add edx, 0x514
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
call fcn.140004dcc
xor ebx, ebx
mov rcx, qword [0x14000d560]
test rcx, rcx
je 0x140005f75
call qword [sym.imp.KERNEL32.DLL_FreeResource]
nop dword [rax + rax]
and qword [0x14000d560], 0
test ebx, ebx
jne 0x140005f9f
cmp dword [0x14000d5fc], ebx
jne 0x140005f9f
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], FDIIsCabinet
mov edx, 0x4f8
xor ecx, ecx
call fcn.140004dcc
test byte [0x14000cd18], 1
jne 0x140005fcf
test byte [0x14000de64], 1
jne 0x140005fcf
mov rcx, qword [0x14000c828]
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