joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140121620
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x13d0
call fcn.14012c080
sub rsp, rax
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
xor r8d, r8d
lea rdx, [0x140156438]
call fcn.140013b60
mov ebx, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
nop
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x34], ecx
inc rbx
cmp rbx, 0x270
jb 0x1401216a0
mov dword [rsp + 0x30], 0x270
mov ebp, dword [0x1401fc458]
dec ebp
test esi, esi
jle 0x1401217a7
mov r15d, 0x80000000
xor ebp, r15d
mov r14, rsi
lea r12, [0x1401fc448]
nop word [rax + rax]
lea rcx, [rsp + 0x30]
cmp ebp, 0x7fffffff
jne 0x140121706
call fcn.1400e2f10
mov ecx, eax
jmp 0x140121748
lea ebx, [rbp - 0x7fffffff]
call fcn.1400e2f10
mov esi, ebx
mov ecx, eax
imul rcx, rsi
cmp ecx, ebx
jae 0x140121744
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140121744
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400e2f10
mov ecx, eax
imul rcx, rsi
cmp ecx, ebx
jb 0x140121730
shr rcx, 0x20
lea eax, [rcx + r15]
xor eax, r15d
mov rcx, r12
cmp qword [0x1401fc460], 0xf
cmova rcx, qword [0x1401fc448]
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140121795
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14012178a
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14012179d
mov rcx, rdi
call fcn.140017150
sub r14, 1
jne 0x1401216f0
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401217e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x13d0
call fcn.14012c080
sub rsp, rax
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], rbp
xor r8d, r8d
lea rdx, [0x140156438]
call fcn.140013b60
mov dword [rsp + 0x20], 1
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x34], edx
inc rcx
cmp rcx, 0x270
jb 0x140121860
mov dword [rsp + 0x30], 0x270
mov r14d, dword [0x1401fc458]
dec r14d
mov r15d, 0x80000000
xor r14d, r15d
lea r12, [0x1401fc448]
test ebp, ebp
je 0x1401218ba
mov r8d, 1
lea rdx, [0x1401c1974]
mov rcx, rbx
call fcn.140006b10
lea rcx, [rsp + 0x30]
cmp r14d, 0x7fffffff
jne 0x1401218d1
call fcn.1400e2f10
mov ecx, eax
jmp 0x140121918
lea edi, [r14 - 0x7fffffff]
call fcn.1400e2f10
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x140121914
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x140121914
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400e2f10
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x140121900
shr rcx, 0x20
lea eax, [rcx + r15]
xor eax, r15d
mov rcx, r12
cmp qword [0x1401fc460], 0xf
cmova rcx, qword [0x1401fc448]
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140121965
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14012195a
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14012196d
mov rcx, rbx
call fcn.140017150
lea rcx, [rsp + 0x30]
cmp r14d, 0x7fffffff
jne 0x140121984
call fcn.1400e2f10
mov ecx, eax
jmp 0x1401219c8
lea edi, [r14 - 0x7fffffff]
call fcn.1400e2f10
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x1401219c4
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x1401219c4
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400e2f10
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x1401219b0
shr rcx, 0x20
lea eax, [rcx + r15]
xor eax, r15d
mov rcx, r12
cmp qword [0x1401fc460], 0xf
cmova rcx, qword [0x1401fc448]
cdqe
movzx r9d, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140121a15
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140121a0a
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140121a1d
mov rcx, rbx
call fcn.140017150
inc ebp
cmp ebp, 6
jl 0x1401218a1
mov rax, rbx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14012ada0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140121a60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov esi, ecx
test r8b, r8b
je 0x140121b80
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rbp, [0x1401ff510]
mov eax, dword [rcx + rax]
cmp dword [0x1401ff50c], eax
jle 0x140121b17
lea rcx, [0x1401ff50c]
call fcn.14012b128
cmp dword [0x1401ff50c], 0xffffffff
jne 0x140121b17
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x140200894], 0xffffffff
mov dword [0x1401ff514], eax
mov r8d, 1
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rbp + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x140121ae0
mov dword [0x1401ff510], 0x270
lea rcx, [0x1401ff50c]
call fcn.14012b0bc
btc esi, 0x1f
btc ebx, 0x1f
sub ebx, esi
mov rcx, rbp
cmp ebx, 0xffffffff
jne 0x140121b3a
call fcn.1400e2f10
mov ecx, eax
lea eax, [rax + rsi]
xor eax, 0x80000000
jmp 0x140121b82
inc ebx
call fcn.1400e2f10
mov edi, ebx
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jae 0x140121b72
mov eax, ebx
neg eax
xor edx, edx
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140121b72
nop dword [rax + rax]
mov rcx, rbp
call fcn.1400e2f10
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140121b60
shr rcx, 0x20
lea eax, [rcx + rsi]
xor eax, 0x80000000
jmp 0x140121b82
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401243d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f4040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rax, qword [rcx]
mov byte [rax + 0xdc6], 1
mov byte [rcx + 8], 1
mov ecx, reloc.WS2_32.dll_recv
call fcn.14012adc0
mov qword [rax], rbx
lea rcx, [0x140129270]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400071e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1401244a8
cmp dword [rbx + 0x80], 0
jne 0x1401244a1
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx + 0x78], xmm1
cmp dword [rbx + 0x80], 0
je 0x140124495
movaps xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140124495
xorps xmm0, xmm0
movups xmmword [rbx + 0x78], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012ada0
add rsp, 0x50
pop rbx
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14012acc8
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 0x14012ad02
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14012ad07
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 0x14012ad50
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14012ad50
dec r8
sub rdx, 1
jne 0x14012ad36
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14012bce8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14012bd32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012bd32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012bd32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012bd32
cmp dword [rcx + 0x84], 0xe
jbe 0x14012bd32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14012bd34
xor al, al
add rsp, 0x28
ret
Function at 0x14004614a
Capabilities:
Read file via mapping

Disassembly:
jmp 0x140099cf0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x14011b11d]
call fcn.1400492a0
mov edx, 0x28
mov rcx, qword [rbp + 0x140]
call fcn.1400479b4
mov rcx, qword [rbp + 0x140]
call fcn.140048ff3
mov rcx, qword [rbp + 0x148]
call fcn.140046302
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x140]
cmp qword [rax + 0x10], 0xffffffffffffffff
jne 0x140099db7
lea rcx, str.Couldnt_open_file_with_CreateFile___n
call fcn.1400477c5
mov rax, qword [rbp + 0x140]
jmp 0x140099edc
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 0x18], rax
mov rax, qword [rbp + 0x140]
cmp qword [rax + 0x18], 0
jne 0x140099e26
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Couldnt_open_file_mapping_with_CreateFileMapping___n
call fcn.1400477c5
mov rax, qword [rbp + 0x140]
jmp 0x140099edc
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [rbp + 0x140]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x140]
cmp qword [rax + 8], 0
jne 0x140099e9b
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x140]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Couldnt_map_view_of_file_with_MapViewOfFile___n
call fcn.1400477c5
mov rax, qword [rbp + 0x140]
jmp 0x140099edc
mov rax, qword [rbp + 0x140]
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx + 8]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x140]
mov rax, qword [rax + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x140]
add rax, qword [rcx + 0x20]
mov rcx, qword [rbp + 0x140]
mov qword [rcx], rax
mov rax, qword [rbp + 0x140]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400e1690]
call fcn.1400489b3
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400464d3
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400ca0a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14011b06b]
call fcn.1400492a0
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400ca0f7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400ca203
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400ca19c
cmp qword [rbp + 0x28], 0
jle 0x1400ca19c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400ca13c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140048f5d
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1400ca1f2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400ca1f2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400468f7
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400a1640
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14011b01e]
call fcn.1400492a0
mov qword [rbp + 8], 0
jmp 0x1400a167e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1400a16d4
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1400a1673
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140047c2a
Capabilities:
Terminate process

Disassembly:
jmp 0x1400d0a70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140048080
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400caae0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400cab1d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140049278
add rsp, 0x58
ret

Function at 0x1400482b0
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400d15a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400d15c0
xor al, al
jmp 0x1400d1641
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400d15d3
xor al, al
jmp 0x1400d1641
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400d15fd
xor al, al
jmp 0x1400d1641
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400d1611
xor al, al
jmp 0x1400d1641
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400d1623
xor al, al
jmp 0x1400d1641
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400d163f
xor al, al
jmp 0x1400d1641
mov al, 1
add rsp, 0x38
ret
Function at 0x140048828
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14009b410
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x270
lea rbp, [rsp + 0x20]
lea rcx, [0x14011b11d]
call fcn.1400492a0
mov rax, qword [rbp + 0x270]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x270]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rbp + 8], rax
mov dword [rbp + 0x24], 0
jmp 0x14009b473
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 8]
add rax, 0x28
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x270]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x24], eax
jge 0x14009b546
lea rax, [rbp + 0x148]
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 8]
mov rdx, rax
mov rcx, qword [rbp + 0x178]
call fcn.1400474e1
lea rcx, [rbp + 0x1c8]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x198]
mov rdi, rax
mov rsi, qword [rbp + 0x278]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x230]
lea rcx, [rbp + 0x1c8]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x200]
lea rcx, [rbp + 0x198]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0x200]
call fcn.140047996
movzx eax, al
test eax, eax
je 0x14009b541
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0xc]
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 8]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 8]
jmp 0x14009b548
jmp 0x14009b45f
xor eax, eax
lea rsp, [rbp + 0x250]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400491e7
Capabilities:
Write file on windows

Disassembly:
jmp 0x14009fbe0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140109080]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x14011b06b]
call fcn.1400492a0
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14009fc46
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14009fc4d
mov al, 1
jmp 0x14009fdbd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140046dde
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.140046dde
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140048765
movzx eax, al
test eax, eax
je 0x14009fcb0
xor al, al
jmp 0x14009fdbd
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14009fd23
cmp dword [rbp + 0x160], 1
je 0x14009fd2e
cmp dword [rbp + 0x160], 3
je 0x14009fdac
jmp 0x14009fdbb
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14009fd7e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14009fd7e
xor al, al
jmp 0x14009fdbd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14009fd99
mov dword [rbp + 0x154], 1
jmp 0x14009fda3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14009fdbd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14009fdbd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400e4900]
call fcn.1400489b3
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140047851
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140056760
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov eax, 0x16f0
call fcn.14004693d
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x434
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1718]
mov rax, qword [0x140109080]
xor rax, rbp
mov qword [rbp + 0x16c8], rax
lea rcx, [0x14011b120]
call fcn.1400492a0
mov rcx, qword [rbp + 0x1700]
call fcn.140046c03
dec rax
mov qword [rbp + 8], rax
lea rax, [rbp + 0x16b0]
mov rdi, rax
mov rsi, qword [rbp + 0x1700]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8b, 0xcc
lea rdx, [rbp + 0x16b0]
lea rcx, [rbp + 0xe88]
call fcn.140099a80
lea rcx, [rbp + 0x30]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x800
rep movsb byte [rdi], byte [rsi]
jmp 0x140056844
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x16f0]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov edx, eax
lea rcx, [rbp + 0x30]
call fcn.140046d6b
mov rax, qword [rax]
mov rcx, qword [rbp + 0x16f0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x16f0], rax
mov rax, qword [rbp + 0x16f8]
cmp qword [rbp + 0x16f0], rax
ja 0x1400568e8
mov rax, qword [rbp + 8]
mov qword [rbp + 0x848], rax
jmp 0x140056876
mov rax, qword [rbp + 0x848]
dec rax
mov qword [rbp + 0x848], rax
cmp qword [rbp + 0x848], 0
jb 0x1400568e3
mov rdx, qword [rbp + 0x848]
mov rcx, qword [rbp + 0x1700]
call fcn.14004821f
movzx eax, byte [rax]
mov byte [rbp + 0x864], al
movzx eax, byte [rbp + 0x864]
cmp eax, 0xcc
je 0x1400568ce
movzx eax, byte [rbp + 0x864]
mov rcx, qword [rbp + 0x848]
mov rdx, qword [rbp + 0x16f0]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
cmp eax, ecx
je 0x1400568ce
jmp 0x1400568e3
cmp qword [rbp + 0x848], 0
jne 0x1400568e1
mov rax, qword [rbp + 0x16f0]
jmp 0x1400568ea
jmp 0x140056865
jmp 0x14005680e
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400e2070]
call fcn.1400489b3
mov rax, rdi
mov rcx, qword [rbp + 0x16c8]
xor rcx, rbp
call fcn.140047851
lea rsp, [rbp + 0x16d0]
pop rdi
pop rsi
pop rbp
ret