joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180035e56
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x18009eaf0
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1800cc340]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r10d, r10d
lea r11, [0x1800cf5b8]
test r9, r9
lea rdi, [0x1800b2e44]
mov rax, rdx
mov r15, rdx
cmovne r11, r9
test rdx, rdx
lea ebp, [r10 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x18009eb59
mov rax, 0xfffffffffffffffe
jmp 0x18009eca7
cmp word [r11 + 6], r10w
jne 0x18009ebc8
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x18009eb83
test rsi, rsi
je 0x18009eb74
mov dword [rsi], r9d
test r9b, r9b
setne r10b
mov rax, r10
jmp 0x18009eca7
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x18009eb91
mov r8b, 2
jmp 0x18009ebaf
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x18009eb9f
mov r8b, 3
jmp 0x18009ebaf
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x18009ec95
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x18009ebf1
mov r8b, byte [r11 + 4]
mov edx, dword [r11]
mov bl, byte [r11 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x18009ec95
cmp bl, bpl
jb 0x18009ec95
cmp bl, r8b
jae 0x18009ec95
movzx ebp, bl
cmp rbp, r14
mov r9d, ebp
cmovae r9, r14
jmp 0x18009ec1e
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x18009ec95
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r9
jb 0x18009ec00
cmp r9, rbp
jae 0x18009ec4a
movzx eax, r8b
sub bl, r9b
mov word [r11 + 4], ax
movzx eax, bl
mov word [r11 + 6], ax
mov dword [r11], edx
jmp 0x18009eb4d
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x18009ec95
cmp edx, 0x110000
jae 0x18009ec95
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x18009ec95
test rsi, rsi
je 0x18009ec88
mov dword [rsi], edx
neg edx
mov qword [r11], r10
sbb rax, rax
and rax, rbp
jmp 0x18009eca7
mov qword [r11], r10
call fcn.18003615d
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800366df
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180036284
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x180043078
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180043105
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x180043105
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180043105
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1800430ec
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1800430e6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1800430ee
add rdx, 0x28
jmp 0x1800430cb
xor edx, edx
test rdx, rdx
jne 0x1800430f7
xor al, al
jmp 0x18004310b
cmp dword [rdx + 0x24], 0
jge 0x180043101
xor al, al
jmp 0x18004310b
mov al, 1
jmp 0x18004310b
xor al, al
jmp 0x18004310b
add rsp, 0x18
ret

Function at 0x180036540
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18007be50
mov rax, rcx
neg rcx
test rax, 7
je 0x18007be6d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x18007bec8
test al, 7
jne 0x18007be60
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x18007be81
mov rdx, qword [rax - 8]
test dl, dl
je 0x18007bef2
test dh, dh
je 0x18007beec
shr rdx, 0x10
test dl, dl
je 0x18007bee6
test dh, dh
je 0x18007bee0
shr rdx, 0x10
test dl, dl
je 0x18007beda
test dh, dh
je 0x18007bed4
shr edx, 0x10
test dl, dl
je 0x18007bece
test dh, dh
jne 0x18007be81
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x18003684c
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18005a750
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800b3e08]
mov ecx, 2
lea r8, [0x1800b3e00]
lea rdx, str.FlsGetValue
call fcn.18005a220
mov ecx, ebx
test rax, rax
je 0x18005a78a
add rsp, 0x20
pop rbx
jmp qword [0x1800da020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x180036978
Capabilities:
Query environment variable

Disassembly:
jmp 0x18008cb0c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x18008cbde
mov rsi, rax
cmp word [rax], r14w
je 0x18008cb5f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x18008cb47
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x18008cb43
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.180037300
movsxd rbp, eax
test eax, eax
je 0x18008cbde
mov rcx, rbp
call fcn.180035023
mov rdi, rax
test rax, rax
je 0x18008cbd1
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.180037300
test eax, eax
je 0x18008cbd1
mov rsi, rdi
mov rdi, r14
jmp 0x18008cbd4
mov rsi, r14
mov rcx, rdi
call fcn.180035159
jmp 0x18008cbe1
mov rsi, r14
test rbx, rbx
je 0x18008cbef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180036987
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18005a6a0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800b3dc8]
xor ecx, ecx
lea r8, [0x1800b3dc0]
lea rdx, str.FlsAlloc
call fcn.18005a220
test rax, rax
je 0x18005a6d9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800da020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800369ff
Capabilities:
Get geographical location

Disassembly:
jmp 0x180080384
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1800b5448]
mov rbp, rcx
lea r8, [0x1800b5440]
lea rdx, str.GetLocaleInfoEx
mov ecx, SafeArrayDestroy
call fcn.18007f790
mov rcx, rbp
test rax, rax
je 0x1800803da
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [0x1800da020]
jmp 0x1800803f1
xor edx, edx
call fcn.1800362d4
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180036a04
Capabilities:
Terminate process

Disassembly:
jmp 0x180042694
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x180036b5d
Capabilities:
Parse pe header

Disassembly:
jmp 0x180078588
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1800782dc
Function at 0x18003744f
Capabilities:
Terminate process

Disassembly:
jmp 0x18007ea50
sub rsp, 0x28
mov ecx, SafeArrayCopy
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18007ea6a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180037b16
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1800374f4
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180080198
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800b5380]
mov ecx, 5
lea r8, [0x1800b5378]
lea rdx, str.FlsGetValue
call fcn.18007f790
mov ecx, ebx
test rax, rax
je 0x1800801d2
add rsp, 0x20
pop rbx
jmp qword [0x1800da020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1800378fa
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1800801f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1800b5390]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x1800b5388]
call fcn.18007f790
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180080230
call qword [0x1800da020]
jmp 0x180080236
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180037bf2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18005a7a8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1800b3e28]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1800b3e20]
call fcn.18005a220
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x18005a7e8
call qword [0x1800da020]
jmp 0x18005a7ee
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180037d64
Capabilities:
Parse pe header

Disassembly:
jmp 0x180078578
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180078343
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180078343
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180078343
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180078343
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180078343
cmp dword [rcx + 0x84], 0xe
jbe 0x180078343
cmp dword [rcx + 0xf8], 0
je 0x180078343
mov ecx, ebx
call fcn.1800784d4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180078054
cmp dword [rbp + 0x20], 0
je 0x180078390
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800783c8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800782dc
Function at 0x1400037c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
movzx edx, dx
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400038f4
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400038f4
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 0xf
jbe 0x140003850
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140007400
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x1400038a4
xor bl, bl
jmp 0x1400038e5
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x38]
call fcn.140007340
test rax, rax
jne 0x1400038e3
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.140003920
movzx eax, bl
jmp 0x1400038f6
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000a230
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005fb0
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.0x140005fd1
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 0x140005ffe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006000
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006059
test ecx, ecx
jle 0x140006039
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 0x140006059
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006059
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
sbb byte [rax - 0x77], cl
insb byte [rdi], dx
and al, 0x20
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400307b0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov ebp, 1
mov dword [rsp + 0x24], ebp
mov ebx, r14d
mov rax, qword [rdx + 0x10]
test rax, rax
je 0x14001c4e4
nop dword [rax + rax]
Function at 0x140006080
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400060a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400060b1
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400060d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400060d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006112
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400061ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000614d
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 0x14000618e
nop word [rax + 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 0x1400061ae
cmp rbx, rax
ja 0x140006160
test rbx, rbx
je 0x1400061ae
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
int3
Function at 0x140006610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000663d
xor eax, eax
jmp 0x1400067a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006677
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006677
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400067a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000679c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400066ba
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 0x1400066e5
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
cmovne ecx, edi
mov eax, ecx
jmp 0x1400067a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x140006754
sub eax, 1
je 0x140006754
cmp eax, 2
jne 0x14000679c
movsx ecx, byte [rsp + 0x50]
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
cmovne ecx, edi
mov eax, ecx
jmp 0x1400067a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006782
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000679c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400067a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000a230
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140007250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007323
cmp byte [rcx + 0x71], 0
je 0x140007323
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000731f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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 0x1400072e4
sub eax, 1
je 0x1400072e8
cmp eax, 2
jne 0x14000731f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a230
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007316
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000731f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400072cc
xor al, al
jmp 0x1400072cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a230
add rsp, 0x60
pop rbx
ret

Function at 0x140009724
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 0x14000975e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140009763
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 0x1400097ac
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c600]
cmp byte [rcx + rax], 0
je 0x1400097ac
dec r8
sub rdx, 1
jne 0x140009792
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140009e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000983c
mov ebx, eax
test eax, eax
jne 0x140009ebc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140009f1f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009f16
test al, 0x10
je 0x140009f16
bt eax, 0xa
jae 0x140009f0f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140009f30
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140009f0b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140009f0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140009f16
and dword [rsp + 0x3c], 0
jmp 0x140009f1b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000adf4
Capabilities:
Parse pe header

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