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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018e47
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140018dfa
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001b2c0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003ca0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140066e08]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140018e4f
mov rcx, rbx
call fcn.140003ca0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400192d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140066e10]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140019333
mov qword [rsp], rbx
lea rbx, [0x140054f70]
nop dword [rax]
cmp r9b, 0x23
jne 0x140019313
cmp byte [r8], r9b
jne 0x140019313
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140019300
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c10]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140019367
mov r10, qword [r10 + 0x5c18]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001936e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140019354
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140048f50
Capabilities:
Execute command
Set console window title
Terminate process

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, str.ISLE_FREE_DMA
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov r8d, 0x21
lea rdx, str.FortniteClient_Win64_Shipping.exe
lea rcx, [rsp + 0x20]
call fcn.1400416b0
lea rdx, [rsp + 0x20]
call fcn.14004d150
test al, al
jne 0x140048fe6
lea rdx, str.Failed_to_initialize_DMA
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400436b0
lea rdx, [0x140043890]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x70
pop rbx
ret
lea rcx, [0x14005a89c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov r8d, 0x21
lea rdx, str.FortniteClient_Win64_Shipping.exe
lea rcx, [rsp + 0x20]
call fcn.1400416b0
lea rdx, [rsp + 0x20]
call fcn.14004de80
mov qword [0x1400679c0], rax
call fcn.1400469a0
call fcn.1400467b0
test eax, eax
jns 0x14004905b
lea rcx, str.The_gui_was_not_initialized
call fcn.140001450
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140042840
mov rcx, rax
call fcn.140041810
test al, al
jne 0x140049078
lea rcx, str.The_keyboard_was_not_initialized
call fcn.140001450
lea rcx, [0x14005a89c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400469a0
lea rdx, [0x140047a00]
lea rcx, [rsp + 0x48]
call fcn.14004a630
nop
lea rdx, [0x140047d40]
lea rcx, [rsp + 0x58]
call fcn.14004a630
nop
lea rcx, [rsp + 0x48]
call fcn.140042800
lea rcx, [rsp + 0x58]
call fcn.140042800
call fcn.1400467b0
call fcn.140048c60
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140049570
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 0x140049598
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 0x1400495be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400495c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140049619
test ecx, ecx
jle 0x1400495f9
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 0x140049619
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140049619
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

Function at 0x140049640
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 0x140049662
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140049678
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 0x140049694
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140049696
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400496d2
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 0x14004976e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004970d
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 0x14004974e
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 0x14004976e
cmp rbx, rax
ja 0x140049720
test rbx, rbx
je 0x14004976e
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
Function at 0x140049bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140049bfd
xor eax, eax
jmp 0x140049d69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140049c37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140049c37
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 0x140049d69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140049d5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140049c7a
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 0x140049ca5
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 0x140049d61
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 0x140049d14
sub eax, 1
je 0x140049d14
cmp eax, 2
jne 0x140049d5c
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 0x140049d61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140049d42
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 0x140049d5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140049d61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14004fcd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004a010
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004a0e3
cmp byte [rcx + 0x71], 0
je 0x14004a0e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004a0df
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 0x14004a0a4
sub eax, 1
je 0x14004a0a8
cmp eax, 2
jne 0x14004a0df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004a0d6
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 0x14004a0df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004a08c
xor al, al
jmp 0x14004a08c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x60
pop rbx
ret

Function at 0x14004a630
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.140050380
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004aed0]
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 0x14004a6a9
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004fcd0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
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 0x14004f9f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x140067730], 0
movsx edi, dx
movsx ebx, cx
ja 0x14004fa23
mov eax, 0xffffdcd8
jmp 0x14004fb2e
inc dword [0x140066ee8]
mov dword [0x140066eec], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x140066eb8]
mov rcx, qword [0x140067730]
lea rdx, [0x140066ee0]
mov dword [0x140066eac], ebx
xor r9d, r9d
mov dword [0x140066eb0], edi
mov r8d, 0x48
movups xmm0, xmmword [0x140066ea8]
mov dword [0x140066ee4], eax
lea rax, [0x140067710]
movaps xmmword [0x140066f00], xmm1
movsd xmm1, qword [0x140066ed8]
movaps xmmword [0x140066ef0], xmm0
movups xmm0, xmmword [0x140066ec8]
mov dword [rsp + 0x28], sendto
movsd qword [0x140066f20], xmm1
movaps xmmword [0x140066f10], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140067730]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140067300]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor ebx, ebx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov qword [0x140066eac], rbx
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x14004fb03
mov eax, 0xffffdcdb
jmp 0x14004fb2e
mov eax, dword [0x140066eec]
cmp dword [0x14006730c], eax
je 0x14004fb18
mov ebx, 0xffffdcdc
jmp 0x14004fb2c
mov ecx, dword [0x140066ee8]
mov eax, 0xffffdcdd
cmp dword [0x140067308], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004fcd0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14004fb50
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x140067730], 0
ja 0x14004fb84
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x58
ret
inc dword [0x140066ee8]
mov dword [0x140066eec], 0x9823ae8d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x140066eb8]
and dword [0x140066ea8], 0xfffffffe
lea rdx, [0x140066ee0]
movups xmm0, xmmword [0x140066ea8]
mov rcx, qword [0x140067730]
xor r9d, r9d
mov dword [0x140066ee4], eax
mov r8d, 0x48
movaps xmmword [0x140066ef0], xmm0
lea rax, [0x140067710]
movups xmm0, xmmword [0x140066ec8]
mov dword [rsp + 0x28], sendto
movaps xmmword [0x140066f00], xmm1
movsd xmm1, qword [0x140066ed8]
movaps xmmword [0x140066f10], xmm0
movsd qword [0x140066f20], xmm1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140067730]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140067300]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x14004fc66
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x58
ret
mov eax, dword [0x140066eec]
cmp dword [0x14006730c], eax
je 0x14004fc8b
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x58
ret
mov ecx, dword [0x140066ee8]
xor eax, eax
cmp dword [0x140067308], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004fcd0
add rsp, 0x58
ret

