joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058e60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140058ec1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140058e80
mov ecx, dword [r10]
jmp 0x140058faa
cmp ecx, 0x4e0
jb 0x140058faa
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140058ee0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140058f30
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140066150
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movabs rdi, 0x7fffffffffffffff
movabs rsi, 0x7fffffffff67697e
nop dword [rax + rax]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1400661f6
call fcn.140065100
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400661b2
imul rax, rax, 0x64
jmp 0x1400661cd
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rsi
jg 0x1400661df
add rax, 0x989680
mov qword [rsp + 0x30], rax
jmp 0x1400661e4
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.140058cf0
nop
jmp 0x140066180
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140066d00
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140066e14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
xor ebp, ebp
mov qword [rsp + 0x70], rsi
movabs rsi, 0x7ffffffffff0bdbe
mov qword [rsp + 0x50], rdi
movabs rdi, 0x7fffffffffffffff
mov eax, dword [0x1400a4ebc]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov edx, 0x45
mov rax, qword [0x1400a4f90]
add rax, 0x7c
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 4
call fcn.14004bf30
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140066dae
imul rax, rax, 0x64
jmp 0x140066dcc
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
cmp rax, rsi
jg 0x140066dde
add rax, 0xf4240
mov qword [rsp + 0x40], rax
jmp 0x140066de3
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x40]
call fcn.140058cf0
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140066d50
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006ca20
add rsp, 0x58
ret
Function at 0x140067100
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1400672a2
xor r14d, r14d
movabs rsi, 0x7ffffffffffffffd
movabs rdi, 0x7fffffffffffffff
movabs rbp, 0x7fffffffff67697e
nop dword [rax]
cmp byte [0x1400a4f4d], 0
je 0x140067232
mov ecx, 1
call fcn.14006d0f4
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14006bc00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400672df
cmp dword [rsp + 0x48], 0
je 0x1400672d3
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400672ca
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
cmp byte [0x1400a4f4d], al
je 0x140067232
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140067205
imul rax, rax, 0x64
jmp 0x140067223
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rsi
jg 0x140067280
inc rax
mov qword [rsp + 0x30], rax
jmp 0x140067285
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140067250
imul rax, rax, 0x64
jmp 0x14006726e
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rbp
jg 0x140067280
add rax, 0x989680
mov qword [rsp + 0x30], rax
jmp 0x140067285
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.140058cf0
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140067160
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006ca20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400672f0
Capabilities:
Create thread
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140067496
xor r14d, r14d
movabs rsi, 0x7ffffffffffffc16
movabs rdi, 0x7fffffffffffffff
movabs rbp, 0x7fffffffff67697e
nop
cmp byte [0x1400a4f3a], 0
je 0x140067425
mov ecx, 1
call fcn.14006d0f4
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14006bf60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400674d3
cmp dword [rsp + 0x48], 0
je 0x1400674c7
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400674be
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
cmp byte [0x1400a4f3a], al
je 0x140067425
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x1400673f5
imul rax, rax, 0x64
jmp 0x140067413
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rsi
jg 0x140067473
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x140067478
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x140067443
imul rax, rax, 0x64
jmp 0x140067461
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rbp
jg 0x140067473
add rax, 0x989680
mov qword [rsp + 0x30], rax
jmp 0x140067478
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x30]
call fcn.140058cf0
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140067350
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006ca20
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140067fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140068017
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140068038
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14006803a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140068093
test ecx, ecx
jle 0x140068073
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140068093
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140068093
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400680c0
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 0x1400680e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400680f8
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 0x140068114
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140068116
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140068150
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400681f7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14006818b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400681d1
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140068210
cmp rbx, rax
ja 0x1400681a0
mov r8, rdi
test rdi, rdi
je 0x1400681f7
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x1400681fa
Function at 0x140068610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14006863d
xor eax, eax
jmp 0x140068792
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140068668
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140068668
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140068792
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140068785
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400686ab
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x1400686d6
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 0x14006878a
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 0x140068745
sub eax, 1
je 0x140068745
cmp eax, 2
jne 0x140068785
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 0x14006878a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140068773
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 0x140068785
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14006878a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006ca20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140068ea0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140068f73
cmp byte [rcx + 0x71], 0
je 0x140068f73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140068f6f
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 0x140068f34
sub eax, 1
je 0x140068f38
cmp eax, 2
jne 0x140068f6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006ca20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140068f66
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 0x140068f6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140068f1c
xor al, al
jmp 0x140068f1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006ca20
add rsp, 0x60
pop rbx
ret

Function at 0x14006c920
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 0x11
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov ecx, 0x10
call fcn.14006d0f4
mov qword [rax], rbx
lea rcx, [0x1400529f0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140059020]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14006c9fc
cmp dword [rsp + 0x38], ebx
jne 0x14006c9a7
lea ecx, [rbx + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x38], eax
jne 0x14006c9bf
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14006c9e7
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006ca20
add rsp, 0x60
pop rbx
ret
mov dword [rsp + 0x38], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140003b70
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
lea rax, [rcx + rax - 0x10]
mov r8d, 0x10
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005ff0
nop
mov eax, dword [rsp + 0xb8]
sub eax, 0x10
mov eax, eax
mov qword [rsp + 0x28], rax
mov edx, 0x18
lea rcx, [rsp + 0x48]
call fcn.140003d00
lea rcx, [rsp + 0x20]
call fcn.140006180
mov r8, rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1400042c0
nop
lea rcx, [rsp + 0x48]
call fcn.140004280
mov rdi, rax
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x48]
call fcn.140004280
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140003ad0
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
call fcn.140004280
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.14003ec80
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
call fcn.140004280
mov rdi, qword [rsp + 0x30]
mov rsi, rax
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.GDI32.dll_EnumFontsW]
nop
lea rcx, [rsp + 0x48]
call fcn.1400042a0
nop
lea rcx, [rsp + 0x60]
call fcn.140005ed0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14003c100
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140003da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x178
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rdx, [0x1400b2c00]
lea rcx, [rsp + 0x98]
call fcn.140005d20
nop
lea rdx, [0x1400b2bf4]
lea rcx, [rsp + 0xc0]
call fcn.140005d20
nop
lea rdx, [0x1400b2c38]
lea rcx, [rsp + 0xe0]
call fcn.140005d20
nop
lea rdx, [0x1400b2c44]
lea rcx, [rsp + 0x100]
call fcn.140005d20
nop
lea rdx, [0x1400b2c50]
lea rcx, [rsp + 0x120]
call fcn.140005d20
nop
lea rdx, [0x1400b2c5c]
lea rcx, [rsp + 0x140]
call fcn.140005d20
nop
lea rdx, [0x1400b2c68]
lea rcx, [rsp + 0x78]
call fcn.140005d20
nop
mov dword [rsp + 0x24], 0
jmp 0x140003e5d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
cmp rax, 5
jae 0x140003f36
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
lea rax, [rsp + rax + 0xc0]
mov r8, rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x38]
call fcn.140009120
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140009210
nop
lea rcx, [rsp + 0x38]
call fcn.140005c90
lea rcx, [rsp + 0x58]
call fcn.140005c70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140003f27
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x58]
call fcn.140005c90
nop
lea rcx, [rsp + 0x78]
call fcn.140005c90
nop
lea r9, [fcn.140005c90]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.14003c164
nop
lea rcx, [rsp + 0x98]
call fcn.140005c90
movzx eax, byte [rsp + 0x20]
jmp 0x140003f78
lea rcx, [rsp + 0x58]
call fcn.140005c90
jmp 0x140003e53
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x78]
call fcn.140005c90
nop
lea r9, [fcn.140005c90]
mov r8d, 5
mov edx, 0x20
lea rcx, [rsp + 0xc0]
call fcn.14003c164
nop
lea rcx, [rsp + 0x98]
call fcn.140005c90
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003c100
add rsp, 0x178
ret
Function at 0x140004110
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x14173a0a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.140003f90
movzx eax, al
test eax, eax
je 0x140004262
call fcn.140003570
mov qword [rsp + 0x28], rax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a1240]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8d, 0x104
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x160]
call fcn.1400659f4
lea r8, [rsp + 0x160]
lea rdx, [0x1400b2d48]
lea rcx, [rsp + 0x50]
call fcn.140009270
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call fcn.140003210
movzx eax, al
test eax, eax
je 0x140004262
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140003430
movzx eax, al
test eax, eax
je 0x140004262
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.140003b70
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.14003c120
cmp qword [rsp + 0x20], 0
jne 0x14000424f
mov qword [rsp + 0x30], 0
jmp 0x140004262
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003c100
add rsp, 0x288
ret