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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x58], 0
mov rdi, rcx
mov rbx, r8
lea rcx, [0x1400027a8]
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x140002847
mov ebx, 3
jmp 0x14000286f
mov r9, qword [rsp + 0x58]
lea r8, [0x140002718]
mov edx, 0x208
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.1400029ec
xor ebx, ebx
lea ecx, [rbx + 0xd]
test eax, eax
cmovs ebx, ecx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000287f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002894
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x5d0
mov rax, qword [0x14000c380]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
mov ebx, 0x11c
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8, rbx
xor edi, edi
call fcn.140008860
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x90], ebx
call qword [entry0]
lea eax, [rdi + 1]
mov r11d, edi
cmp byte [rsp + 0x1aa], al
mov word [rsp + 0x1b0], di
mov edx, 0x208
cmove r11d, eax
lea rcx, [rsp + 0x1b0]
cmp r11d, edi
je 0x140002931
lea r8, [0x1400026c0]
call fcn.140002810
mov ebx, eax
cmp eax, edi
je 0x14000293a
lea rcx, [0x140002728]
mov edx, eax
call fcn.1400027f8
jmp 0x1400029bd
lea r8, [0x1400026f0]
jmp 0x140002913
lea rdx, [rsp + 0x1b0]
lea rcx, [0x140002750]
call fcn.1400027f8
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.140008860
lea rax, [rsp + 0x1b0]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rax, [0x140002768]
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
jne 0x1400029aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140002778]
mov ebx, eax
jmp 0x140002925
mov rcx, qword [rsp + 0x88]
cmp rcx, rdi
je 0x1400029bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
setne dil
mov eax, edi
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.140002cb0
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5d0
pop rdi
ret
Function at 0x140002cb0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c380]
jne 0x140002ccb
rol rcx, 0x10
test cx, 0xffff
jne 0x140002cc7
ret 0
ror rcx, 0x10
jmp 0x1400043f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000dc90]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x14000dd88]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004475
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, [0x14000dc90]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x140004497
mov rax, qword [rsp + 0x88]
mov qword [0x14000dd88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000dd28], rax
mov rax, qword [0x14000dd88]
mov qword [0x14000dc00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000dd10], rax
mov dword [0x14000dbf0], 0xc0000409
mov dword [0x14000dbf4], 1
mov rax, qword [0x14000c380]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c388]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400018e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x14000308c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140005840
nop
cmp dword [0x14000d7bc], 1
je 0x14000313f
mov dword [0x14000d7b8], 1
mov byte [0x14000d774], dil
test ebx, ebx
jne 0x14000312b
mov rcx, qword [0x14000f770]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x14000f768]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x140003118
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x140003118
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003116
call rcx
jmp 0x1400030fe
lea rdx, [0x140001290]
lea rcx, [0x140001278]
call fcn.140002edc
lea rdx, [0x1400012a0]
lea rcx, [0x140001298]
call fcn.140002edc
nop
test edi, edi
je 0x14000314d
mov ecx, 8
call fcn.140005730
test edi, edi
jne 0x140003175
mov dword [0x14000d7bc], 1
lea ecx, [rdi + 8]
call fcn.140005730
mov ecx, r12d
call fcn.140002e80
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000308c
Function at 0x140003194
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.140005840
nop
cmp dword [0x14000d7bc], 1
je 0x14000313f
mov dword [0x14000d7b8], 1
mov byte [0x14000d774], dil
test ebx, ebx
jne 0x14000312b
mov rcx, qword [0x14000f770]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x14000f768]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x140003118
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x140003118
mov rcx, qword [rbx]
test rcx, rcx
je 0x140003116
call rcx
jmp 0x1400030fe
lea rdx, [0x140001290]
lea rcx, [0x140001278]
call fcn.140002edc
lea rdx, [0x1400012a0]
lea rcx, [0x140001298]
call fcn.140002edc
nop
test edi, edi
je 0x14000314d
mov ecx, 8
call fcn.140005730
test edi, edi
jne 0x140003175
mov dword [0x14000d7bc], 1
lea ecx, [rdi + 8]
call fcn.140005730
mov ecx, r12d
call fcn.140002e80
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000308c

Function at 0x1400031a4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000308c
Function at 0x140003244
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x14000c120]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x140003276
inc edi
add rax, 0x10
cmp edi, 0x17
jb 0x140003267
cmp edi, 0x17
jae 0x140003424
mov ebp, 3
mov ecx, ebp
call fcn.1400061c4
cmp eax, 1
je 0x1400033dc
mov ecx, ebp
call fcn.1400061c4
test eax, eax
jne 0x1400032ac
cmp dword [0x14000c100], 1
je 0x1400033dc
cmp ebx, 0xfc
je 0x140003424
lea rbx, [0x14000d7c0]
mov ebp, 0x314
lea r8, [0x1400018c0]
mov rcx, rbx
mov rdx, rbp
call fcn.14000614c
test eax, eax
je 0x1400032ef
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
lea rdx, [0x14000d7d9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14000d8dd], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140003340
lea r8, [0x1400018a8]
lea rcx, [0x14000d7d9]
mov edx, 0x2fb
call fcn.14000614c
test eax, eax
je 0x140003340
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
lea r8, [0x14000d7d9]
mov rdx, rbp
mov rcx, rbx
call fcn.1400060bc
test eax, eax
je 0x14000336b
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
lea r8, [0x1400018a0]
mov rdx, rbp
mov rcx, rbx
call fcn.1400060bc
test eax, eax
je 0x140003396
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.1400060bc
test eax, eax
je 0x1400033c5
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
lea rdx, [0x140001878]
mov r8d, 0x12010
mov rcx, rbx
call fcn.140005e84
jmp 0x140003424
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r11, rax
test rax, rax
je 0x140003424
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x140003424
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x140003b5c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r12d, r12d
mov rdi, rax
cmp rax, r12
je 0x140003c35
mov rbx, rax
cmp word [rax], r12w
je 0x140003ba7
add rbx, 2
cmp word [rbx], r12w
jne 0x140003b93
add rbx, 2
cmp word [rbx], r12w
jne 0x140003b93
mov qword [rsp + 0x38], r12
sub rbx, rax
mov qword [rsp + 0x30], r12
sar rbx, 1
mov r8, rax
xor edx, edx
lea r9d, [rbx + 1]
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
cmp ebp, r12d
je 0x140003c2c
mov rcx, rbp
call fcn.140006cfc
mov rsi, rax
cmp rax, r12
je 0x140003c2c
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, r12d
jne 0x140003c1e
mov rcx, rsi
call fcn.1400062ac
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x140003c37
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x140005408
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140005473
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140005493
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001908]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140005e84
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.140003f2c
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
mov rdi, rax
cmp qword [0x14000e3d8], rbp
jne 0x140005fbc
lea rcx, [0x1400019b0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
jne 0x140005ee8
xor eax, eax
jmp 0x14000609c
lea rdx, [0x1400019a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005ee1
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001990]
mov rcx, rsi
mov qword [0x14000e3d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001978]
mov rcx, rsi
mov qword [0x14000e3e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x14000e3e8], rax
call fcn.140002f18
test eax, eax
je 0x140005f6f
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
cmp dword [rsp + 0x88], 2
jne 0x140005fbc
lea rdx, [0x140001958]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000e3f8], rax
test rax, rax
je 0x140005fbc
lea rdx, [0x140001940]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000e3f0], rax
mov rcx, qword [0x14000e3f0]
cmp rcx, rdi
je 0x14000604e
cmp qword [0x14000e3f8], rdi
je 0x14000604e
call sub.KERNEL32.dll_DecodePointer
call rax
mov rsi, rax
test rax, rax
je 0x140006019
mov rcx, qword [0x14000e3f8]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x140006019
test byte [rsp + 0x40], 1
jne 0x14000604e
lea rcx, [rsp + 0x30]
call fcn.140002f64
test eax, eax
je 0x14000603b
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140005408
cmp dword [rsp + 0x30], 4
jb 0x140006048
bts ebx, 0x15
jmp 0x140006082
bts ebx, 0x12
jmp 0x140006082
mov rcx, qword [0x14000e3e0]
cmp rcx, rdi
je 0x140006082
call sub.KERNEL32.dll_DecodePointer
call rax
mov rbp, rax
test rax, rax
je 0x140006082
mov rcx, qword [0x14000e3e8]
cmp rcx, rdi
je 0x140006082
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x14000e3d8]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14000a020
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x14000c380]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a126
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x14000a0ae
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x14000a126
mov eax, edx
not eax
and ecx, eax
je 0x14000a0c9
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x14000a126
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x14000a126
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000a126
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000a126
mov eax, 1
jmp 0x14000a128
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140002cb0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret
Function at 0x1000027a8
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x100012150]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rcx, qword [0x100014d88]
xor ebx, ebx
cmp rcx, rbx
je 0x1000027e2
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [0x100014d88], rbx
mov rcx, qword [0x100014d80]
cmp rcx, rbx
je 0x1000027fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x100014d80], rbx
mov edi, 0x104
lea rcx, [rsp + 0x240]
mov edx, edi
call fcn.10000c61c
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
xor r9d, r9d
mov r8, rdi
call fcn.10000c68c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, 0x27
lea r8, [0x1000016f0]
add eax, edx
cmp eax, edi
jl 0x100002888
lea rax, [rsp + 0x1ea]
lea rcx, [rsp + 0x1ea]
sub r8, rax
lea rax, [rdx + 0x7fffffd7]
cmp rax, rbx
je 0x10000287a
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x10000287a
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100002857
cmp rdx, rbx
jne 0x100002883
sub rcx, 2
mov word [rcx], bx
jmp 0x100002895
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.100002910
xor ecx, ecx
call fcn.10000c9ec
xor r9d, r9d
or rcx, 0xffffffffffffffff
mov rdx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x19400
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
mov qword [0x100014d80], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x100014d88], rax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.10000e1c0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x100002cb8
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
and qword [rax - 0x28], 0
mov rbx, rdx
mov dword [rax - 0x30], 0x80
mov edx, 0x80000000
xor r9d, r9d
xor r8d, r8d
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x100002df9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov r13d, eax
call fcn.10000c9ec
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, r12
lea r8d, [r9 + 2]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor ecx, ecx
mov rdi, rax
call fcn.10000c9ec
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, rbx
mov rdx, rax
lea ebp, [r9 + 4]
mov dword [rsp + 0x20], r13d
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x100002dd4
test rdi, rdi
je 0x100002de2
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
and qword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 2]
xor r8d, r8d
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rbp, rbp
je 0x100002dc6
test rax, rax
je 0x100002dbd
mov r8, r13
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rbx, rbx
je 0x100002dd4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rdi, rdi
je 0x100002de2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x100002df0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
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
Function at 0x100002e18
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, rdx
mov rdi, rcx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov esi, 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
mov qword [rsp + 0xa0], rax
cmp rax, 0xffffffffffffffff
je 0x100002fb7
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
xor ecx, ecx
call fcn.10000c9ec
mov rdx, rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
mov qword [rsp + 0xa8], rax
xor ecx, ecx
call fcn.10000c9ec
mov rdx, rax
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea edi, [rsi + 2]
mov r8d, edi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r12, rax
mov qword [rsp + 0x40], rax
test r14, r14
je 0x100002f92
test rax, rax
je 0x100002f92
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov qword [rsp + 0x48], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, esi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x100002f76
test rdi, rdi
je 0x100002f76
mov r8, r15
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
jmp 0x100002f76
test rsi, rsi
je 0x100002f84
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test rdi, rdi
je 0x100002f92
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test r12, r12
je 0x100002fa0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x100002fae
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100002fd4
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x100012150]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
mov edi, 0x206
lea rcx, [r11 - 0x226]
xor ebp, ebp
xor edx, edx
mov r8, rdi
mov word [rsp + 0x250], bp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x42]
mov r8, rdi
xor edx, edx
mov word [rsp + 0x40], bp
call sub.msvcrt.dll_memset
mov edi, 0x104
lea rdx, [rsp + 0x250]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r8, [0x100001af0]
lea rcx, [rsp + 0x250]
mov rdx, rdi
call fcn.100002910
lea rcx, [rsp + 0x250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, [rsp + 0x40]
lea rdx, [0x100001b08]
lea rcx, [rsp + 0x250]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rcx, rbx
cmp eax, ebp
je 0x10000316b
call fcn.100005f04
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x10000315d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.100002e18
lea rcx, [0x100014840]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r9, [0x100014868]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileTime]
lea rcx, [0x100014840]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1000125a0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r8d, [rbp + 3]
mov qword [rsp + 0x30], rbp
lea rcx, [rbx + 0x208]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rsp + 0x40]
cmp rax, 0xffffffffffffffff
je 0x100003162
lea r8, [rbx + 0x208]
mov rdx, rax
call fcn.100002cb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1000125a0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.10000e1c0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret