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

Disassembly:
jmp 0x14001e2f0
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, [0x1400370f5]
call fcn.140011942
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001e348
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 0x14001e45a
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 0x14001e3f3
cmp qword [rbp + 0x28], 0
jle 0x14001e3f3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001e391
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.1400118c0
nop
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]
nop
cmp qword [rbp + 0x130], 0
jle 0x14001e449
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001e449
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 0x14001153c
Capabilities:
Terminate process

Disassembly:
jmp 0x140020ff0
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]
nop
add rsp, 0x28
ret
Function at 0x140011663
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
jmp 0x14001e540
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x1400370f7]
call fcn.140011942
nop
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
nop
lea rdx, str.fi_FI.utf8
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_setlocale]
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140011415]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140030700], rax
cmp qword [0x140030700], 0
jne 0x14001e5f4
lea rdx, str.Failed_to_install_hook_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011122
lea rdx, [0x14001105f]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
nop
mov eax, 1
jmp 0x14001e632
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14001e622
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_DispatchMessageW]
nop
jmp 0x14001e5f4
mov rcx, qword [0x140030700]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140029c10]
call fcn.1400117b2
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.14001147e
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140011686
Capabilities:
Parse pe header

Disassembly:
jmp 0x140021b20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140021b40
xor al, al
jmp 0x140021bc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140021b53
xor al, al
jmp 0x140021bc1
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 0x140021b7d
xor al, al
jmp 0x140021bc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140021b91
xor al, al
jmp 0x140021bc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140021ba3
xor al, al
jmp 0x140021bc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140021bbf
xor al, al
jmp 0x140021bc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011929
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a4a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400370f5]
call fcn.140011942
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001a507
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a50e
mov al, 1
jmp 0x14001a65e
call fcn.140011294
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011294
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011758
movzx eax, al
test eax, eax
je 0x14001a55f
xor al, al
jmp 0x14001a65e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
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 + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001a5c4
cmp dword [rbp + 0x154], 1
je 0x14001a5cf
cmp dword [rbp + 0x154], 3
je 0x14001a64d
jmp 0x14001a65c
mov rax, qword [rbp + 0x190]
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 0x14001a61f
mov rax, qword [rbp + 0x190]
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 0x14001a61f
xor al, al
jmp 0x14001a65e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a63a
mov dword [rbp + 0x154], 1
jmp 0x14001a644
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001a65e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001a65e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140029a90]
call fcn.1400117b2
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001147e
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001f410
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400119a1
movzx eax, al
test eax, eax
jne 0x14001f430
mov ecx, 7
call fcn.1400117c6
nop
mov byte [rsp + 0x20], 0
call fcn.140011807
mov byte [rsp + 0x21], al
cmp dword [0x140030740], 1
jne 0x14001f454
mov ecx, 7
call fcn.1400117c6
nop
jmp 0x14001f4ac
cmp dword [0x140030740], 0
jne 0x14001f4a7
mov dword [0x140030740], 1
lea rdx, [0x140028770]
lea rcx, [0x140028440]
call fcn.14001145b
test eax, eax
je 0x14001f488
mov eax, 0xff
jmp 0x14001f5b1
lea rdx, [0x140028330]
lea rcx, [section..rdata]
call fcn.1400117ee
mov dword [0x140030740], 2
jmp 0x14001f4ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001179e
call fcn.1400116b8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001f509
mov rcx, qword [rsp + 0x30]
call fcn.140011375
movzx eax, al
test eax, eax
je 0x14001f509
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140038020]
nop
call fcn.14001172b
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001f53d
mov rcx, qword [rsp + 0x38]
call fcn.140011375
movzx eax, al
test eax, eax
je 0x14001f53d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011906
nop
call fcn.14001f660
mov dword [rsp + 0x28], eax
call fcn.140011686
movzx eax, al
test eax, eax
jne 0x14001f55c
mov ecx, dword [rsp + 0x28]
call fcn.1400110b4
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001f56b
call fcn.14001191a
nop
xor edx, edx
mov cl, 1
call fcn.140011343
mov eax, dword [rsp + 0x28]
jmp 0x14001f5b1
add rsp, 0x68
ret
Function at 0x140001780
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, qword [0x14000bac0]
mov qword [rsp + 0x58], rdx
mov rbx, rcx
mov ecx, 1
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov rdi, qword [rsi]
mov qword [rsp + 0x28], rdi
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x20], rdi
call qword [fcn.140008980]
mov rdx, rbx
mov r8, rdi
mov rcx, rax
call fcn.140002c20
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rsi]
jne 0x14000149d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.140002bd0
nop
nop word cs:[rax + rax]
nop
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, rcx
mov rbx, rdx
mov esi, r8d
test rdx, rdx
je 0x140001890
test r8d, r8d
je 0x140001890
mov r9d, r8d
mov ecx, 0xfde9
mov r8, rdx
mov qword [rsp + 0x38], 0
xor edx, edx
mov r14, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
movsxd r13, eax
mov rcx, r13
mov rdi, r13
call sub.msvcrt.dll_malloc
mov rbp, rax
test rax, rax
jne 0x14000180b
test r13, r13
je 0x1400018c5
test rbp, rbp
je 0x1400018ad
xor edx, edx
mov dword [rsp + 0x28], edi
mov r9d, esi
mov r8, rbx
mov qword [rsp + 0x38], 0
mov ecx, 0xfde9
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rbp
call r14
test eax, eax
je 0x1400018b9
mov rdx, r12
lea rcx, [0x14000b033]
call 0x140001440
mov ecx, 1
call qword [fcn.140008980]
mov r8, r13
mov edx, 1
mov rcx, rbp
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 0xa
call sub.msvcrt.dll_putchar
mov rcx, rbp
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140008a70
mov rdx, r12
lea rcx, str._s_n
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x140001440
lea rcx, str.Out_of_memory
call fcn.140001610
lea rcx, str.WideCharToMultiByte_failed_
call fcn.140001610
mov ecx, 1
call sub.msvcrt.dll_malloc
mov rbp, rax
jmp 0x140001802
Function at 0x1400024a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f960]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f940]
test rbx, rbx
je 0x140002504
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400024fb
test eax, eax
jne 0x1400024fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024e0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
mov rdx, qword [0x14000b9e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002880
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002888
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002880
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400028dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400028d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002880
add rax, 0x28
cmp rax, r9
jne 0x1400028c0
xor eax, eax
ret

Function at 0x1400028e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b9e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400028ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002908
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400028ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400029a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b9e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400029bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400029c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002b80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002bb0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002bd0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002c00
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002d08
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054d0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005390]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000283a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000281e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002812
cmp qword [rbp - 0x10], 0
je 0x140002812
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027d8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000283b
nop
add rsp, 0x30
pop rbp
ret
Function at 0xac9d80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xac9d8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xac9d9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xac9d85
lea eax, [rcx + 1]
jmp 0xac9dab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xac9dbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xac9da4
sub eax, 3
jb 0xac9dde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xac9e2d
sar eax, 1
movsxd rbp, eax
jb 0xac9e14
jmp 0xac9dec
add ebx, ebx
jne 0xac9dea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xac9e14
inc ecx
add ebx, ebx
jne 0xac9dfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xac9e14
call r11
adc ecx, ecx
add ebx, ebx
jne 0xac9e0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xac9dfc
add ecx, 2
jmp 0xac9e19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00ac9d42
jmp 0xac9d8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x37a400
mov dl, 0x47
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xac9e79
cmp rsi, rcx
jae 0xac9e81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xac9e60
cmp al, 0x8f
ja 0xac9e60
cmp byte [rsi - 2], 0xf
je 0xac9e66
sub al, 0xe8
cmp al, 1
ja 0xac9e4a
cmp rsi, rcx
jae 0xac9e81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xac9e50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xac9e81
lodsb al, byte [rsi]
jmp 0xac9e60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6c2000]
mov eax, dword [rdi]
or eax, eax
je 0xac9ede
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6f4c0c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xac9e8e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xac9ed8
mov qword [rbx], rax
add rbx, 8
jmp 0xac9eae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xac9f22
cmp al, 0xef
ja 0xac9f0a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xac9eea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xac9ef9
mov eax, dword [rdi]
add rdi, 4
jmp 0xac9ef9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xac9f76
sub rsp, 0xffffffffffffff80
jmp 0x468480
Function at 0x140002a50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002a7d
xor eax, eax
jmp 0x140002be9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002ab7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002ab7
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 0x140002be9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002bdc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002afa
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 0x140002b25
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 0x140002be1
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 0x140002b94
sub eax, 1
je 0x140002b94
cmp eax, 2
jne 0x140002bdc
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 0x140002be1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002bc2
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 0x140002bdc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002be1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003d90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret