joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002180
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x528
mov qword [rsp + 0x520], rcx
mov qword [rsp + 0x518], rdx
lea rcx, [rsp + 0x410]
mov edx, 0x104
call sub.api_ms_win_crt_stdio_l1_1_0.dll__getcwd
cmp rax, 0
jne 0x1400021c9
lea rcx, str.getcwd
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
lea rax, [rsp + 0x410]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x520]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x520]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov r8, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
cmp eax, 0
je 0x14000239e
lea rcx, [rsp + 0x300]
mov r9, qword [rsp + 0x520]
mov rdx, qword [rsp + 0x518]
mov rax, rsp
mov qword [rax + 0x20], rdx
lea r8, str._s__s
mov edx, 0x104
call fcn.140004bb0
lea rcx, [rsp + 0x300]
xor edx, edx
call fcn.140004b10
cmp eax, 0xffffffff
jne 0x140002269
lea rcx, str.access
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
lea rcx, [rsp + 0xf0]
lea r9, [rsp + 0x300]
mov rdx, qword [rsp + 0x520]
mov rax, rsp
mov qword [rax + 0x20], rdx
lea r8, str.__s____run___s_
mov edx, 0x208
call fcn.140004bb0
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8d, 0x68
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x88], 0x68
mov dword [rsp + 0xc4], 1
mov word [rsp + 0xc8], 0
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x18
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rsp + 0xf0]
xor eax, eax
mov r9d, eax
xor eax, eax
lea r10, [rsp + 0x88]
lea rax, [rsp + 0x70]
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 0
jne 0x140002371
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
mov r8d, eax
lea rdx, str.CreateProcess_failed___lu__n
call fcn.140004b20
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
add rsp, 0x528
ret
Function at 0x1400023b0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x1400023e9
mov rdx, qword [rsp + 0x30]
lea rcx, str.The_specified_path_is_invalid:__s_n
call fcn.140004b60
jmp 0x140002459
mov eax, dword [rsp + 0x2c]
and eax, 0x10
cmp eax, 0
jne 0x14000240f
mov rdx, qword [rsp + 0x30]
lea rcx, str.The_specified_path_is_not_a_folder:__s_n
call fcn.140004b60
jmp 0x140002459
mov eax, dword [rsp + 0x2c]
or eax, 6
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 0
je 0x140002448
mov rdx, qword [rsp + 0x30]
lea rcx, str.Attributes_set_successfully_for_folder:__s_n
call fcn.140004b60
jmp 0x140002459
mov rdx, qword [rsp + 0x30]
lea rcx, str.Failed_to_set_attributes_for_folder:__s_n
call fcn.140004b60
nop
add rsp, 0x38
ret

Function at 0x140002520
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140002553
mov eax, dword [rsp + 0x24]
and eax, 0x10
cmp eax, 0
jne 0x140002579
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
cmp eax, 0
je 0x140002574
mov dword [rsp + 0x34], 0
jmp 0x140002581
jmp 0x140002579
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x38
ret
Function at 0x140003240
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x148
mov qword [rsp + 0x140], rcx
mov qword [rsp + 0x138], rdx
mov dword [rsp + 0x2c], 0x101
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 0
je 0x14000329e
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x138]
lea r9, [rsp + 0x30]
lea r8, str.C:Users_sAppDataLocalMicrosoftLog
call fcn.140004bb0
jmp 0x1400032ba
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x138]
lea r8, str.C:UsersAdministratorAppDataLocalMicrosoftLog
call fcn.140004bb0
nop
add rsp, 0x148
ret

Function at 0x140003610
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x28], rcx
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x74], r8d
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x74]
movzx eax, ax
mov edx, eax
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140003677
lea rcx, str.Failed_to_find_resource_n
call fcn.140004b60
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400036ae
lea rcx, str.Failed_to_load_resource_n
call fcn.140004b60
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400037ab
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x5c]
mov edx, eax
lea r8, [rsp + 0x48]
call fcn.1400025f0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000371a
lea rcx, str.Failed_to_decode_resource_data_n
call fcn.140004b60
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rcx, qword [rsp + 0x48]
add rcx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140003759
lea rcx, str.Failed_to_allocate_memory_for_decoded_string_n
call fcn.140004b60
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov byte [rax + rdx], 0
mov rdx, qword [rsp + 0x38]
call fcn.140003b70
mov rcx, qword [rsp + 0x40]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [rsp + 0x30]
add rsp, 0x88
ret
lea rcx, str.Failed_to_lock_resource_n
call fcn.140004b60
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400037d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x64], edx
mov rcx, qword [rsp + 0x68]
mov eax, dword [rsp + 0x64]
movzx eax, ax
mov edx, eax
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140003816
mov qword [rsp + 0x70], 0
jmp 0x140003924
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140003845
mov qword [rsp + 0x70], 0
jmp 0x140003924
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000391b
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x4c]
mov edx, eax
lea r8, [rsp + 0x38]
call fcn.1400025f0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400038a9
mov qword [rsp + 0x70], 0
jmp 0x140003924
mov rcx, qword [rsp + 0x38]
add rcx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400038e0
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsp + 0x70], 0
jmp 0x140003924
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov byte [rax + rcx], 0
mov rcx, qword [rsp + 0x30]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
jmp 0x140003924
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x70]
add rsp, 0x78
ret

