joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100002b00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, 0x104
lea rcx, [rsp + 0x20]
xor ebx, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, ebx
je 0x100002b89
lea r8, [0x100001690]
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.100007fa4
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea edx, [rbx + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov edi, eax
je 0x100002b89
lea r8d, [rbx + 2]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll__llseek]
mov ecx, edi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll__lclose]
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.10000c850
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret

Function at 0x100002bb4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
movzx eax, cx
cmp eax, ebx
je 0x100002cc4
cmp eax, 1
je 0x100002c50
add eax, 0xfffffffe
cmp eax, 1
ja 0x100002ccb
lea rax, [rsp + 0x78]
lea rdx, str.SystemCurrentControlSetControlSession_Manager
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100002c4a
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
lea rdx, str.PendingFileRenameOperations
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x70]
cmp eax, ebx
cmovne ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x70]
jmp 0x100002ccb
lea rax, [rsp + 0x78]
lea rdx, str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100002c4a
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
jmp 0x100002c32
call fcn.100002b00
mov ebx, eax
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x100002e54
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x160
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edi, edi
mov rbp, r8
mov rbx, rcx
mov byte [rcx], dil
cmp byte [r8], 0x23
lea r13d, [rdi + 1]
jne 0x10000300e
add rbp, r13
movsx rcx, byte [rbp]
call qword [sym.imp.USER32.dll_CharUpperA]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
cmp sil, 0x53
mov rbp, rax
je 0x10000300b
cmp sil, 0x57
je 0x100002ffb
lea r8, [0x1000016a0]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 0x104
mov edx, 0x104
lea rcx, [rsp + 0x40]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100002f0d
mov al, byte [r8 + rcx]
test al, al
je 0x100002f0d
mov byte [rcx], al
add rcx, r13
sub rdx, r13
jne 0x100002eef
test rdx, rdx
jne 0x100002f15
sub rcx, r13
mov byte [rcx], dil
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x104
call fcn.100007fa4
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 0x10000301d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1000015b9]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100002fee
mov eax, dword [rsp + 0x30]
cmp eax, 2
jne 0x100002fe7
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x100002fe3
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, rbx
sub r8, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100002fd3
mov al, byte [r8 + rcx]
test al, al
je 0x100002fd3
mov byte [rcx], al
add rcx, r13
sub rdx, r13
jne 0x100002fb5
test rdx, rdx
jne 0x100002fdb
sub rcx, r13
mov byte [rcx], dil
mov edi, r13d
jmp 0x100002fee
mov eax, dword [rsp + 0x30]
cmp eax, r13d
cmove edi, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100003019
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10000301d
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x10000302d
mov r8, rbp
mov edx, 0x104
mov rcx, rbx
call fcn.100007fa4
mov eax, r13d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10000c850
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x100003060
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov r12, rcx
cmp dword [rcx + 0x7c], ebp
mov rbx, rbp
mov r14d, ebp
mov r13d, ebp
jle 0x100003230
mov r15, rbp
mov edi, dword [r12 + 0x80]
mov edx, 0x104
mov rcx, rsi
add rdi, r15
mov eax, dword [rdi + r12 + 0xbc]
lea r8, [rax + r12 + 0x84]
call fcn.100002e54
cmp eax, ebp
je 0x100003236
lea rdx, [rsp + 0x80]
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebp
mov esi, eax
je 0x100003201
mov rdx, rsi
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rbp
mov rbx, rax
je 0x100003236
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
mov rbp, rax
je 0x100003236
mov edx, dword [rsp + 0x80]
mov r8d, esi
mov rsi, qword [rsp + 0x88]
mov rcx, rsi
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1000031f4
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x38]
lea rdx, [0x1000016d4]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueA
xor ebp, ebp
cmp eax, ebp
je 0x1000031f6
cmp dword [rsp + 0x20], ebp
je 0x1000031f6
mov rax, qword [rsp + 0x38]
lea rdx, [rdi + r12 + 0x94]
mov rcx, rbp
mov r8d, dword [rax + 0xc]
mov r9d, dword [rax + 8]
lea r10d, [rbp + 1]
cmp r9d, dword [rdx - 0x10]
jae 0x10000318d
or eax, 0xffffffff
jmp 0x10000319f
jbe 0x100003194
mov eax, r10d
jmp 0x10000319f
cmp r8d, dword [rdx - 0xc]
jb 0x100003188
mov eax, ebp
seta al
cmp r9d, dword [rdx - 4]
mov dword [rsp + rcx + 0x28], eax
jae 0x1000031ae
or eax, 0xffffffff
jmp 0x1000031bf
jbe 0x1000031b5
mov eax, r10d
jmp 0x1000031bf
cmp r8d, dword [rdx]
jb 0x1000031a9
mov eax, ebp
seta al
mov dword [rsp + rcx + 0x30], eax
add rcx, 4
add rdx, 0x18
cmp rcx, 8
jl 0x100003182
cmp dword [rsp + 0x28], ebp
jl 0x1000031dd
cmp dword [rsp + 0x30], ebp
jle 0x1000031f6
cmp dword [rsp + 0x2c], ebp
jl 0x1000031e9
cmp dword [rsp + 0x34], ebp
jle 0x1000031f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x100003236
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10000321d
cmp dword [rdi + r12 + 0x84], ebp
jne 0x100003236
cmp dword [rdi + r12 + 0x88], ebp
jne 0x100003236
mov rsi, qword [rsp + 0x88]
add r13d, 1
add r15, 0x3c
cmp r13d, dword [r12 + 0x7c]
jl 0x10000309b
mov r14d, 1
test rbx, rbx
mov rax, qword [rsp + 0x98]
mov dword [rax], r13d
je 0x10000324f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, r14d
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100003488
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jb 0x1000034e5
cmp al, 6
jb 0x1000034e5
lea rcx, [0x1000016d8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1000034e5
lea rdx, [0x1000016f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1000034e5
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
and dword [0x100010488], 0
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call fcn.1000035cc
test eax, eax
je 0x10000359d
call fcn.1000038ec
mov ebx, eax
call fcn.100003ad8
test ebx, ebx
je 0x10000359d
cmp byte [0x10001141a], 0
jne 0x10000359d
mov edi, dword [0x100010ebc]
test dil, 1
je 0x10000359d
test dil, 2
jne 0x100003550
cmp dword [0x10001048c], 0
jne 0x100003550
movzx ecx, word [0x100010490]
mov ebx, dword [0x1000105a4]
call fcn.100002bb4
cmp ebx, eax
je 0x10000359d
test dil, 4
jne 0x100003581
lea r8, [0x1000015b9]
xor r9d, r9d
mov edx, 0x522
xor ecx, ecx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x40
call fcn.100005554
cmp eax, 6
jne 0x10000359d
cmp word [0x100010490], 0
jne 0x100003598
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10000359d
call fcn.100002568
mov rcx, qword [0x100010458]
test rcx, rcx
je 0x1000035af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100010488]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1000038ec
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp word [0x100011418], 0
jne 0x10000393d
cmp dword [0x100011404], 0
jne 0x100003934
call fcn.10000663c
test eax, eax
jne 0x10000392a
xor eax, eax
jmp 0x100003ab9
cmp word [0x100011418], 0
jne 0x10000393d
call fcn.100004708
test eax, eax
je 0x100003923
call fcn.10000657c
test eax, eax
je 0x100003923
call fcn.100006a70
test eax, eax
je 0x100003923
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x1000015c0]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.100007fa4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
je 0x1000039a7
lea rdx, [0x100001748]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1000039a7
lea rcx, [0x100010670]
xor edx, edx
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100011404], 0
jne 0x100003a25
cmp dword [0x100010ec0], 0
jne 0x100003a25
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100003a08
mov edx, 0x4f0
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.100005554
call fcn.100007b04
mov dword [0x100010488], eax
jmp 0x100003923
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.1000070b0
test eax, eax
je 0x100003923
lea rcx, [0x100010670]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x100003a3d
mov edx, 0x4bc
jmp 0x1000039de
cmp dword [0x10001140c], 0
jne 0x100003a53
call fcn.100004840
test eax, eax
je 0x100003923
mov eax, dword [0x100011728]
test al, 0x40
jne 0x100003a75
test al, al
js 0x100003a75
movzx ecx, word [0x100010490]
call fcn.100002bb4
mov dword [0x1000105a4], eax
jmp 0x100003a7c
and dword [0x1000105a4], 0
mov eax, dword [0x100011404]
test eax, eax
jne 0x100003aa1
cmp dword [0x100010ec0], eax
jne 0x100003aa1
call fcn.1000048e8
test eax, eax
je 0x100003923
mov eax, dword [0x100011404]
cmp word [0x100011418], 0
jne 0x100003ab4
test eax, eax
jne 0x100003ab4
call fcn.100005148
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10000c850
add rsp, 0x260
pop rbx
ret
Function at 0x100003ad8
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 [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [0x100010668]
jmp 0x100003b3f
cmp dword [0x100011404], 0
jne 0x100003b29
cmp dword [0x100010ec0], 0
jne 0x100003b29
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]
test rbx, rbx
mov rdi, rbx
jne 0x100003b00
mov eax, dword [0x100011400]
test eax, eax
je 0x100003bdc
cmp dword [0x100011404], 0
jne 0x100003bdc
cmp dword [0x100010ec0], 0
jne 0x100003bdc
lea r8, [0x100010670]
lea rax, [rsp + 0x40]
mov edx, 0x104
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x100003ba0
mov al, byte [r8 + rcx]
test al, al
je 0x100003ba0
mov byte [rcx], al
add rcx, 1
sub rdx, 1
jne 0x100003b80
test rdx, rdx
jne 0x100003ba9
sub rcx, 1
test byte [0x100010ec4], 0x20
mov byte [rcx], 0
je 0x100003bbf
lea rcx, [rsp + 0x40]
call fcn.100008030
lea rcx, [0x100001688]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x40]
call fcn.10000290c
mov eax, dword [0x100011400]
cmp word [0x100010490], 1
je 0x100003c3b
test eax, eax
je 0x100003c3b
cmp byte [0x1000103f0], 0
je 0x100003c3b
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 0x100003c3b
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1000103f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [0x100011400], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10000c850
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
Function at 0x100004f68
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x10000f100]
xor rax, rsp
mov qword [rsp + 0x270], 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 0x1000050b9
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 [0x100011408], 0
mov edi, dword [rsp + 0x50]
jne 0x100005036
mov ecx, dword [0x100010ebc]
test sil, cl
je 0x100005036
test cl, 2
jne 0x100005036
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, edi
mov dword [0x100010ebc], ecx
bt dword [0x100010ec4], 0xb
jae 0x100005048
mov dword [0x100010488], edi
jmp 0x100005090
cmp dword [0x10001048c], 0
jne 0x100005086
movzx ecx, word [0x100010490]
mov ebx, dword [0x1000105a4]
call fcn.100002bb4
cmp ebx, eax
jne 0x100005086
mov eax, edi
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x10000507a
test sil, dil
jne 0x100005086
bt dword [0x100010ec4], 9
jae 0x100005090
jmp 0x100005040
mov dword [0x100010488], 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]
bt dword [0x100010ec4], 0xa
jae 0x100005118
cmp dword [rsp + 0x50], 0
jge 0x100005118
jmp 0x100005116
call fcn.100007b04
mov dword [0x100010488], 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], 0x200
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.100005554
xor esi, esi
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10000c850
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100005240
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, 0x80
mov r12, rcx
lea rcx, [0x10000f460]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp rax, rbx
mov rdi, rax
je 0x1000053e3
lea rdx, [0x10000f490]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov r14, rax
je 0x1000053d3
mov edx, 0xc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov r15, rax
je 0x1000053d3
lea rdx, [0x10000f4a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov r13, rax
je 0x1000053d3
cmp byte [0x1000104a0], bl
lea rsi, [0x1000104a0]
mov ebp, 0x104
jne 0x100005328
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rsi
movsxd rdx, eax
add rdx, rsi
call qword [sym.imp.USER32.dll_CharPrevA]
mov qword [rsp + 0x30], rax
cmp byte [rax], 0x5c
jne 0x100005328
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharPrevA]
cmp byte [rax], 0x3a
je 0x100005328
mov rax, qword [rsp + 0x30]
mov byte [rax], bl
lea rax, [0x10000ffe0]
lea rcx, [rsp + 0x40]
mov byte [0x10000fcd0], bl
mov qword [rsp + 0x58], rax
lea rax, [0x100005218]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rsi
call r14
cmp rax, rbx
mov r12, rax
je 0x1000053bd
mov rdx, rsi
mov rcx, rax
call r13
cmp byte [0x1000104a0], bl
je 0x1000053b7
lea rcx, [0x10000fcd0]
sub rsi, rcx
lea rax, [rbp + 0x7ffffefa]
cmp rax, rbx
je 0x1000053ac
mov al, byte [rsi + rcx]
cmp al, bl
je 0x1000053ac
mov byte [rcx], al
add rcx, 1
sub rbp, 1
jne 0x10000538d
cmp rbp, rbx
jne 0x1000053b5
sub rcx, 1
mov byte [rcx], bl
mov rcx, r12
call r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [0x10000fcd0], bl
setne bl
mov eax, ebx
jmp 0x100005404
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x1000053e8
mov edx, 0x4c2
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call fcn.100005554
xor eax, eax
lea r11, [rsp + 0x80]
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 0x1000057d4
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 ebx, r8d
mov rbp, 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]
cmp eax, ebx
mov edi, eax
ja 0x100005864
test rsi, rsi
je 0x100005864
test eax, eax
jne 0x100005820
xor eax, eax
jmp 0x100005866
mov r8d, 0xa
mov rdx, rbp
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]
test rax, rax
mov rbx, rax
je 0x10000581c
mov r8, rdi
mov rdx, rax
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x100005940
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]
cmp eax, 0xffffffff
je 0x1000059d3
shr eax, 4
not eax
and eax, ebx
je 0x1000059d3
cmp dword [0x100010660], 0
jne 0x1000059c5
test byte [0x100011418], bl
jne 0x1000059c5
mov r8, qword [0x100010448]
mov rcx, qword [0x100010ee0]
lea r9, [0x100004098]
mov edx, 0x7d3
mov qword [rsp + 0x28], 6
and qword [rsp + 0x20], 0
mov qword [0x100010890], rdi
call fcn.100007e60
sub rax, 6
je 0x1000059c5
sub rax, rbx
je 0x1000059e0
cmp rax, 0x832
jne 0x1000059c5
mov dword [0x100010660], ebx
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ebx, ebx
jmp 0x1000059d3
Function at 0x100005b04
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
lea rdi, [0x100010f00]
mov ebx, edx
mov rsi, rcx
mov rax, rdi
xor r12d, r12d
cmp dword [rax], 1
je 0x100005b47
lea rcx, [0x100011400]
add rax, 0x20
add r12d, 1
cmp rax, rcx
jl 0x100005b2e
cmp r12d, 0x28
jne 0x100005b7a
and dword [rsp + 0x28], 0
mov rcx, qword [0x100010448]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], 0x10
call fcn.100005554
or rax, 0xffffffffffffffff
jmp 0x100005d29
lea rdx, [0x10000f428]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x100005bd8
bt ebx, 8
jb 0x100005b71
test bl, 8
jne 0x100005b71
test bl, 1
jne 0x100005b71
test bl, 2
jne 0x100005b71
movsxd rdx, r12d
mov rcx, rdx
shl rcx, 5
and dword [rcx + rdi], eax
mov rax, qword [0x1000105c0]
and dword [rcx + rdi + 0x10], 0
mov qword [rcx + rdi + 8], rax
mov eax, dword [0x1000105c8]
mov dword [rcx + rdi + 4], 1
mov dword [rcx + rdi + 0x14], eax
jmp 0x100005d26
test bl, 8
je 0x100005be6
or rcx, 0xffffffffffffffff
jmp 0x100005d02
test bl, 2
jne 0x100005bf6
test bl, 1
mov r13d, 0x80000000
je 0x100005bfc
mov r13d, 0x40000000
bt ebx, 8
jae 0x100005c21
bt ebx, 0xa
jae 0x100005c0f
mov ebx, 1
jmp 0x100005c31
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x100005c31
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, r13d
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rcx, rax
jne 0x100005d02
cmp ebx, 3
je 0x100005d02
mov al, byte [rsi]
test al, al
je 0x100005cdb
lea rdi, [rsi + 1]
xor ebp, ebp
cmp byte [rdi], 0x3a
jne 0x100005c88
cmp byte [rsi + 2], 0x5c
jne 0x100005c88
lea rdi, [rsi + 3]
jmp 0x100005c99
cmp al, 0x5c
jne 0x100005c99
cmp byte [rdi], al
jne 0x100005c99
lea rdi, [rsi + 2]
mov ebp, 2
cmp byte [rdi], 0
je 0x100005cd4
cmp byte [rdi], 0x5c
jne 0x100005cc3
cmp byte [rdi - 1], 0x3a
je 0x100005cc3
test ebp, ebp
je 0x100005cb2
sub ebp, 1
jmp 0x100005cc3
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 0x100005c9e
lea rdi, [0x100010f00]
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
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, r12d
mov rax, rdx
shl rax, 5
cmp rcx, 0xffffffffffffffff
mov qword [rax + rdi + 0x18], rcx
je 0x100005d22
and dword [rax + rdi], 0
and dword [rax + rdi + 4], 0
jmp 0x100005d26
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 r13
pop r12
pop rdi
ret