joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406c6c38
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c6dbf
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c6c69
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c6c4f
add dl, dl
jne 0x1406c6c76
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c6cd6
xor eax, eax
add dl, dl
jne 0x1406c6c85
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c6d8d
add dl, dl
jne 0x1406c6c96
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c6ca3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c6cb0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c6cbd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c6cca
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c6c5e
mov eax, 1
add dl, dl
jne 0x1406c6ce6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c6cf3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c6cdb
sub eax, ebx
mov ebx, 1
jne 0x1406c6d2c
mov ecx, 1
add dl, dl
jne 0x1406c6d0e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c6d1b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c6d03
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c6c5e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c6d48
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c6d55
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c6d3d
cmp eax, 0x7d00
jae 0x1406c6d7b
cmp eax, 0x500
jb 0x1406c6d76
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c6c5e
cmp eax, 0x7f
ja 0x1406c6d7e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c6c5e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c6db2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c6c5e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2c5fe54c0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x2c600ccd0], 0
mov r12, rcx
mov rbx, rdx
jne 0x2c5fe55f0
mov rsi, qword [0x2c5fff940]
mov r13, qword [rsi]
test r13, r13
je 0x2c5fe56d7
mov r8d, 0xa
mov edx, 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, r13
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x2c600ccc8], rcx
test eax, eax
je 0x2c5fe55e0
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x2c5fe5548
not eax
cmp r9d, eax
jne 0x2c5fe56f4
mov byte [0x2c600ccd0], 1
lea rdx, [0x2c5ffe1e2]
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x2c5fe5654
mov rsi, qword [0x2c600ccc8]
jmp 0x2c5fe5615
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov edi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test edi, edi
jne 0x2c5fe5610
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.2c5fe18b0
cmp byte [0x2c600ccc0], 0
jne 0x2c5fe5603
mov rsi, qword [sym.imp.python39.dll_PyDict_New]
call rsi
mov qword [0x2c600cd18], rax
call rsi
mov qword [0x2c600cd10], rax
call rsi
mov qword [0x2c600cd08], rax
call rsi
mov qword [0x2c600cd48], rax
call rsi
mov qword [0x2c600cd40], rax
call rsi
mov qword [0x2c600cd38], rax
call rsi
mov qword [0x2c600cd28], rax
call rsi
mov byte [0x2c600ccc0], 1
mov qword [0x2c600cd20], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x2c600cd50], rax
jmp 0x2c5fe5603
mov rdx, qword [0x2c5fff920]
mov r8, rsi
mov ecx, 6
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
mov r13, qword [rsi]
jmp 0x2c5fe54f1
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x2c5fed1e0
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 fcn.2c5ff4d60
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.2c5ff4d60
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x2c5fedbd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2c600cde8]
test eax, eax
je 0x2c5fedc6a
lea rax, [0x2c600cdc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2c600cdf0]
mov qword [rbp - 8], rax
jmp 0x2c5fedc4e
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 0x2c5fedc42
cmp qword [rbp - 0x10], 0
je 0x2c5fedc42
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 0x2c5fedc08
lea rax, [0x2c600cdc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2c5fedc6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2c5fedd70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2c5fedd98
mov eax, 0
jmp 0x2c5fedde6
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 0x2c5feddc1
mov eax, 0
jmp 0x2c5fedde6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2c5fedde1
mov eax, 0
jmp 0x2c5fedde6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2c5feddec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2c5fede6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2c5fede61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2c5fede61
mov rax, qword [rbp - 8]
jmp 0x2c5fede7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2c5fede34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002300
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140002352
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptAcquireContextW___u__n
call fcn.140004710
jmp 0x140002464
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, ?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14000238f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptCreateHash___u__n
call fcn.140004710
jmp 0x140002464
xor r9d, r9d
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1400023c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptHashData___u__n
call fcn.140004710
jmp 0x140002464
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, 0x6610
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x140002400
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDeriveKey___u__n
call fcn.140004710
jmp 0x140002464
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x140002441
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_in_CryptDecrypt___u__n
call fcn.140004710
jmp 0x140002464
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
add rsp, 0x58
ret
Function at 0x1400027c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x1400027eb
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400027f2
mov al, 1
jmp 0x140002936
call fcn.1400030f0
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.1400030f0
mov ecx, dword [rsp + 0x38]
mov edx, ecx
mov ecx, eax
call fcn.140003100
movzx eax, al
test eax, eax
je 0x14000283d
xor al, al
jmp 0x140002936
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400028a3
cmp dword [rsp + 0x30], 1
je 0x1400028af
cmp dword [rsp + 0x30], 3
je 0x140002924
jmp 0x140002934
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x1400028fb
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x1400028fb
xor al, al
jmp 0x140002936
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140002915
mov dword [rsp + 0x34], 1
jmp 0x14000291d
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140002936
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140002936
xor al, al
add rsp, 0x98
ret
Function at 0x140004010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140004032
xor eax, eax
jmp 0x1400041db
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x140004058
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call 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]
jmp 0x1400041db
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1400040f1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140001750
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140003080
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400041cb
mov rcx, qword [rsp + 0x60]
call fcn.140002d10
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140004192
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140004190
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1400041db
jmp 0x140004117
cmp qword [rsp + 0x20], 0
jbe 0x1400041cb
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x1400041e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140004219
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x140004307
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x1400042af
cmp qword [rsp + 0x20], 0
jle 0x1400042af
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140004259
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140003080
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x1400042f7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1400042f7
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140004fd4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
and dword [rbp - 0x1c], 0
xorps xmm0, xmm0
and qword [rbp - 0x10], 0
and dword [rbp - 0x44], 0
and qword [rbp - 0x38], 0
movdqu xmmword [rbp - 0x2c], xmm0
call qword [sym.imp.ntoskrnl.exe_ObGetFilterVersion]
and qword [rbp - 0x18], 0
lea rdx, [0x140001880]
mov word [rbp - 0x30], ax
lea rcx, [rbp - 0x28]
mov eax, 1
mov word [rbp - 0x2e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x48], 3
mov qword [rbp - 0x10], rax
lea rdx, [0x140003018]
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x50], rax
lea rax, [0x140001060]
mov qword [rbp - 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ObRegisterCallbacks]
mov ebx, eax
lfence
test eax, eax
jns 0x140001183
mov edx, eax
lea rcx, [0x140001850]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x140001194
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
and dword [rbp - 0x1c], 0
xorps xmm0, xmm0
and qword [rbp - 0x10], 0
and dword [rbp - 0x44], 0
and qword [rbp - 0x38], 0
movdqu xmmword [rbp - 0x2c], xmm0
call qword [sym.imp.ntoskrnl.exe_ObGetFilterVersion]
and qword [rbp - 0x18], 0
lea rdx, [0x140001840]
mov word [rbp - 0x30], ax
lea rcx, [rbp - 0x28]
mov eax, 1
mov word [rbp - 0x2e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x48], 3
mov qword [rbp - 0x10], rax
lea rdx, [0x140003010]
mov rax, qword [sym.imp.ntoskrnl.exe_PsThreadType]
lea rcx, [rbp - 0x30]
mov qword [rbp - 0x50], rax
lea rax, [0x1400010a0]
mov qword [rbp - 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ObRegisterCallbacks]
mov ebx, eax
lfence
test eax, eax
jns 0x140001233
mov edx, eax
lea rcx, [0x140001850]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret

Function at 0x140001268
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x28]
lea rcx, [0x140001a50]
or dword [rax + 0x68], 0x20
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov byte [0x140003058], 0
lea rcx, [0x140001320]
call qword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
lea rcx, [0x140001400]
call qword [sym.imp.ntoskrnl.exe_PsSetLoadImageNotifyRoutine]
lea rcx, [0x1400013a0]
call qword [sym.imp.ntoskrnl.exe_PsSetCreateThreadNotifyRoutine]
lea rax, [0x140001a70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140001300]
lea rcx, [0x140003020]
call qword [sym.imp.ntoskrnl.exe_KeRegisterBugCheckCallback]
lea r8, [0x140003060]
xor edx, edx
lea rcx, [0x1400014c0]
call qword [sym.imp.ntoskrnl.exe_CmRegisterCallback]
call fcn.1400010e4
call fcn.140001194
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400015a0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
and qword [rbp + 0x77], 0
mov edi, edx
mov rsi, rcx
lea rdx, [0x140001890]
xorps xmm0, xmm0
lea rcx, [rbp + 7]
movups xmmword [rbp + 7], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rbp + 7]
and qword [rsp + 0x48], 0
lea r9, [rbp + 0x17]
and dword [rbp + 0x2b], 0
lea r8, [rbp + 0x27]
and dword [rbp + 0x43], 0
lea rcx, [rbp + 0x77]
and qword [rbp + 0x2f], 0
xorps xmm0, xmm0
mov dword [rsp + 0x40], 0x60
mov edx, 0x100004
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
mov qword [rbp + 0x37], rax
movdqu xmmword [rbp + 0x47], xmm0
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
jns 0x14000166d
lfence
mov edx, eax
lea rcx, [0x1400018c0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400016be
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x17]
and qword [rsp + 0x38], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x77]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
lfence
test eax, eax
jns 0x1400016b4
mov edx, eax
lea rcx, [0x1400018e0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret