joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002d260
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18002c3d0
mov qword [rsp + 0x28], 0
cmp qword [0x180133d88], 0
jne 0x18002d2a9
cmp qword [0x180133d98], 0
je 0x18002d2a9
mov rax, qword [0x180133d98]
mov qword [0x180133d88], rax
cmp qword [0x180133d88], 0
je 0x18002d34b
mov rax, qword [0x180133d88]
cmp qword [rax + 0x10], 0
je 0x18002d34b
mov rax, qword [0x180133d88]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002d34b
mov rax, qword [0x180133d88]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002d34b
mov rax, qword [0x180133d88]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18002d315
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18002d31c
xor eax, eax
jmp 0x18002d4c6
mov rax, qword [0x180133d88]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov rdi, qword [rsp + 0x28]
mov eax, 0xcc
mov ecx, 0x60
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28]
jmp 0x18002d4c6
mov rax, qword [0x180133d98]
mov qword [0x180133d88], rax
jmp 0x18002d36d
mov rax, qword [0x180133d88]
mov rax, qword [rax + 8]
mov qword [0x180133d88], rax
cmp qword [0x180133d88], 0
je 0x18002d3ba
cmp qword [0x180133d88], 0
je 0x18002d3b8
mov rax, qword [0x180133d88]
cmp qword [rax + 0x10], 0
je 0x18002d3b8
mov rax, qword [0x180133d88]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002d3b8
mov rax, qword [0x180133d88]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002d3b8
jmp 0x18002d2ed
jmp 0x18002d35b
mov rcx, qword [rsp + 0x60]
call fcn.18002bf60
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18002d130
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18002d4c4
mov rax, qword [rsp + 0x48]
mov qword [0x180133d88], rax
mov rax, qword [0x180133d88]
mov dword [rax], 0x52727464
mov rax, qword [0x180133d88]
mov qword [rax + 0x10], 0
mov rax, qword [0x180133d88]
mov rcx, qword [0x180133d98]
mov qword [rax + 8], rcx
mov rax, qword [0x180133d88]
mov qword [0x180133d98], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180133d88]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], reloc.SHELL32.dll_IsUserAnAdmin
jmp 0x18002d475
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18002d4af
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18002d46b
mov rax, qword [0x180133d88]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18002d2ed
xor eax, eax
add rsp, 0x50
pop rdi
ret
Function at 0x180037790
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.180033300
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800377d1
mov eax, 7
jmp 0x18003789e
movzx eax, byte [0x18012e444]
test eax, eax
je 0x1800377ea
mov ecx, 0xc8
call fcn.1800389e0
test eax, eax
je 0x1800377fa
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
jmp 0x180037863
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x180037750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.MSVCR120.dll__beginthreadex]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x180037863
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x18003788f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x180092130
Capabilities:
Reference sql statements

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [0x180130b00]
mov r8, qword [rsp + 0x48]
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rcx, qword [rsp + 0x40]
call fcn.180099460
cmp dword [rsp + 0x50], 0
jne 0x180092196
mov r9, qword [rsp + 0x48]
lea r8, [0x180130bb0]
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, qword [rsp + 0x40]
call fcn.180099460
add rsp, 0x38
ret
Function at 0x1800fa370
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x1b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x180129050]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov r14, rdx
mov ebp, ecx
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1800faaa0
nop
cmp byte [0x180133271], 0
je 0x1800fa4a0
mov byte [rsp + 0x90], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x91]
call sub.MSVCR120.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp qword [r14 + 0x18], 0x10
jb 0x1800fa404
mov r15, qword [r14]
jmp 0x1800fa407
mov r15, r14
lea rsi, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rsi, qword [rsp + 0x68]
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea rdx, str.__d._d._s._s___s_n
lea rcx, [rsp + 0x48]
call fcn.1800fb220
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rsp + 0x60], 0x10
jb 0x1800fa489
mov rcx, qword [rsp + 0x48]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov rcx, qword [0x180133278]
test rcx, rcx
jne 0x1800fa4e2
mov ecx, 0x28
call sub.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [0x180133278], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [0x180133278]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.180101c10
mov r8, qword [rax]
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [r8 + 0x40]
test rax, rax
jne 0x1800fa50a
xor edx, edx
xor ecx, ecx
call fcn.1800f9f90
mov rcx, qword [0x180133278]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.180101c10
mov rbx, rax
cmp qword [r14 + 0x10], 0
je 0x1800fa576
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
cmp ebp, eax
jg 0x1800fa576
test ebp, ebp
je 0x1800fa56a
dec ebp
je 0x1800fa55d
dec ebp
je 0x1800fa550
dec ebp
jne 0x1800fa576
mov rdx, r14
mov rcx, rbx
call fcn.1801019f0
jmp 0x1800fa576
mov rdx, r14
mov rcx, rbx
call fcn.180102290
jmp 0x1800fa576
mov rdx, r14
mov rcx, rbx
call fcn.180101cf0
jmp 0x1800fa576
mov rdx, r14
mov rcx, rbx
call fcn.180101500
nop
cmp qword [rsp + 0x80], 0x10
jb 0x1800fa58b
mov rcx, qword [rsp + 0x68]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1801077e0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800fb590
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rax, qword [0x180129050]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
call fcn.1800fb7e0
cmp qword [rbx + 0x18], 8
jb 0x1800fb5cc
mov rcx, qword [rbx]
jmp 0x1800fb5cf
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne dil
cmp qword [rbx + 0x18], 8
jb 0x1800fb5ea
mov rcx, qword [rbx]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rbx + 0x18], 7
xor eax, eax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, dil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801077e0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180106e90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1801333e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x180106efc
lea ecx, [rax + 0x20]
mov qword [rsp + 0x20], rbx
call sub.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
test rax, rax
je 0x180106ec4
mov rcx, rax
call fcn.180106730
mov rbx, rax
jmp 0x180106ec6
xor ebx, ebx
mov ecx, dword [0x1801333e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180106ee5
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov ecx, dword [0x1801333e0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400071e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140013a70
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140008900]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14000723d
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140011ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140011bc1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140011bee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140011bf0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140011c49
test ecx, ecx
jle 0x140011c29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140011c49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140011c49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rdi], cl
invalid
Function at 0x140011c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140011ca1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140011cb8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140011cdb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011cdd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011d19
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140011dae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140011d54
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140011d8e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140011dae
cmp rbx, rax
ja 0x140011d60
test rbx, rbx
je 0x140011dae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov dword [rsp + 0xc8], eax
Function at 0x1400121f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140012214
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140012257
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140012257
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140012388
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001229a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400122c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14001238d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001233a
sub eax, 1
je 0x14001233a
cmp eax, 2
jne 0x140012388
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14001238d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14001236b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140012388
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001238d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140012870
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140012939
cmp byte [rcx + 0x71], 0
je 0x140012939
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001292c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400128e8
sub eax, 1
je 0x1400128ec
cmp eax, 2
jne 0x14001292c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14001291a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001292c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x1400144d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001451e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001451e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001451e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001451e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001451e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140014520
xor al, al
add rsp, 0x28
ret
Function at 0x10000f068
Capabilities:
Check if file exists
Get file attributes

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
push r13
push r14
sub rsp, 0x40
mov r12, rdx
mov r13, rcx
mov r14d, 1
xor esi, esi
xor ebx, ebx
test r13, r13
je 0x10000f13b
test r12, r12
je 0x10000f13b
xor edx, edx
mov rcx, r13
call fcn.1000117a8
mov rdi, rax
test rax, rax
je 0x10000f0fd
xor edx, edx
mov rcx, r12
call fcn.1000117a8
mov rbx, rax
test rax, rax
je 0x10000f0fd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10000f0e1
mov rcx, rbx
call fcn.1000114a8
and dword [rsp + 0x28], esi
and qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.100010e54
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rdi, rdi
je 0x10000f11e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x10000f137
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, ebp
jmp 0x10000f140
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x10000f1ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x10000f165
cmp eax, 0x20
je 0x10000f165
cmp eax, 0x21
jne 0x10000f16d
mov rcx, r13
call fcn.10000ae6c
cmp ebx, 5
je 0x10000f17c
cmp ebx, 0x20
je 0x10000f17c
cmp ebx, 0x21
jne 0x10000f184
mov rcx, r12
call fcn.10000ae6c
mov dword [rsp + 0x30], ebx
lea rdx, [0x100004320]
mov r9, r12
mov r8, r13
mov ecx, 4
mov dword [rsp + 0x28], 0x3c
mov dword [rsp + 0x20], r14d
call fcn.100010054
mov eax, 0xcccccccd
mul r14d
shr edx, 3
cmp edx, 6
jae 0x10000f1c8
lea rcx, [0x100029480]
mov ecx, dword [rcx + rdx*4]
jmp 0x10000f1ca
xor ecx, ecx
test ecx, ecx
je 0x10000f1d4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
inc r14d
lea ecx, [r14 - 1]
cmp ecx, 0x3c
jb 0x10000f091
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x10000f214
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
cmp rcx, rbx
je 0x10000f2d9
cmp rdx, rbx
je 0x10000f2d9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10000f2d9
test al, 0x50
jne 0x10000f2d9
lea edx, [rbx + 0x5c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rbx
je 0x10000f273
add rax, 2
jmp 0x10000f276
mov rax, rdi
lea rdx, [0x1000043a8]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov r12d, ebx
mov r13d, 1
cmp eax, ebx
mov rcx, rbp
cmove r12d, r13d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10000f2a7
test al, 0x50
je 0x10000f2aa
mov esi, r13d
mov edx, r12d
mov rcx, rdi
call fcn.100010628
mov rdi, rax
cmp rax, rbx
jne 0x10000f2c1
mov ebx, esi
jmp 0x10000f2d9
mov edx, r12d
mov rcx, rbp
call fcn.100010628
cmp rax, rbx
je 0x10000f2d6
cmp rdi, rax
jb 0x10000f2d9
mov ebx, r13d
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x10000f6a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x100029100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x13]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x10000f6df
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.100020910
add rsp, 0x40
pop rbx
ret

Function at 0x10000f6fc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, 0x80
mov ebx, edx
mov rdi, rcx
cmp edx, esi
je 0x10000f740
test edx, 0xffffff78
je 0x10000f740
xor esi, esi
mov r9, rcx
mov r8d, edx
lea ecx, [rsi + 4]
lea rdx, [0x1000045b0]
call fcn.100010054
lea ecx, [rsi + 0x57]
jmp 0x10000f7f0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10000f794
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x10000f764
cmp eax, 0x20
je 0x10000f764
cmp eax, 0x21
jne 0x10000f76c
mov rcx, rdi
call fcn.10000ae6c
mov ecx, 2
mov r8, rdi
cmp ebx, ecx
je 0x10000f786
lea rdx, [0x100004610]
mov ecx, 3
jmp 0x10000f7e6
lea rdx, [fcn.100004670]
call fcn.100010054
jmp 0x10000f7ee
and eax, 0x3120
or eax, ebx
bts eax, 7
cmp eax, esi
je 0x10000f7a7
btr eax, 7
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test eax, eax
jne 0x10000f7f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x10000f7cf
cmp eax, 0x20
je 0x10000f7cf
cmp eax, 0x21
jne 0x10000f7d7
mov rcx, rdi
call fcn.10000ae6c
mov r8, rdi
lea rdx, [0x1000046d0]
mov ecx, 4
mov r9d, ebx
call fcn.100010054
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret