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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002550
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400017c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140018094]
mov rbx, rcx
test esi, esi
jle 0x1400018f0
mov rax, qword [0x140018098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000180b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001895
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017f0
mov rcx, rbx
call fcn.140002230
mov rdi, rax
test rax, rax
je 0x140001912
mov rax, qword [0x140018098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002370
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140018098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000188e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400018a0
add dword [0x140018094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140018098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000188e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001750
nop dword [rax]
xor esi, esi
jmp 0x140001818
mov rax, qword [0x140018098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001750
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001750
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001ea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140018100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400180e0]
test rbx, rbx
je 0x140001efc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001ef3
test eax, eax
jne 0x140001ef3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ed8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002230
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400153a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002250
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002250
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400153a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400153a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000238f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002398
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400029c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x28
call fcn.140001540
xor r9d, r9d
xor ecx, ecx
lea r8, str.Loader
lea rdx, str.Started
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 0x117b7
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x117b7
lea rdx, [0x140003100]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
call rax
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via windows callback function
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x360]
sub rsp, 0x460
lea rax, [rbp + 0x388]
lea rdx, str.Console
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x30], 0x61657771
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0x32316473
mov dword [rsp + 0x38], 0x63787a33
mov byte [rsp + 0x3c], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rbp + 0x388]
lea rax, [rbp + 0x380]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rbp + 0x380], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x380]
call fcn.1800011b8
mov rcx, qword [rbp + 0x388]
lea rdx, [rsp + 0x30]
mov rdi, rax
lea rax, [rbp + 0x380]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x380]
call fcn.1800011b8
mov ebx, dword [rbp + 0x380]
mov rsi, rax
test ebx, ebx
je 0x180001109
mov r8, rax
sub rdi, rax
mov rdx, rax
neg r8
nop
movzx eax, byte [rdi + rdx]
inc rdx
mov byte [rdx - 1], al
mov ebx, dword [rbp + 0x380]
lea rcx, [r8 + rdx]
cmp rcx, rbx
jb 0x1800010f0
mov rcx, qword [rbp + 0x388]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.180004dc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rax
call qword [sym.imp.dbghelp.dll_SymInitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x40]
lea r8, str..log
lea rdx, str.C:Windows
mov rcx, rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.dbghelp.dll_EnumDirTreeW]
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005db4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18000be40]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180001784
xor ebx, ebx
cmp qword [0x18000c9e8], rbx
mov rdi, rax
jne 0x180005ec7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180005f9e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180005f9e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18000c9e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18000c9f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18000c9f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18000ca08], rax
test rax, rax
je 0x180005ebe
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18000ca00], rax
jmp 0x180005ece
mov rax, qword [0x18000ca00]
jmp 0x180005ed5
mov rax, qword [0x18000ca00]
mov r11, qword [0x18000ca08]
cmp rax, rdi
je 0x180005f3c
cmp r11, rdi
je 0x180005f3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18000ca08]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180005f3c
test rax, rax
je 0x180005f3c
call rsi
test rax, rax
je 0x180005f36
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180005f36
test byte [rsp + 0x40], 1
jne 0x180005f3c
bts ebp, 0x15
jmp 0x180005f7c
mov rcx, qword [0x18000c9f0]
cmp rcx, rdi
je 0x180005f7c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005f7c
call rax
mov rbx, rax
test rax, rax
je 0x180005f7c
mov rcx, qword [0x18000c9f8]
cmp rcx, rdi
je 0x180005f7c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005f7c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000c9e8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180005f9e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180005fa0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180005d40
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800062e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000be40]
jne 0x180005d5a
rol rcx, 0x10
test cx, 0xffff
jne 0x180005d56
repz ret
ror rcx, 0x10
jmp 0x180006240
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000cb20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000cc18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800062c5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000cb20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800062e7
mov rax, qword [rsp + 0x88]
mov qword [0x18000cc18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000cbb8], rax
mov rax, qword [0x18000cc18]
mov qword [0x18000ca90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000cba0], rax
mov dword [0x18000ca80], 0xc0000409
mov dword [0x18000ca84], 1
mov rax, qword [0x18000be40]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000be48]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000cb18], eax
mov ecx, 1
call fcn.180005da0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180009498]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000cb18], 0
jne 0x18000636e
mov ecx, 1
call fcn.180005da0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800033a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov rbx, rcx
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov ecx, 0x28609442
mov eax, 0x2aa81685
nop dword [rax]
cmp ecx, 0xab48bb2d
je 0x180003427
cmp ecx, 0x2aa81685
je 0x180003413
cmp ecx, 0x28609442
jne 0x1800033e0
cmp qword [rbx + 0x18], 0xf
mov ecx, 0xab48bb2d
cmova ecx, eax
mov rdx, qword [rbp - 0x20]
cmp ecx, 0xab48bb2d
jne 0x1800033e8
jmp 0x180003427
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rcx]
mov ecx, 0xab48bb2d
cmp ecx, 0xab48bb2d
jne 0x1800033e8
lea r8, [0x18001d540]
lea rcx, [rbp - 8]
call fcn.18000b654
mov rcx, qword [rbp - 8]
xor esi, esi
test rcx, rcx
je 0x1800035d8
xor edx, edx
mov r8d, 2
call fcn.18000bd20
mov rcx, qword [rbp - 8]
call fcn.18000c21c
mov edi, eax
mov rcx, qword [rbp - 8]
call fcn.18000c224
mov edi, edi
mov rcx, rdi
call fcn.18000c2e8
mov r13, rax
mov r9, qword [rbp - 8]
mov edx, 1
mov rcx, rax
mov r8, rdi
call fcn.18000c580
cmp rax, rdi
jne 0x1800035d8
mov qword [rbp - 0x28], rbx
mov rcx, qword [rbp - 8]
call fcn.18000b730
mov qword [rbp - 0x18], r14
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x18]
mov qword [rbp - 0x30], rax
mov esi, 0xe7cc8c48
mov r15d, 0xda45cff
mov r12d, 0x8bc55320
nop
cmp esi, 0xda45cfe
jg 0x180003550
cmp esi, 0xe7cc8c48
je 0x180003566
cmp esi, 0xa794910
jne 0x1800034c0
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rcx
mov ecx, 0xc072cb17
nop word cs:[rax + rax]
nop
cmp ecx, 0x8bc55320
je 0x180003532
cmp ecx, 0xdc0c82f1
je 0x180003584
cmp ecx, 0xc072cb17
jne 0x180003500
cmp qword [rax + 0x18], 0xf
mov ecx, 0xdc0c82f1
cmova ecx, r12d
mov rsi, qword [rbp - 0x20]
cmp ecx, 0x8bc55320
jne 0x180003508
mov rcx, qword [rbp - 0x10]
mov rsi, qword [rcx]
mov ecx, 0xdc0c82f1
cmp ecx, 0x8bc55320
jne 0x180003508
jmp 0x180003532
cmp esi, 0xda45cff
je 0x1800035b1
cmp esi, 0x6e1019ba
jne 0x1800034c0
jmp 0x1800035c9
mov rax, qword [rbp - 0x30]
cmp rax, rdi
mov esi, 0xa794910
cmovb esi, r15d
cmp esi, 0xda45cfe
jle 0x1800034cc
jmp 0x180003550
mov rax, qword [rbp - 0x18]
mov qword [rax + 0x10], rdi
mov rcx, rsi
mov rdx, r13
mov r8, rdi
call fcn.180008e90
mov byte [rsi + rdi], 0
mov esi, 0x6e1019ba
cmp esi, 0xda45cfe
jle 0x1800034cc
jmp 0x180003550
mov esi, 0x6e1019ba
mov rcx, r14
mov rdx, rdi
mov r9, r13
call fcn.180003da0
jmp 0x1800034c0
mov rcx, r13
call fcn.18000c648
mov sil, 1
mov rbx, qword [rbp - 0x28]
mov rcx, rbx
call fcn.180003660
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400112e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebx, ecx
mov r14, r8
xor ecx, ecx
mov qword [r8], 0
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400113f1
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x1400113f1
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, ebp
mov rdx, rdi
mov rcx, rax
call fcn.14004a9e0
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rbp, qword [rsp + 0x58]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x1400113cb
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rbp
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 8], rcx
mov dword [rbx + 0x10], eax
jmp 0x1400113cd
xor ebx, ebx
mov rcx, rsi
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
jmp 0x1400113f3
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400118a0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14008f030]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], r14
xor r8d, r8d
lea rdx, [0x14007e9b8]
call fcn.140002b90
mov dword [rsp + 0x24], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14004b080
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140011a0e
cmp eax, 0x104
je 0x140011a0e
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x140011a0e
mov ecx, esi
call fcn.140048ea0
mov rbp, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], r14
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14004b080
mov dword [rsp + 0x28], r14d
mov r9, rbp
mov r8d, esi
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140011a06
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, str.StringFileInfo000004b0ProductName
mov rcx, rbp
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140011a06
mov r9, qword [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x1400119c0
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x1400119fd
mov rsi, rdi
cmp rax, 8
jb 0x1400119e0
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.14004a9e0
mov word [rbx + rsi], r14w
jmp 0x140011a06
mov rcx, rdi
call fcn.1400016e0
nop
mov rcx, rbp
call fcn.140048ac0
mov rax, rdi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140048aa0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140011a40
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14008f030]
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 + 5]
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 0x140011ab0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002b90
mov dword [rsp + 0x30], 1
lea rdx, str.FLiNGTrainer
mov rcx, rbx
call fcn.1400010b0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140048aa0
add rsp, 0x260
pop rbx
ret
Function at 0x1400209c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008f030]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [0x140092cc8]
mov rbx, rax
test rax, rax
jne 0x140020b4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14000a130
nop
lea r8, [0x1400930b0]
cmp qword [0x1400930c8], 8
cmovae r8, qword [0x1400930b0]
mov r9, qword [0x1400930c0]
mov rcx, rax
call fcn.14000c6e0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x140092e90]
cmp qword [0x140092ea8], 8
cmovae r8, qword [0x140092e90]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140020af3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020aee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020b94
call fcn.140048ac0
movdqa xmm0, xmmword [0x140083660]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140020b47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020b42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020b8e
call fcn.140048ac0
xor al, al
jmp 0x140020b6d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140048aa0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14004f434
nop
call fcn.14004f434
nop
int3
Function at 0x140020d30
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14008f030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x140020d70
lea rdx, [rcx + 0x60]
mov rcx, rdi
call fcn.140013cb0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020d7d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140020e3b
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140020d99
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x140020e3b
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020e31
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140048ea0
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14004b080
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020e29
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140048ac0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140020e76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140020e71
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140020eaa
mov rcx, r8
call fcn.140048ac0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140048aa0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14004f434
int3