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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edi, edi
mov rsi, rdx
mov rbx, rcx
mov byte [rcx], dil
cmp byte [rdx], 0x23
lea r12d, [rdi + 1]
jne 0x1400029a3
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 0x1400029a0
cmp r14b, 0x57
je 0x140002990
lea r8, [0x140001158]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], reloc.msvcrt.dll___C_specific_handler
mov edx, 0x104
lea rcx, [rsp + 0x40]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400028a2
mov al, byte [r8 + rcx]
test al, al
je 0x1400028a2
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x140002884
test rdx, rdx
jne 0x1400028aa
sub rcx, r12
mov byte [rcx], dil
lea rcx, [rsp + 0x40]
mov r8, rsi
mov edx, 0x104
call fcn.1400078e4
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400029b2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140001070]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002983
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x14000297c
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x140002978
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140002968
mov al, byte [r8 + rcx]
test al, al
je 0x140002968
mov byte [rcx], al
add rcx, r12
sub rdx, r12
jne 0x14000294a
test rdx, rdx
jne 0x140002970
sub rcx, r12
mov byte [rcx], dil
mov edi, r12d
jmp 0x140002983
mov eax, dword [rsp + 0x30]
cmp eax, r12d
cmove edi, r12d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400029ae
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1400029b2
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x1400029c2
mov r8, rsi
mov edx, 0x104
mov rcx, rbx
call fcn.1400078e4
mov eax, r12d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x160
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400029f0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
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 0x140002bbc
mov eax, r14d
mov qword [rbp - 0x18], rax
mov edi, dword [r15 + 0x80]
lea rdx, [r15 + 0x84]
mov rcx, rsi
add rdi, rax
mov eax, dword [rdi + r15 + 0xbc]
add rdx, rax
call fcn.1400027ec
test eax, eax
je 0x140002bc2
lea rdx, [rbp + 0x48]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x140002b8b
mov edx, esi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140002bc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x140002bc2
mov edx, dword [rbp + 0x48]
mov r8d, esi
mov rsi, qword [rbp + 0x50]
mov rcx, rsi
mov r9, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140002b7d
lea r9, [rbp + 0x60]
lea r8, [rbp - 0x10]
lea rdx, [0x14000118c]
mov rcx, r14
call qword [sym.imp.VERSION.dll_VerQueryValueA]
xor r14d, r14d
test eax, eax
je 0x140002b80
cmp dword [rbp + 0x60], r14d
je 0x140002b80
mov rax, qword [rbp - 0x10]
lea rcx, [r15 + 0x94]
mov edx, r14d
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
add rcx, rdi
cmp r9d, dword [rcx - 0x10]
jae 0x140002b10
or eax, reloc.msvcrt.dll___C_specific_handler
jmp 0x140002b25
jbe 0x140002b19
mov eax, 1
jmp 0x140002b25
cmp r8d, dword [rcx - 0xc]
jb 0x140002b0b
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x28], eax
cmp r9d, dword [rcx - 4]
jae 0x140002b34
or eax, reloc.msvcrt.dll___C_specific_handler
jmp 0x140002b48
jbe 0x140002b3d
mov eax, 1
jmp 0x140002b48
cmp r8d, dword [rcx]
jb 0x140002b2f
mov eax, r14d
seta al
mov dword [rbp + rdx - 0x20], eax
add rdx, 4
add rcx, 0x18
cmp rdx, 8
jl 0x140002b05
cmp dword [rbp - 0x28], r14d
jl 0x140002b66
cmp dword [rbp - 0x20], r14d
jle 0x140002b80
cmp dword [rbp - 0x24], r14d
jl 0x140002b72
cmp dword [rbp - 0x1c], r14d
jle 0x140002b80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140002bc2
xor r14d, r14d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x140002ba3
cmp dword [rdi + r15 + 0x84], r14d
jne 0x140002bc2
cmp dword [rdi + r15 + 0x88], r14d
jne 0x140002bc2
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 0x140002a30
mov r13d, 1
mov rax, qword [rbp + 0x58]
mov dword [rax], r12d
test rbx, rbx
je 0x140002bd7
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 0x140002e44
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]
xor esi, esi
test eax, eax
js 0x140002e9d
cmp al, 6
jb 0x140002e9d
lea rcx, [0x140001190]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002e9d
lea rdx, [0x1400011b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002e9d
lea edx, [rsi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call rax
mov rdx, rbx
mov rcx, rdi
mov dword [0x14000b07c], esi
call fcn.140002f80
test eax, eax
je 0x140002f4f
call fcn.140003294
mov ebx, eax
call fcn.140003508
test ebx, ebx
je 0x140002f4f
cmp byte [0x140009dfa], sil
jne 0x140002f4f
mov edi, dword [0x14000b05c]
test dil, 1
je 0x140002f4f
test dil, 2
jne 0x140002f03
cmp dword [0x14000b078], esi
jne 0x140002f03
movzx ecx, word [0x14000b074]
mov ebx, dword [0x14000b070]
call fcn.140002550
cmp ebx, eax
je 0x140002f4f
test dil, 4
jne 0x140002f34
lea r8, [0x140001070]
xor r9d, r9d
mov edx, 0x522
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x40
call fcn.140004e14
cmp eax, 6
jne 0x140002f4f
cmp word [0x14000b074], si
jne 0x140002f4a
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x140002f4f
call fcn.140001f08
mov rcx, qword [0x140009a30]
test rcx, rcx
je 0x140002f61
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x14000b07c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140003294
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x140009df8], di
jne 0x1400032e8
cmp dword [0x140009de4], edi
jne 0x1400032df
call fcn.140005fb8
test eax, eax
jne 0x1400032d6
xor eax, eax
jmp 0x1400034e1
cmp word [0x140009df8], di
jne 0x1400032e8
call fcn.1400040cc
test eax, eax
je 0x1400032cf
call fcn.140005ef8
test eax, eax
je 0x1400032cf
call fcn.1400063e0
test eax, eax
je 0x1400032cf
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x140001078]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.1400078e4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140003352
lea rdx, [0x140001200]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003352
lea rcx, [0x14000a810]
xor edx, edx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x140009de4], edi
jne 0x1400033cd
cmp dword [0x14000b060], edi
jne 0x1400033cd
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1400033b0
mov edx, 0x4f0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
call fcn.140007450
mov dword [0x14000b07c], eax
jmp 0x1400032cf
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.140006a10
test eax, eax
je 0x1400032cf
lea rcx, [0x14000a810]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1400033e5
mov edx, 0x4bc
jmp 0x140003387
cmp dword [0x140009dec], edi
jne 0x14000347d
lea rax, [0x14000a120]
mov ecx, 0x28
mov dword [rax], 1
add rax, 0x20
dec rcx
jne 0x1400033fd
test byte [0x140009df8], 1
jne 0x14000345a
test byte [0x14000b064], 1
jne 0x14000345a
mov eax, dword [0x140009244]
lea r8, [0x140003b2c]
mov qword [rsp + 0x20], rdi
neg eax
sbb rcx, rcx
xor r9d, r9d
xor edx, edx
add rcx, 0x7d5
call fcn.1400077a0
test rax, rax
jne 0x140003463
mov dword [0x14000b07c], 0x8007042b
jmp 0x1400032cf
call fcn.140005cec
test eax, eax
jmp 0x140003449
lea rcx, [0x1400075b0]
call fcn.140007478
test eax, eax
je 0x1400032cf
mov dword [0x14000b07c], edi
mov eax, dword [0x14000a108]
test al, 0x40
jne 0x14000349f
test al, al
js 0x14000349f
movzx ecx, word [0x14000b074]
call fcn.140002550
mov dword [0x14000b070], eax
jmp 0x1400034a5
mov dword [0x14000b070], edi
mov eax, dword [0x140009de4]
test eax, eax
jne 0x1400034ca
cmp dword [0x14000b060], edi
jne 0x1400034ca
call fcn.1400041fc
test eax, eax
je 0x1400032cf
mov eax, dword [0x140009de4]
cmp word [0x140009df8], di
jne 0x1400034dc
test eax, eax
jne 0x1400034dc
call fcn.1400049f8
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140003508
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 [0x140009110]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x14000a808]
jmp 0x14000356f
cmp dword [0x140009de4], 0
jne 0x140003559
cmp dword [0x14000b060], 0
jne 0x140003559
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 0x140003530
mov eax, dword [0x140009de0]
mov ebx, 1
test eax, eax
je 0x14000360e
cmp dword [0x140009de4], 0
jne 0x14000360e
cmp dword [0x14000b060], 0
jne 0x14000360e
lea r8, [0x14000a810]
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400035d3
mov al, byte [r8 + rcx]
test al, al
je 0x1400035d3
mov byte [rcx], al
add rcx, rbx
sub rdx, rbx
jne 0x1400035b5
test rdx, rdx
jne 0x1400035db
sub rcx, rbx
test byte [0x14000b064], 0x20
mov byte [rcx], 0
je 0x1400035f1
lea rcx, [rsp + 0x40]
call fcn.140007974
lea rcx, [0x140001140]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.1400022d0
mov eax, dword [0x140009de0]
cmp word [0x14000b074], bx
je 0x14000366c
test eax, eax
je 0x14000366c
cmp byte [0x1400099e0], 0
je 0x14000366c
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000366c
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1400099e0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x140009de0], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x140004814
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 [0x140009110]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rbx, rcx
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov esi, 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rdx, rcx
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000496f
mov rcx, qword [rsp + 0x58]
or edx, reloc.msvcrt.dll___C_specific_handler
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 [0x140009de8], 0
mov edi, dword [rsp + 0x50]
jne 0x1400048e6
mov ecx, dword [0x14000b05c]
test sil, cl
je 0x1400048e6
test cl, 2
jne 0x1400048e6
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x14000b05c], ecx
test dword [0x14000b064], 0x800
je 0x1400048fa
mov dword [0x14000b07c], edi
jmp 0x140004944
cmp dword [0x14000b078], 0
jne 0x14000493a
movzx ecx, word [0x14000b074]
mov ebx, dword [0x14000b070]
call fcn.140002550
cmp ebx, eax
jne 0x14000493a
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x14000492c
test sil, dil
jne 0x14000493a
test dword [0x14000b064], 0x200
je 0x140004944
jmp 0x1400048f2
mov dword [0x14000b07c], 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 [0x14000b064], 0x400
je 0x1400049ce
cmp dword [rsp + 0x50], 0
jge 0x1400049ce
jmp 0x1400049cc
call fcn.140007450
mov dword [0x14000b07c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x70]
xor r9d, r9d
xor edx, edx
mov ecx, 0x1000
mov dword [rsp + 0x28], reloc.msvcrt.dll___C_specific_handler
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 edx, 0x4c4
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
xor esi, esi
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004af0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14, rcx
lea rcx, str.SHELL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov rsi, rax
test rax, rax
je 0x140004c97
lea rdx, str.SHBrowseForFolder
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
je 0x140004c87
mov edx, 0xc3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x140004c87
lea rdx, str.SHGetPathFromIDList
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
je 0x140004c87
cmp byte [0x14000a640], bl
lea rdi, [0x14000a640]
mov ebp, 0x104
jne 0x140004bdf
mov rdx, rdi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140004ba7
add rdx, rdi
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
mov r15, rax
cmp byte [rax], 0x5c
jne 0x140004bd7
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharPrevA]
cmp byte [rax], 0x3a
je 0x140004bd7
mov byte [r15], bl
mov r15, qword [rsp + 0xa8]
lea rax, [0x140009a50]
lea rcx, [rsp + 0x30]
mov byte [0x140009c60], bl
mov qword [rsp + 0x48], rax
lea rax, [0x140004ac8]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rdi
call r13
mov r14, rax
test rax, rax
je 0x140004c71
mov rdx, rdi
mov rcx, rax
call r12
cmp byte [0x14000a640], bl
je 0x140004c6b
lea rcx, [0x140009c60]
sub rdi, rcx
lea rax, [rbp + 0x7ffffefa]
test rax, rax
je 0x140004c61
mov al, byte [rdi + rcx]
test al, al
je 0x140004c61
mov byte [rcx], al
inc rcx
dec rbp
jne 0x140004c44
test rbp, rbp
jne 0x140004c69
dec rcx
mov byte [rcx], bl
mov rcx, r14
call r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [0x140009c60], bl
setne bl
mov eax, ebx
jmp 0x140004cb8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x140004c9c
mov edx, 0x4c2
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140005094
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 rdi, rcx
mov rdx, rcx
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp eax, ebp
ja 0x140005128
test rsi, rsi
je 0x140005128
test eax, eax
jne 0x1400050e0
xor eax, eax
jmp 0x14000512a
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1400050dc
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 0x14000532c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rdi, [0x14000a120]
mov ebx, edx
mov rsi, rcx
mov rax, rdi
xor r14d, r14d
cmp dword [rax], 1
je 0x14000536e
lea rcx, [0x14000a620]
add rax, 0x20
inc r14d
cmp rax, rcx
jl 0x140005356
cmp r14d, 0x28
jne 0x1400053a1
and dword [rsp + 0x28], 0
mov rcx, qword [0x1400099d8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
or rax, 0xffffffffffffffff
jmp 0x14000554f
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400053ff
bt ebx, 8
jb 0x140005398
test bl, 8
jne 0x140005398
test bl, 1
jne 0x140005398
test bl, 2
jne 0x140005398
movsxd rdx, r14d
mov rcx, rdx
shl rcx, 5
and dword [rcx + rdi], eax
mov rax, qword [0x14000a760]
and dword [rcx + rdi + 0x10], 0
mov qword [rcx + rdi + 8], rax
mov eax, dword [0x14000a768]
mov dword [rcx + rdi + 4], 1
mov dword [rcx + rdi + 0x14], eax
jmp 0x14000554c
test bl, 8
je 0x14000540d
or rcx, 0xffffffffffffffff
jmp 0x140005528
test bl, 2
jne 0x14000541d
mov r15d, 0x80000000
test bl, 1
je 0x140005423
mov r15d, 0x40000000
bt ebx, 8
jae 0x140005448
bt ebx, 0xa
jae 0x140005436
mov ebx, 1
jmp 0x140005458
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x140005458
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005528
cmp ebx, 3
je 0x140005528
mov al, byte [rsi]
test al, al
je 0x140005501
lea rdi, [rsi + 1]
xor ebp, ebp
cmp byte [rdi], 0x3a
jne 0x1400054af
cmp byte [rsi + 2], 0x5c
jne 0x1400054af
lea rdi, [rsi + 3]
jmp 0x1400054c0
cmp al, 0x5c
jne 0x1400054c0
cmp byte [rdi], al
jne 0x1400054c0
lea rdi, [rsi + 2]
mov ebp, 2
cmp byte [rdi], 0
je 0x1400054fa
cmp byte [rdi], 0x5c
jne 0x1400054e9
cmp byte [rdi - 1], 0x3a
je 0x1400054e9
test ebp, ebp
je 0x1400054d8
dec ebp
jmp 0x1400054e9
xor edx, edx
mov rcx, rsi
mov byte [rdi], 0
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 0x1400054c5
lea rdi, [0x14000a120]
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + rdi + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x140005548
and dword [rax + rdi], 0
and dword [rax + rdi + 4], 0
jmp 0x14000554c
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140005cec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rcx, [0x1400012b0]
xor r8d, r8d
xor edx, edx
call fcn.140005094
lea rdx, [0x1400012b0]
mov r8d, 0xa
xor ecx, ecx
mov dword [0x14000a768], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x14000a760], rax
test rax, rax
je 0x140005ee5
mov rcx, qword [0x1400099d8]
test rcx, rcx
je 0x140005d88
mov edx, 0x842
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400099d8]
mov edx, 0x841
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140005bc8
test eax, eax
jne 0x140005d9b
mov edx, 0x4ba
jmp 0x140005e54
lea rax, [0x14000a76c]
lea r9, [0x140005570]
lea r8, [fcn.14000532c]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
lea rax, [0x14000573c]
mov qword [rsp + 0x30], rax
lea rax, [fcn.1400056d8]
lea rdx, [0x1400057f0]
mov qword [rsp + 0x28], rax
lea rax, [0x14000560c]
lea rcx, [0x1400057dc]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICreate]
mov rdi, rax
test rax, rax
je 0x140005e48
lea rax, [0x14000a760]
lea r8, [0x140001070]
lea rdx, str.MEMCAB
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
lea rax, [0x140005800]
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FDICopy]
mov ebx, eax
test eax, eax
je 0x140005e75
mov rcx, rdi
call qword [sym.imp.Cabinet.dll_FDIDestroy]
test eax, eax
jne 0x140005e75
mov edx, dword [0x14000a76c]
add edx, 0x514
mov rcx, qword [0x1400099d8]
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
xor ebx, ebx
mov rcx, qword [0x14000a760]
test rcx, rcx
je 0x140005e8f
call qword [sym.imp.KERNEL32.dll_FreeResource]
and qword [0x14000a760], 0
test ebx, ebx
jne 0x140005eb9
cmp dword [0x14000a7fc], ebx
jne 0x140005eb9
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4f8
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
test byte [0x140009df8], 1
jne 0x140005ee3
test byte [0x14000b064], 1
jne 0x140005ee3
mov rcx, qword [0x1400099d8]
movsxd r8, ebx
xor r9d, r9d
mov edx, 0xfa1
call qword [sym.imp.USER32.dll_SendMessageA]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret