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

Disassembly:
jmp 0x1400ae830
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]
mov rdi, rsp
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
lea rcx, [0x14011b18e]
call fcn.14003f7fd
xor eax, eax
cmp eax, 1
je 0x1400ae9b9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400ae8a9
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 0x1400ae9d4
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 0x1400ae94e
cmp qword [rbp + 0x28], 0
jle 0x1400ae94e
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400ae8ee
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.14003fdfc
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 0x1400ae9a4
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400ae9a4
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
jmp 0x1400ae9d4
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]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14003f8ca
Capabilities:
Terminate process

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

Function at 0x14003f974
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400affc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x72
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
lea rcx, [0x14011b1b7]
call fcn.14003f7fd
mov qword [rbp + 8], 0
mov r8, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400b002e
jmp 0x1400b011b
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x44], eax
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400b005e
jmp 0x1400b011b
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x1400b0083
jmp 0x1400b011b
mov eax, dword [rbp + 0x44]
mov edx, eax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x1400b00a8
jmp 0x1400b011b
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x1400b00ca
jmp 0x1400b010e
mov eax, dword [rbp + 0x44]
mov r8d, eax
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xc8]
call fcn.1400414d1
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rbp + 8]
mov edx, 1
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x1400b010e
jmp 0x1400b011b
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400ea940]
call fcn.1400419f4
mov rax, rdi
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x14003fae1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140061970
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov qword [rbp + 0x108], 0xfffffffffffffffe
lea rcx, [0x14011b0d8]
call fcn.14003f7fd
mov rcx, qword [rbp + 0x140]
call fcn.140040612
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x1400619e5
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x1400619e5
mov dword [rbp + 0x114], 1
jmp 0x1400619ef
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
mov byte [rbp + 0xe4], al
mov rcx, qword [rbp + 0x140]
call fcn.1400413a0
movzx eax, byte [rbp + 0xe4]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14003fd25
Capabilities:
Delete file

Disassembly:
jmp 0x1400935b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov qword [rbp + 0x148], 0xfffffffffffffffe
mov rax, qword [0x140106018]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14011b17b]
call fcn.14003f7fd
mov rax, qword [rbp + 0x190]
add rax, 0x18
mov rcx, rax
call fcn.1400406c6
nop
mov rax, qword [rbp + 0x190]
add rax, 0x40
mov rcx, rax
call fcn.1400406c6
nop
mov rax, qword [rbp + 0x190]
add rax, 0x68
mov rcx, rax
call fcn.1400406c6
nop
mov rax, qword [rbp + 0x190]
add rax, 0x90
mov rcx, rax
call fcn.1400406c6
nop
mov rax, qword [rbp + 0x190]
add rax, 0xc0
mov rcx, rax
call fcn.1400406c6
nop
mov rax, qword [rbp + 0x190]
mov dword [rax], 0
mov rax, qword [rbp + 0x190]
mov dword [rax + 4], 0
mov rax, qword [rbp + 0x190]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x190]
mov dword [rax + 0xc], 0
mov rax, qword [rbp + 0x190]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0x190]
mov dword [rax + 0x14], 0
mov rax, qword [rbp + 0x190]
add rax, 0x18
lea rdx, [0x1400d6d70]
mov rcx, rax
call fcn.140040919
mov rax, qword [rbp + 0x190]
add rax, 0x90
lea rdx, [0x1400d6d70]
mov rcx, rax
call fcn.140040919
mov rax, qword [rbp + 0x190]
add rax, 0x40
lea rdx, str.Initializing...
mov rcx, rax
call fcn.140040919
mov rax, qword [rbp + 0x190]
add rax, 0x68
lea rdx, [0x1400d6d70]
mov rcx, rax
call fcn.140040919
mov rax, qword [rbp + 0x190]
mov dword [rax + 0xec], 0
mov rax, qword [rbp + 0x190]
mov byte [rax + 0xb8], 0
mov rax, qword [rbp + 0x190]
mov byte [rax + 0xb9], 0
mov rax, qword [rbp + 0x190]
add rax, 0xc0
lea rdx, [0x1400d6d70]
mov rcx, rax
call fcn.140040919
mov rax, qword [rbp + 0x190]
mov byte [rax + 0xe8], 0
lea rcx, [rbp + 0x108]
call fcn.140040351
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x160], rax
lea r8, str._old_launcher.bak
mov rdx, qword [rbp + 0x160]
lea rcx, [rbp + 8]
call fcn.140041927
nop
lea rcx, [rbp + 0x108]
call fcn.1400413a0
lea rcx, [rbp + 8]
call fcn.140040612
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__wremove]
lea rcx, [rbp + 8]
call fcn.1400413a0
nop
mov rax, qword [rbp + 0x190]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400dcb40]
call fcn.1400419f4
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14003fb63
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14003fe38
Capabilities:
Create directory

Disassembly:
jmp 0x140060f80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov qword [rbp + 0x1c8], 0xfffffffffffffffe
mov rax, qword [0x140106018]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1a4], 0
lea rcx, [0x14011b0d8]
call fcn.14003f7fd
mov r8, 0xffffffffffffffff
lea rdx, [0x1400d6d68]
mov rcx, qword [rbp + 0x210]
call fcn.140041184
mov dword [rbp + 4], eax
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x24]
inc eax
mov eax, eax
mov r8d, eax
lea rdx, [0x1400d6d68]
mov rcx, qword [rbp + 0x210]
call fcn.14003f5aa
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov r9d, eax
xor r8d, r8d
lea rdx, [rbp + 0x128]
mov rcx, qword [rbp + 0x210]
call fcn.1400404c8
mov qword [rbp + 0x1d8], rax
mov eax, dword [rbp + 0x1a4]
or eax, 1
mov dword [rbp + 0x1a4], eax
mov rcx, qword [rbp + 0x1d8]
call fcn.140040612
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140061086
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140061086
mov dword [rbp + 0x1e0], 1
jmp 0x140061090
mov dword [rbp + 0x1e0], 0
movzx eax, byte [rbp + 0x1e0]
mov byte [rbp + 0x104], al
mov eax, dword [rbp + 0x1a4]
and eax, 1
test eax, eax
je 0x1400610bd
and dword [rbp + 0x1a4], 0xfffffffe
lea rcx, [rbp + 0x128]
call fcn.1400413a0
movzx eax, byte [rbp + 0x104]
test eax, eax
je 0x1400610f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400610d5
jmp 0x1400610f1
mov byte [rbp + 0x164], 0
mov rcx, qword [rbp + 0x210]
call fcn.1400413a0
movzx eax, byte [rbp + 0x164]
jmp 0x140061117
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x24], eax
jb 0x140061000
mov byte [rbp + 0x184], 1
mov rcx, qword [rbp + 0x210]
call fcn.1400413a0
movzx eax, byte [rbp + 0x184]
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.14003fb63
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14004004f
Capabilities:
Create process on windows

Disassembly:
jmp 0x140061720
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov qword [rbp + 0x178], 0xfffffffffffffffe
lea rcx, [0x14011b0d8]
call fcn.14003f7fd
mov dword [rbp + 0x10], 0x70
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov qword [rbp + 0x20], 0
mov rcx, qword [rbp + 0x1b0]
call fcn.140040612
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x1b8]
call fcn.140040612
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x18], 0
mov dword [rbp + 0x40], 0xa
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400617cb
mov byte [rbp + 0x184], 1
jmp 0x1400617d2
mov byte [rbp + 0x184], 0
movzx eax, byte [rbp + 0x184]
mov byte [rbp + 0x154], al
mov rcx, qword [rbp + 0x1b0]
call fcn.1400413a0
nop
mov rcx, qword [rbp + 0x1b8]
call fcn.1400413a0
movzx eax, byte [rbp + 0x154]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400d4530]
call fcn.1400419f4
mov eax, edi
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret

Function at 0x1400401b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140053d30
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
lea rcx, [0x14011b091]
call fcn.14003f7fd
movzx eax, word [rbp + 0x188]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140053de3
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [rbp + 0x68], rax
mov r8d, dword [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x180]
call fcn.1400419ae
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140053de3
mov al, 1
jmp 0x140053de5
xor al, al
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140040a09
Capabilities:
Write file on windows

Disassembly:
jmp 0x14009abd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140106018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x14011b18e]
call fcn.14003f7fd
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14009ac34
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14009ac3b
mov al, 1
jmp 0x14009ad8a
call fcn.14003fd52
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14003fd52
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140040c0c
movzx eax, al
test eax, eax
je 0x14009ac96
xor al, al
jmp 0x14009ad8a
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
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 + 0x1d0]
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 + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14009acfb
cmp dword [rbp + 0x194], 1
je 0x14009ad06
cmp dword [rbp + 0x194], 3
je 0x14009ad84
jmp 0x14009ad88
mov rax, qword [rbp + 0x1d0]
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 0x14009ad56
mov rax, qword [rbp + 0x1d0]
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 0x14009ad56
xor al, al
jmp 0x14009ad8a
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14009ad71
mov dword [rbp + 0x194], 1
jmp 0x14009ad7b
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14009ad8a
mov al, 1
jmp 0x14009ad8a
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400e0f30]
call fcn.1400419f4
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14003fb63
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400410a3
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400ae600
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]
mov rdi, rsp
mov ecx, 0x4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x148]
lea rcx, [0x14011b18e]
call fcn.14003f7fd
xor eax, eax
cmp eax, 1
je 0x1400ae795
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400ae679
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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x1400ae7b0
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__::_Gnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400ae71e
cmp qword [rbp + 0x28], 0
jle 0x1400ae71e
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400ae6be
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__::gptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, rax
mov rcx, qword [rbp + 0x128]
call fcn.14003fdfc
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__::gbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x1400ae780
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400ae780
mov rcx, qword [rbp + 0x120]
call fcn.140041b70
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_fread]
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
jmp 0x1400ae7b0
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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140041102
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400b42a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x10818
call fcn.14003f046
sub rsp, rax
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x4206
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10838]
mov qword [rbp + 0x107d8], 0xfffffffffffffffe
mov rax, qword [0x140106018]
xor rax, rbp
mov qword [rbp + 0x107e8], rax
mov dword [rbp + 0x107b4], 0
lea rcx, [0x14011b23a]
call fcn.14003f7fd
mov qword [rbp + 8], 0
mov rcx, qword [rbp + 0x10818]
call fcn.140040612
lea r8, [0x1400e5874]
mov rdx, rax
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll__wfopen_s]
cmp qword [rbp + 8], 0
jne 0x1400b4370
lea rdx, [0x1400e4950]
mov rcx, qword [rbp + 0x10810]
call fcn.140041c1a
mov eax, dword [rbp + 0x107b4]
or eax, 1
mov dword [rbp + 0x107b4], eax
mov rcx, qword [rbp + 0x10818]
call fcn.1400413a0
mov rax, qword [rbp + 0x10810]
jmp 0x1400b4496
lea rcx, [rbp + 0x70]
call fcn.14003f438
mov qword [rbp + 0x10118], 0
mov r9, qword [rbp + 8]
mov r8d, 0x10000
mov edx, 1
lea rcx, [rbp + 0x100]
call qword [sym.imp.ucrtbased.dll_fread]
mov qword [rbp + 0x10118], rax
cmp qword [rbp + 0x10118], 0
jbe 0x1400b43ca
mov r8, qword [rbp + 0x10118]
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x70]
call fcn.1400410c6
jmp 0x1400b4384
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x28]
call fcn.14003fc94
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rdx, [0x1400e4950]
lea rcx, [rbp + 0x10138]
call fcn.140041c1a
nop
mov dword [rbp + 0x10174], 0
jmp 0x1400b440f
mov eax, dword [rbp + 0x10174]
inc eax
mov dword [rbp + 0x10174], eax
cmp dword [rbp + 0x10174], 0x20
jge 0x1400b4454
movsxd rax, dword [rbp + 0x10174]
movzx eax, byte [rbp + rax + 0x28]
mov r9d, eax
lea r8, str._02x
mov edx, 7
lea rcx, [rbp + 0x10198]
call fcn.14003f89d
lea rdx, [rbp + 0x10198]
lea rcx, [rbp + 0x10138]
call fcn.14003f6c7
jmp 0x1400b4401
lea rdx, [rbp + 0x10138]
mov rcx, qword [rbp + 0x10810]
call fcn.140041120
mov eax, dword [rbp + 0x107b4]
or eax, 1
mov dword [rbp + 0x107b4], eax
lea rcx, [rbp + 0x10138]
call fcn.1400404a0
nop
mov rcx, qword [rbp + 0x10818]
call fcn.1400413a0
mov rax, qword [rbp + 0x10810]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400ebce0]
call fcn.1400419f4
mov rax, rdi
mov rcx, qword [rbp + 0x107e8]
xor rcx, rbp
call fcn.14003fb63
lea rsp, [rbp + 0x107f8]
pop rdi
pop rbp
ret
Function at 0x1400414d6
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400b8c90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400b8cb0
xor al, al
jmp 0x1400b8d31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400b8cc3
xor al, al
jmp 0x1400b8d31
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 0x1400b8ced
xor al, al
jmp 0x1400b8d31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400b8d01
xor al, al
jmp 0x1400b8d31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400b8d13
xor al, al
jmp 0x1400b8d31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400b8d2f
xor al, al
jmp 0x1400b8d31
mov al, 1
add rsp, 0x38
ret
Function at 0x14004162f
Capabilities:
Write file on windows

Disassembly:
jmp 0x140051c10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x10728
call fcn.14003f046
sub rsp, rax
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x41ca
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x10748]
mov qword [rbp + 0x106e8], 0xfffffffffffffffe
mov rax, qword [0x140106018]
xor rax, rbp
mov qword [rbp + 0x106f8], rax
lea rcx, [0x14011b03c]
call fcn.14003f7fd
mov qword [rbp + 8], 0
mov rcx, qword [rbp + 0x10728]
call fcn.140040612
lea r8, [0x1400d2e1c]
mov rdx, rax
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll__wfopen_s]
cmp qword [rbp + 8], 0
jne 0x140051cc8
mov byte [rbp + 0x10684], 0
mov rcx, qword [rbp + 0x10720]
call fcn.1400413a0
nop
mov rcx, qword [rbp + 0x10728]
call fcn.1400413a0
movzx eax, byte [rbp + 0x10684]
jmp 0x140051dc3
mov rcx, qword [rbp + 0x10720]
call fcn.140040612
lea rdx, [0x1400d2e24]
mov rcx, rax
call qword [sym.imp.zlibd1.dll_gzopen_w]
mov qword [rbp + 0x10048], rax
cmp qword [rbp + 0x10048], 0
jne 0x140051d2b
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov byte [rbp + 0x106a4], 0
mov rcx, qword [rbp + 0x10720]
call fcn.1400413a0
nop
mov rcx, qword [rbp + 0x10728]
call fcn.1400413a0
movzx eax, byte [rbp + 0x106a4]
jmp 0x140051dc3
mov rcx, qword [rbp + 0x10048]
call qword [sym.imp.zlibd1.dll_gzrewind]
mov rcx, qword [rbp + 0x10048]
call qword [sym.imp.zlibd1.dll_gzeof]
test eax, eax
jne 0x140051d85
mov r8d, 0x10000
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x10048]
call qword [sym.imp.zlibd1.dll_gzread]
mov dword [rbp + 0x10064], eax
movsxd rax, dword [rbp + 0x10064]
mov r9, qword [rbp + 8]
mov r8, rax
mov edx, 1
lea rcx, [rbp + 0x30]
call qword [sym.imp.ucrtbased.dll_fwrite]
jmp 0x140051d38
mov rcx, qword [rbp + 0x10048]
call qword [sym.imp.zlibd1.dll_gzclose]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov byte [rbp + 0x106c4], 1
mov rcx, qword [rbp + 0x10720]
call fcn.1400413a0
nop
mov rcx, qword [rbp + 0x10728]
call fcn.1400413a0
movzx eax, byte [rbp + 0x106c4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400cb760]
call fcn.1400419f4
mov rax, rdi
mov rcx, qword [rbp + 0x106f8]
xor rcx, rbp
call fcn.14003fb63
lea rsp, [rbp + 0x10708]
pop rdi
pop rbp
ret