Function at 0x140050aa4
Capabilities:
Parse pe header

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

Function at 0x140050da4
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 0x140050dde
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140050de3
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 0x140050e2c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140053b30]
cmp byte [rcx + rax], 0
je 0x140050e2c
dec r8
sub rdx, 1
jne 0x140050e12
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14005141c
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.140050e44
mov ebx, eax
test eax, eax
jne 0x14005144c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400514af
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400514a6
test al, 0x10
je 0x1400514a6
bt eax, 0xa
jae 0x14005149f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400514c0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14005149b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14005149b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400514a6
and dword [rsp + 0x3c], 0
jmp 0x1400514ab
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 0x110107850
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebx, edx
mov rsi, rcx
cmp edx, 1
jne 0x110107871
call fcn.110130780
mov r8, rdi
mov edx, ebx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x110107894
push rbx
sub rsp, 0x20
mov rbx, r8
cmp edx, 1
jne 0x110107915
call fcn.110107b00
test eax, eax
je 0x1101078be
call fcn.11011a214
test eax, eax
jns 0x1101078c5
call fcn.11013abe8
call fcn.1101197f4
xor eax, eax
jmp 0x1101079c1
call fcn.1101308e4
mov qword [0x1101945a0], rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineA]
mov qword [sym.msvcrt.dll__acmdln], rax
call sub.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW
mov qword [sym.msvcrt.dll__wcmdln], rax
call fcn.110120aa0
call fcn.11013c020
test eax, eax
js 0x11010790e
xor ecx, ecx
call fcn.11013a224
test eax, eax
jne 0x11010790e
inc dword [0x11019459c]
jmp 0x1101079bc
call fcn.11011a4b0
jmp 0x1101078b4
test edx, edx
jne 0x110107953
mov eax, dword [0x11019459c]
test eax, eax
jle 0x1101078be
dec eax
cmp dword [0x110194d1c], edx
mov dword [0x11019459c], eax
jne 0x110107938
call sym.msvcrt.dll__cexit
call fcn.11013a15c
test rbx, rbx
jne 0x1101079bc
call fcn.11011a4b0
call fcn.11013abe8
call fcn.1101197f4
jmp 0x1101079bc
cmp edx, 2
jne 0x1101079b0
call sym.msvcrt.dll__CrtDbgReport
mov ecx, dword [0x110190c30]
call qword [sym.imp.api_ms_win_core_fibers_l1_1_0.dll_FlsGetValue]
test rax, rax
jne 0x1101079bc
mov edx, 0x2d8
lea ecx, [rax + 1]
call fcn.110119e8c
mov rbx, rax
test rax, rax
je 0x1101078be
mov ecx, dword [0x110190c30]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_fibers_l1_1_0.dll_FlsSetValue]
mov rcx, rbx
test eax, eax
je 0x1101079a6
xor edx, edx
call fcn.11013aa90
jmp 0x1101079bc
call sym.msvcrt.dll_free
jmp 0x1101078be
cmp edx, 3
jne 0x1101079bc
xor ecx, ecx
call fcn.11013a99c
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp dword [rsp + 8], 1
jne 0x110170330
push 0
push 0
push 0x77bf387e
push 0x778c0bd0
push 0
push 0
mov eax, 0x778c0f10
call rax
jmp 0x110107850
Function at 0x110107894
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebx, edx
mov rsi, rcx
cmp edx, 1
jne 0x110107871
call fcn.110130780
mov r8, rdi
mov edx, ebx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x110107894
push rbx
sub rsp, 0x20
mov rbx, r8
cmp edx, 1
jne 0x110107915
call fcn.110107b00
test eax, eax
je 0x1101078be
call fcn.11011a214
test eax, eax
jns 0x1101078c5
call fcn.11013abe8
call fcn.1101197f4
xor eax, eax
jmp 0x1101079c1
call fcn.1101308e4
mov qword [0x1101945a0], rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineA]
mov qword [sym.msvcrt.dll__acmdln], rax
call sub.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW
mov qword [sym.msvcrt.dll__wcmdln], rax
call fcn.110120aa0
call fcn.11013c020
test eax, eax
js 0x11010790e
xor ecx, ecx
call fcn.11013a224
test eax, eax
jne 0x11010790e
inc dword [0x11019459c]
jmp 0x1101079bc
call fcn.11011a4b0
jmp 0x1101078b4
test edx, edx
jne 0x110107953
mov eax, dword [0x11019459c]
test eax, eax
jle 0x1101078be
dec eax
cmp dword [0x110194d1c], edx
mov dword [0x11019459c], eax
jne 0x110107938
call sym.msvcrt.dll__cexit
call fcn.11013a15c
test rbx, rbx
jne 0x1101079bc
call fcn.11011a4b0
call fcn.11013abe8
call fcn.1101197f4
jmp 0x1101079bc
cmp edx, 2
jne 0x1101079b0
call sym.msvcrt.dll__CrtDbgReport
mov ecx, dword [0x110190c30]
call qword [sym.imp.api_ms_win_core_fibers_l1_1_0.dll_FlsGetValue]
test rax, rax
jne 0x1101079bc
mov edx, 0x2d8
lea ecx, [rax + 1]
call fcn.110119e8c
mov rbx, rax
test rax, rax
je 0x1101078be
mov ecx, dword [0x110190c30]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_fibers_l1_1_0.dll_FlsSetValue]
mov rcx, rbx
test eax, eax
je 0x1101079a6
xor edx, edx
call fcn.11013aa90
jmp 0x1101079bc
call sym.msvcrt.dll_free
jmp 0x1101078be
cmp edx, 3
jne 0x1101079bc
xor ecx, ecx
call fcn.11013a99c
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp dword [rsp + 8], 1
jne 0x110170330
push 0
push 0
push 0x77bf387e
push 0x778c0bd0
push 0
push 0
mov eax, 0x778c0f10
call rax
jmp 0x110107850

Function at 0x1101079d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r10d, dword [rax]
mov dword [0x110194674], r10d
test r9d, r9d
je 0x110107a03
call fcn.11013b600
jmp 0x110107a08
call fcn.11013b2a0
mov r9d, eax
test eax, eax
jns 0x110107a19
or ecx, 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov eax, dword [sym.msvcrt.dll___argc]
mov dword [rsi], eax
mov rax, qword [sym.msvcrt.dll___argv]
mov rsi, qword [rsp + 0x38]
mov qword [rdi], rax
mov rax, qword [sym.msvcrt.dll__environ]
mov qword [rbx], rax
mov eax, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret