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

Disassembly:
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x180239a1e]
call fcn.180140630
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x180133a46
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180133a4d
mov al, 1
jmp 0x180133bbd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.180010b50
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.180010b50
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.180010b80
movzx eax, al
test eax, eax
je 0x180133ab0
xor al, al
jmp 0x180133bbd
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 0x180133b23
cmp dword [rbp + 0x160], 1
je 0x180133b2e
cmp dword [rbp + 0x160], 3
je 0x180133bac
jmp 0x180133bbb
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 0x180133b7e
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 0x180133b7e
xor al, al
jmp 0x180133bbd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180133b99
mov dword [rbp + 0x154], 1
jmp 0x180133ba3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x180133bbd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180133bbd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180194970]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180136920
Capabilities:
Write file on windows

Disassembly:
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, [0x180239a1e]
call fcn.180140630
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x180136977
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 0x180136a83
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 0x180136a1c
cmp qword [rbp + 0x28], 0
jle 0x180136a1c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1801369bc
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.18000ed70
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 0x180136a72
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x180136a72
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 0x18013a9d0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180229790], 0
je 0x18013a9e4
xor eax, eax
jmp 0x18013ac4d
cmp qword [0x180229788], 0
je 0x18013a9fa
mov rax, qword [0x180229788]
jmp 0x18013ac4d
mov r8d, 0x48
xor edx, edx
lea rcx, [0x180229740]
call sub.VCRUNTIME140D.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180229740], rax
xor r8d, r8d
xor edx, edx
lea rcx, [0x180195328]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180229748], rax
cmp qword [0x180229748], 0
jne 0x18013aab3
mov dword [0x180229790], 1
cmp qword [0x180229748], 0
je 0x18013aa5f
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x180229750], 0
mov qword [0x180229758], 0
mov qword [0x180229760], 0
mov qword [0x180229768], 0
mov qword [0x180229770], 0
mov qword [0x180229778], 0
mov qword [0x180229780], 0
xor eax, eax
jmp 0x18013ac4d
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229750], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229758], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229760], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229768], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229770], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229778], rax
lea rdx, str.SymFromName
mov rcx, qword [0x180229748]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180229780], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140D.dll_memset
mov eax, recv
mov word [rsp + 0x28], ax
cmp qword [0x180229750], 0
je 0x18013abbe
cmp qword [0x180229758], 0
je 0x18013abbe
cmp qword [0x180229770], 0
je 0x18013abbe
cmp qword [0x180229778], 0
je 0x18013abbe
cmp qword [0x180229780], 0
jne 0x18013abc3
jmp 0x18013aa3e
lea rcx, [rsp + 0x28]
call qword [0x180229750]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18013abdd
jmp 0x18013aa3e
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180229740]
call qword [0x180229758]
test eax, eax
jne 0x18013abf8
jmp 0x18013aa3e
cmp qword [0x180229768], 0
je 0x18013ac38
cmp qword [0x180229760], 0
je 0x18013ac38
call qword [0x180229768]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x180229760]
lea rax, [0x180229740]
mov qword [0x180229788], rax
mov rax, qword [0x180229788]
add rsp, 0x38
ret
Function at 0x18013b7d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140D.dll_memset
jmp 0x18013b818
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18013b838
jmp 0x18013b8d5
cmp dword [rsp + 0x68], 0x1000
jne 0x18013b85d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x18013b85d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x18013b85f
jmp 0x18013b803
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18013b895
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x18013b895
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18013b89a
jmp 0x18013b803
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x18013b803
mov rax, qword [rsp + 0x20]
jmp 0x18013b8d7
xor eax, eax
add rsp, 0x88
ret

Function at 0x18013be90
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140D.dll_memset
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18013bedc
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013bfaa
cmp dword [rsp + 0x60], 0x1000
jne 0x18013bf01
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x18013bf01
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x18013bf13
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013bfaa
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18013bf3b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013bfaa
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18013bf70
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013bfaa
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18013bf8c
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18013bfaa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
jmp 0x18013bfaa
add rsp, 0x78
ret
Function at 0x18013d740
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.18013d530
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013d817
mov dword [rsp + 0x20], 0
jmp 0x18013d7b4
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18013d817
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013d815
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18013d310
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013d7aa
add rsp, 0x30
pop rdi
ret

Function at 0x18013d830
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18013d8d4
mov dword [rsp + 0x20], 0
jmp 0x18013d86d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18013d8bd
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013d8bb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013d863
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1802297a0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x18013d8e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x180229df0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013d964
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18013d98d
mov eax, 0xa
jmp 0x18013dac7
cmp dword [rsp + 0x88], 0
je 0x18013d9fb
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013d9f9
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x18013da47
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18013da2b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140D.dll_memcpy
jmp 0x18013da47
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140D.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180195610]
call fcn.180140400
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x18013efb0
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18013f01e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18013f01e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18013f01e
xor eax, eax
jmp 0x18013f065
mov dword [rsp], 1
jmp 0x18013f02f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18013f060
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18013f05e
xor eax, eax
jmp 0x18013f065
jmp 0x18013f027
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x140e8f660
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e8f66a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e8f693
pop rbp
sub rbp, 0x33
sub rbp, 0xe8f660
sub rsp, 0x20
jmp 0x140e8f6b2
mov rax, 0xe8f660
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x5056d782
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e8f6d1
jmp 0x140e8f6e8
retf 0x6b0b
Function at 0x140001120
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.nircmd.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140001294
mov qword [rsp + 0x60], rbx
lea rdx, str.DoNirCmd
mov qword [rsp + 0x68], rbp
mov rcx, rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, 0xffffffffffffffff
lea r15, str..png
mov rbp, rax
nop dword [rax + rax]
xor esi, esi
nop dword [rax]
nop word [rax + rax]
mov r9d, esi
lea r8, [0x140003280]
mov edx, 6
lea rcx, [rsp + 0x30]
call fcn.1400010c0
lea rax, [rsp + 0x30]
mov rbx, r14
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x1400011c1
lea rcx, [rbx + 0x17]
add rcx, 1
cmovb rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140001251
lea rax, [rsp + 0x30]
mov rcx, rdi
lea r9, str.savescreenshotfull
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rdx, [rbx + 0x18]
call fcn.1400010c0
mov r9, rdi
mov qword [rsp + 0x20], r15
lea r8, str._s_s
mov rcx, rdi
lea rdx, [rbx + 0x18]
call fcn.1400010c0
mov rcx, rdi
call rbp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x3e8
jl 0x1400011a0
jmp 0x140001190
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Memory_allocation_failed_n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
lea rcx, str.Error______
call fcn.140001060
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400012d0
add rsp, 0x58
ret

Function at 0x140001ba4
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
nop
push rcx
pop rbx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000a4c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000a4c0
push rbx
nop
pop rdx
push rax
pop rcx
nop
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140004790
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140011104]
nop
push rcx
pop rbx
or esi, esi
jle 0x1400048c0
mov rax, qword [0x140011108]
sub r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400047db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140004865
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400047c0
push rbx
pop rcx
nop
call fcn.1400051e0
push rax
nop
pop rdi
or rax, rax
je 0x1400048e2
mov rax, qword [0x140011108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140005320
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140011108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
or rax, rax
je 0x1400048c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000485e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140004870
add dword [0x140011104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140011108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
or eax, eax
jne 0x14000485e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004720
nop dword [rax]
sub esi, esi
jmp 0x1400047e8
mov rax, qword [0x140011108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004720
push rbx
nop
pop rdx
lea rcx, str.Address__p_has_no_image_section
call fcn.140004720
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140004e50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011140]
or rbx, rbx
je 0x140004eac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
nop
push rax
pop rsi
call rdi
or eax, eax
jne 0x140004ea3
or rsi, rsi
je 0x140004ea3
mov rax, qword [rbx + 8]
push rsi
nop
pop rcx
call rax
mov rbx, qword [rbx + 0x10]
or rbx, rbx
jne 0x140004e88
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 0x1400051e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ca40]
sub eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005200
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005208
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005200
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
or r8w, r8w
je 0x14000525d
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 0x140005254
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005200
add rax, 0x28
cmp rax, r9
jne 0x140005240
sub eax, eax
ret

Function at 0x140005260
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ca40]
sub ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000527f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140005288
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000527f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140005320
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ca40]
sub edx, edx
cmp word [rax], 0x5a4d
jne 0x14000533f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140005348
push rdx
pop rax
nop
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
push rdx
pop rax
nop
ret