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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14003e518
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14003e53e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003e540
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003e599
test ecx, ecx
jle 0x14003e579
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14003e599
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003e599
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14003e5c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14003e5e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003e5f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003e614
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003e616
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003e652
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003e6ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003e68d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14003e6ce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14003e6ee
cmp rbx, rax
ja 0x14003e6a0
test rbx, rbx
je 0x14003e6ee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14003eb10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400bc010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003eb3d
xor eax, eax
jmp 0x14003eca9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003eb77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003eb77
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 0x14003eca9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003ec9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003ebba
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 0x14003ebe5
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 0x14003eca1
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 0x14003ec54
sub eax, 1
je 0x14003ec54
cmp eax, 2
jne 0x14003ec9c
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 0x14003eca1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003ec82
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 0x14003ec9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003eca1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400aeb60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003faf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400bc010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003fbc3
cmp byte [rcx + 0x71], 0
je 0x14003fbc3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003fbbf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003fb84
sub eax, 1
je 0x14003fb88
cmp eax, 2
jne 0x14003fbbf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aeb60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003fbb6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14003fbbf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003fb6c
xor al, al
jmp 0x14003fb6c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aeb60
add rsp, 0x60
pop rbx
ret
Function at 0x1400af6dc
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000c991
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000c9be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000c9c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000ca19
test ecx, ecx
jle 0x14000c9f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000ca19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000ca19
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
call 0x14001fd6e
lea rax, [rbp + 0x64]
mov qword [rbp + 0x48], rax
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x88]
call 0x1400202c3
nop
cmp qword [rbp + 0x230], 8
jae 0x14002aa1b
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x230]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], 7
mov rax, qword [rbp + 8]
add rax, 8
or byte [rbx + rcx*4 - 0x7b], cl
xor byte [rdx], al
add byte [rax], al
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], 7
mov rdx, qword [rbp + 0x230]
mov rcx, qword [rbp + 0x220]
call 0x140020273
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
inc rax
mov rdx, rax
mov rcx, qword [rbp + 0x28]
call 0x140020287
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 8]
add rax, 8
lea rdx, [rbp + 0xd8]
mov rcx, rax
call 0x1400201ab
mov rax, qword [rbp + 0xb8]
inc rax
mov qword [rbp + 0x1e8], rax
mov rcx, qword [rbp + 0xd8]
call 0x140020e44
mov rcx, qword [rbp + 0x1e8]
mov rdx, rcx
mov rcx, rax
call 0x140020534
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x230]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0xb8]
mov qword [rax + 0x20], rcx
mov rcx, qword [rbp + 0xd8]
call 0x140020e44
mov r8, qword [rbp + 0x230]
mov rdx, qword [rbp + 0x228]
mov rcx, rax
call 0x140020011
xor eax, eax
mov word [rbp + 0x1d4], ax
mov rcx, qword [rbp + 0xd8]
call 0x140020e44
mov rcx, qword [rbp + 0x230]
lea rax, [rax + rcx*2]
lea rdx, [rbp + 0x1d4]
mov rcx, rax
call 0x140020110
lea rcx, [rbp + 0x88]
call 0x1400204e4
nop
lea rcx, [rbp + 0x88]
call 0x140020d54
Function at 0x14000ca40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000ca62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000ca71
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ca94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ca96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000cad2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000cb6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000cb0d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000cb4e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000cb6e
cmp rbx, rax
ja 0x14000cb20
test rbx, rbx
je 0x14000cb6e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
xor eax, ebp
mov qword [rbp + 0x1f0], rax
lea rcx, [0x1400a4a6a]
call 0x1400210bf
mov rax, qword [rbp + 0x220]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x220]
call 0x14002016a
cmp qword [rbp + 0x230], rax
jbe 0x14002a958
call 0x140020566
mov rcx, qword [rbp + 0x220]
call 0x1400207a5
mov qword [rbp + 0x28], rax
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x64]
call 0x14001fd6e
Function at 0x14000cfd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000cffd
xor eax, eax
jmp 0x14000d169
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d037
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000d037
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 0x14000d169
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000d15c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000d07a
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 0x14000d0a5
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 0x14000d161
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 0x14000d114
sub eax, 1
je 0x14000d114
cmp eax, 2
jne 0x14000d15c
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 0x14000d161
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000d142
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 0x14000d15c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000d161
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000ff90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000da90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000db63
cmp byte [rcx + 0x71], 0
je 0x14000db63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000db5f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000db24
sub eax, 1
je 0x14000db28
cmp eax, 2
jne 0x14000db5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ff90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000db56
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000db5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000db0c
xor al, al
jmp 0x14000db0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ff90
add rsp, 0x60
pop rbx
ret

Function at 0x140010ba8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
lea rcx, [0x18002fe30]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
xor bl, bl
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x50]
cmp rax, 0xffffffffffffffff
lea rdx, str.AP32
mov r8d, 0x5884a
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180001990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
lea rcx, str.C:UsersPublicDownloadsQQgames.exe
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
xor bl, bl
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x50]
cmp rax, 0xffffffffffffffff
lea rdx, [0x180091770]
mov r8d, 0x1f68d0
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001a30
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r13
push r15
sub rsp, 0x20
mov r13, rdx
xor edx, edx
mov rsi, rcx
lea r8d, [rdx + 2]
mov rcx, r13
call fcn.180012c5c
mov rcx, r13
call fcn.180012abc
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov r15d, eax
call fcn.180012c5c
mov ecx, r15d
mov ebx, r15d
call fcn.1800115e8
mov rbp, rax
test rax, rax
jne 0x180001a96
lea rcx, str._nERR:_not_enough_memory_n
call fcn.180012028
lea eax, [rbp + 1]
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret
mov r9, r13
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1800125c8
cmp rax, rbx
je 0x180001acb
lea rcx, str._nERR:_error_reading_from_input_file_n
call fcn.180012028
mov eax, 1
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret
mov rcx, rbp
mov qword [rsp + 0x50], rdi
call fcn.18000d49c
mov edi, eax
cmp eax, 0xffffffff
jne 0x180001b01
lea rcx, str._nERR:_compressed_data_error_n
call fcn.180012028
mov rdi, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret
mov rcx, rdi
mov qword [rsp + 0x58], r12
call fcn.1800115e8
mov r12, rax
test rax, rax
jne 0x180001b2c
lea rcx, str._nERR:_not_enough_memory_n
call fcn.180012028
lea eax, [r12 + 1]
jmp 0x180001c0c
mov qword [rsp + 0x68], r14
call fcn.1800125e8
mov r9d, edi
mov r8, r12
mov edx, r15d
mov rcx, rbp
mov ebx, eax
call fcn.18000d3fc
mov dword [rsp + 0x60], eax
call fcn.1800125e8
mov r14d, eax
sub r14d, ebx
cmp dword [rsp + 0x60], edi
je 0x180001b74
lea rcx, str._nERR:_an_error_occured_while_decompressing_n
call fcn.180012028
mov eax, 1
jmp 0x180001c07
cmp qword [rsi + 0x18], 8
jb 0x180001b7e
mov rsi, qword [rsi]
lea rdx, [0x18002f834]
mov rcx, rsi
call fcn.180011cf8
mov rbx, rax
test rax, rax
jne 0x180001ba6
lea rcx, str._nERR:_unable_to_create_output_file_n
call fcn.180012028
lea eax, [rbx + 1]
jmp 0x180001c07
mov edi, dword [rsp + 0x60]
mov r9, rax
mov edx, 1
mov r8d, edi
mov rcx, r12
call fcn.180012874
lea rcx, str.Decompressed__u_____u_bytes_in__.2f_seconds_n
mov r8d, edi
movd xmm3, r14d
mov edx, r15d
cvtdq2pd xmm3, xmm3
divsd xmm3, qword [0x180030080]
movq r9, xmm3
call fcn.180012028
mov rcx, r13
call fcn.180012db0
mov rcx, rbx
call fcn.180012db0
mov rcx, rbp
call fcn.180011394
mov rcx, r12
call fcn.180011394
xor eax, eax
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x180001c30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
mov rbx, r8
mov rdi, rdx
jb 0x180001c4f
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov rdx, rcx
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
je 0x180001cff
lea rcx, str.Failed_to_open_registry_key._Error_code:
call fcn.18000b510
mov edx, esi
mov rcx, rax
call fcn.1800041a0
mov edx, 0xa
mov rcx, rax
mov rdi, rax
call fcn.180004380
mov rcx, qword [rdi]
xor ebx, ebx
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180001cc8
mov rcx, qword [rcx + rdi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180001ced
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180001ce5
or edx, 4
xor r8d, r8d
call fcn.180001630
xor al, al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
lea eax, [rax + rax + 2]
jb 0x180001d10
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x180001d1a
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x180001d5e
lea rcx, str.Failed_to_set_registry_value._Error_code:
call fcn.18000b510
mov edx, ebx
jmp 0x180001c8a
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov al, 1
add rsp, 0x30
pop rdi
ret