joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d6ef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d78f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d798a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d796e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d7962
cmp qword [rbp - 0x10], 0
je 0x2fc4d7962
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d7928
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d798b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7a90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d7ab8
mov eax, 0
jmp 0x2fc4d7b06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d7ae1
mov eax, 0
jmp 0x2fc4d7b06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d7b01
mov eax, 0
jmp 0x2fc4d7b06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7b0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d7b8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7b81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d7b81
mov rax, qword [rbp - 8]
jmp 0x2fc4d7b9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d7b54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009400
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, rcx
xor edx, edx
mov ecx, 2
mov rbp, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x12c
mov r15, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x130
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140009553
xor r12d, r12d
xorps xmm0, xmm0
mov qword [rsp + 0x30], r12
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x6c]
mov r8, rbp
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x1400094a0
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140003520
cmp qword [r14 + 0x18], 0xf
mov rdx, r14
jbe 0x1400094c5
mov rdx, qword [r14]
mov rsi, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov rbx, qword [rsp + 0x20]
cmp rsi, 0xf
mov r8, qword [rsp + 0x30]
cmova rcx, rbx
cmp r8, qword [r14 + 0x10]
jne 0x1400094f5
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400094f5
mov dil, 1
jmp 0x1400094f8
xor dil, dil
cmp rsi, 0xf
jbe 0x14000952b
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140009523
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009548
mov rcx, rbx
call fcn.14000a6f4
test dil, dil
jne 0x14000954f
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140009480
jmp 0x140009553
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ebp, dword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000a450
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140009ed0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, rcx
mov rdi, rdx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140009f0b
lea rcx, str._DLL_Injection__Failed_to_get_kernel32.dll_module_address._n
call fcn.140001940
xor al, al
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea rdx, str.LoadLibraryA
mov qword [rsp + 0x60], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140009f46
lea rcx, str._DLL_Injection__Failed_to_get_LoadLibraryA_address._n
call fcn.140001940
mov r14, qword [rsp + 0x60]
xor al, al
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp qword [rdi + 0x18], 0xf
mov rax, rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
jbe 0x140009f5d
mov rax, qword [rdi]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140009f70
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140009fb1
lea rcx, str._DLL_Injection__Failed_to_allocate_memory_for_DLLPath_in_target_process._n
call fcn.140001940
xor al, al
jmp 0x14000a09d
cmp qword [rdi + 0x18], 0xf
jbe 0x140009fd0
mov rax, qword [rdi]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140009fc0
mov rdi, rax
jmp 0x140009fd9
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140009fd0
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000a00b
lea rcx, str._DLL_Injection__Failed_to_write_remote_process_memory._n
call fcn.140001940
xor al, al
jmp 0x14000a09d
mov qword [rsp + 0x30], 0
mov r9, r14
mov dword [rsp + 0x28], 0
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x14000a05f
lea rcx, str._DLL_Injection__Failed_to_create_remote_thread._n
call fcn.140001940
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
jmp 0x14000a09d
mov edx, 0x7d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000a086
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._DLL_Injection__Successfully_LoadLibraryA_injection._n
call fcn.140001940
mov al, 1
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a394
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000a3ce
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000a3d3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000a41c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c4d0]
cmp byte [rcx + rax], 0
je 0x14000a41c
dec r8
sub rdx, 1
jne 0x14000a402
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000b108
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b152
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b152
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b152
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b152
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b152
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000b154
xor al, al
add rsp, 0x28
ret
Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x9f
add al, 0xc2
xor al, 0xed
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
jl 0x140001095
sbb ebx, dword [rbx]
pop rbp
invalid
mov esp, 0xac5ddec3
jl 0x1400010da
ret
jns 0x140001096
jge 0x1400010b2
sbb al, 0x80
ret 0x3f60
invalid
rol dword [rax - 0x11ef9fd2], 0xd1
invalid
Function at 0x14000c460
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x34], eax
mov rbx, rdx
mov dword [rsp + 0x30], esi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
lea r8d, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14000c4ac
mov rdx, qword [rbx]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000c4fa
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000c4f5
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c519
mov rcx, r8
call fcn.1400382f0
mov qword [rbx + 0x10], rsi
mov byte [rbx], sil
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14003f1ec
int3

Function at 0x14000c520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
xor esi, esi
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 8]
lea rdx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 4]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
mov rdx, rbx
add r8d, r8d
cmp qword [rbx + 0x18], 7
jbe 0x14000c575
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14000c5c4
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000c5bf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000c5e3
mov rcx, r8
call fcn.1400382f0
mov qword [rbx + 0x10], rsi
mov word [rbx], si
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x18], 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.14003f1ec
int3
Function at 0x14000e4e0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, r9
mov r13, r8
mov rbp, rdx
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rbx, qword [rsp + 0xe0]
xor edi, edi
cmp qword [rcx + 0x18], 7
jbe 0x14000e52a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000e55e
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rdi
mov qword [rbp + 0x18], rdi
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbp
call fcn.140002b20
jmp 0x14000e694
mov ebp, 1
mov ecx, 0x208
call fcn.1400385a8
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdi, 0xffffffffffffffff
mov r15d, 0x104
nop dword [rax + rax]
mov rax, r14
cmp qword [r14 + 0x18], 7
jbe 0x14000e5ad
mov rax, qword [r14]
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000e5ba
mov r8, qword [rbx]
mov rdx, r12
cmp qword [r12 + 0x18], 7
jbe 0x14000e5c9
mov rdx, qword [r12]
mov rcx, r13
cmp qword [r13 + 0x18], 7
jbe 0x14000e5d7
mov rcx, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r15 - 1]
cmp eax, ecx
jb 0x14000e658
mov r8, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14000e5ff
mov r8, qword [rbx]
mov rax, rsi
sub r8, rsi
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000e624
add rax, 2
test ecx, ecx
jne 0x14000e610
test edx, edx
je 0x14000e658
mov rcx, rsi
call fcn.1400382f0
inc ebp
imul r15d, ebp, 0x104
mov ecx, r15d
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400385a8
mov rsi, rax
jmp 0x14000e5a0
mov rbp, qword [rsp + 0x38]
nop dword [rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14000e660
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400023c0
mov rcx, rsi
call fcn.1400382f0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400382d0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010e60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140083850]
call fcn.140037af4
test eax, eax
jne 0x140010f0f
cmp dword [0x14008389c], 0x7fffffff
je 0x140010efa
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rax + 4]
xor edi, edi
mov dword [rsp + 0x50], 2
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0xb0]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140083850]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
jmp fcn.140037afc
mov ecx, 6
mov dword [0x14008389c], 0x7ffffffe
call fcn.1400379b8
int3
mov ecx, 5
call fcn.1400379b8
int3

Function at 0x1400125c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rdi, qword [0x1400832c0]
lea r14, [0x140083850]
mov qword [rsp + 0x58], r14
mov rcx, r14
call fcn.140037af4
test eax, eax
jne 0x140012718
cmp dword [0x14008389c], 0x7fffffff
je 0x140012703
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x30]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140002090
mov rdx, rax
mov rcx, rdi
call fcn.14000c460
nop
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
lea r8d, [rbp + 4]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], bpl
mov dword [rsp + 0x40], 2
mov rdx, rsi
cmp rsi, 0xf
jbe 0x1400126bb
mov rcx, rbx
call fcn.140006830
mov qword [rbx + 0x10], rbp
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400126c8
mov rdx, qword [rbx]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x48]
mov r8d, esi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r14
call fcn.140037afc
mov rax, rbx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov dword [0x14008389c], 0x7ffffffe
mov ecx, 6
call fcn.1400379b8
int3
mov ecx, 5
call fcn.1400379b8
int3
Function at 0x140013480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400135ac
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x1400135ac
test eax, eax
je 0x1400135ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400135ac
mov rcx, qword [rsi]
mov dword [rbp - 0x20], 0x3aec1297
mov dword [rbp - 0x1c], 0x6d8b51b9
mov dword [rbp - 0x18], 0xcb48b3db
mov dword [rbp - 0x14], 0x98f33dda
mov dword [rbp - 0x10], 0x915d7015
mov dword [rbp - 0xc], 0xfac8b26c
mov dword [rbp - 8], 0x46acd7c6
mov dword [rbp - 4], 0x87e86473
cmp rcx, qword [rsi + 8]
je 0x14001354b
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rbp + 0x38], rdi
cmp rdi, rax
jbe 0x140013567
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.1400135f0
xor ebx, ebx
test rdi, rdi
je 0x1400135a8
nop
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [r14 + rbx]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rsi + 0x10]
je 0x140013594
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x1400135a0
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.1400136e0
inc rbx
cmp rbx, rdi
jb 0x140013570
mov al, 1
jmp 0x1400135ae
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140015f20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140016012
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140012d50
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140012d50
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.140038324
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140012d50
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140012d50
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14001b1e0]
xor edx, edx
xor ecx, ecx
call fcn.1400437e8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140016055
lea rcx, [rsp + 0x60]
call fcn.140016080
cmp dword [rsp + 0x38], 0
je 0x140016068
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140037a54
test eax, eax
jne 0x140016068
jmp 0x140016034
cmp qword [rdx + 0x18], 7
jbe 0x14001601c
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140016026
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400382d0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400379b8
nop
mov ecx, 1
call fcn.1400379b8
int3

Function at 0x140016140
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400161b0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002b20
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x140070e70]
mov rcx, rbx
call fcn.140003700
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400382d0
add rsp, 0x260
pop rbx
ret
Function at 0x14002bfe0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140080040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, r8b
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.140002090
mov rsi, rax
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400832c0]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140002090
mov byte [rsp + 0xa0], dil
mov qword [rsp + 0xa8], rbx
lea ecx, [rbp + 0x30]
call fcn.140038324
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x90]
movups xmmword [rax + 0x10], xmm1
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsp + 0x80], bpl
mov byte [rax + 0x20], dil
mov qword [rax + 0x28], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140013270]
xor edx, edx
xor ecx, ecx
call fcn.1400437e8
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14002c164
cmp dword [rsp + 0x48], ebp
je 0x14002c159
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140037a54
test eax, eax
jne 0x14002c159
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14002c121
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14002c11c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002c173
mov rcx, r8
call fcn.1400382f0
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rsi], 0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400382d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 1
call fcn.1400379b8
nop
mov dword [rsp + 0x48], ebp
mov ecx, 6
call fcn.1400379b8
nop
call fcn.14003f1ec
int3