Function at 0x1400046a0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.140008530
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x140004b10
Capabilities:
Check if file exists

Disassembly:
jmp 0x140008560
push rsi
push rdi
sub rsp, 0x28
mov edi, 0x16
test rcx, rcx
je 0x1400085b7
mov esi, edx
cmp edx, 7
ja 0x1400085b7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000859d
mov ecx, eax
xor eax, eax
test cl, 0x10
jne 0x1400085c3
test sil, 2
je 0x1400085c3
mov edi, 0xd
and ecx, 1
jne 0x1400085b7
jmp 0x1400085c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 4
jae 0x1400085b7
cdqe
lea rcx, [0x14000d5e0]
mov edi, dword [rcx + rax*4]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], edi
mov eax, 0xffffffff
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140007de0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, str._stack_smashing_detected_:_terminated_n
mov ecx, 2
mov r8d, 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140007e10
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x1400082bc
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x1400082bc
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x1400082bc
movzx edx, word [rax + 6]
test edx, edx
je 0x1400082bc
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x1400082a8
add rax, 0x28
dec edx
je 0x1400082bc
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x1400082a0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x1400082a0
jmp 0x1400082be
xor eax, eax
ret

Function at 0x1400082c0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x1400082f5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x1400082f5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x1400082f5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x140008370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000839c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000839c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000839e
xor eax, eax
ret

Function at 0x140008560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140008560
push rsi
push rdi
sub rsp, 0x28
mov edi, 0x16
test rcx, rcx
je 0x1400085b7
mov esi, edx
cmp edx, 7
ja 0x1400085b7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000859d
mov ecx, eax
xor eax, eax
test cl, 0x10
jne 0x1400085c3
test sil, 2
je 0x1400085c3
mov edi, 0xd
and ecx, 1
jne 0x1400085b7
jmp 0x1400085c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 4
jae 0x1400085b7
cdqe
lea rcx, [0x14000d5e0]
mov edi, dword [rcx + rax*4]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], edi
mov eax, 0xffffffff
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400022f0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x690
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x680], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002349
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_creating_process_snapshot.
call fcn.140004b50
mov rcx, rax
lea rdx, [0x140004d30]
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]
jmp 0x140002402
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400023f9
nop word [rax + rax]
lea r8, [rsp + 0x4c]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea r8, str.GTAProcess.exe
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x470]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rcx, rbx
test rax, rax
jne 0x14000241d
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002370
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14006cde0
add rsp, 0x690
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140002404
Function at 0x1400035a0
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 0x1400035c8
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 0x1400035ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400035f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003649
test ecx, ecx
jle 0x140003629
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 0x140003649
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003649
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 0x140003670
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 0x140003692
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400036a8
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 0x1400036c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400036c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003702
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 0x14000379e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000373d
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 0x14000377e
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 0x14000379e
cmp rbx, rax
ja 0x140003750
test rbx, rbx
je 0x14000379e
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 0x140003c00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003c2d
xor eax, eax
jmp 0x140003d99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003c67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003c67
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 0x140003d99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003d8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003caa
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 0x140003cd5
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 0x140003d91
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 0x140003d44
sub eax, 1
je 0x140003d44
cmp eax, 2
jne 0x140003d8c
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 0x140003d91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003d72
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 0x140003d8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003d91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006cde0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400044f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400045c3
cmp byte [rcx + 0x71], 0
je 0x1400045c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400045bf
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 0x140004584
sub eax, 1
je 0x140004588
cmp eax, 2
jne 0x1400045bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006cde0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400045b6
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 0x1400045bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000456c
xor al, al
jmp 0x14000456c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006cde0
add rsp, 0x60
pop rbx
ret

Function at 0x1400066d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140006704
mov eax, esi
lea ecx, [rax - 0x69]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x1400066f0
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140005bd0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140006729
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140018c20
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400067a3
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000679e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000679e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006ce3c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret