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

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
mov rcx, qword [rbp + 0xa8]
call fcn.000207e0
nop
nop
lea rcx, [rbp + 0x50]
lea rdx, [0x002a1ce4]
lea r8, [0x002a1d14]
mov r9d, 0xcfcc
call fcn.002a1020
mov rcx, qword [rbp + 0x50]
call fcn.00021b20
mov rcx, rax
mov edx, 0x40000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov dword [rbp + 0x8c], eax
mov eax, dword [rbp + 0x8c]
cmp rax, 0xffffffffffffffff
jne 0x2a1b9c
lea rcx, [rbp + 0x48]
lea rdx, [0x002a1d34]
lea r8, [0x002a1d14]
mov r9d, 0x1d9e
call fcn.002a1020
mov rcx, qword [rbp + 0x48]
call fcn.00021b20
lea rcx, [0x00378c88]
mov rdx, rax
call fcn.00021bb0
jmp 0x2a1c5d
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xa8]
call fcn.00020d00
mov dword [rbp + 0x88], 0
lea rcx, [rbp + 0x78]
call fcn.00020f70
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x74], 0
cmp qword [rbp + 0x78], 0
je 0x2a1bdb
mov rax, qword [rbp + 0x78]
mov eax, dword [rax - 4]
mov dword [rbp + 0x74], eax
mov ecx, dword [rbp + 0x8c]
mov rdx, qword [rbp + 0x68]
mov r8d, dword [rbp + 0x74]
add r8d, r8d
lea r9, [rbp + 0x88]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
mov dword [rbp + 0x84], eax
mov ecx, dword [rbp + 0x8c]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x2a1c5c
nop
lea rcx, [rbp + 0x40]
mov edx, 3
call fcn.00020730
lea rcx, [rbp + 0x78]
call fcn.00020650
lea rcx, [rbp + 0xa8]
call fcn.00020650
mov rax, qword [rbp + 0xa0]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x2a2130
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x80], r8
mov rcx, qword [rbp + 0x78]
call fcn.000207e0
mov rcx, qword [rbp + 0x80]
call fcn.000207e0
nop
cmp byte [0x002fe364], 1
jne 0x2a225c
mov dword [rbp + 0x38], 0
cmp qword [rbp + 0x78], 0
je 0x2a2193
mov rax, qword [rbp + 0x78]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov dword [rbp + 0x34], 0
cmp qword [rbp + 0x80], 0
je 0x2a21b1
mov rax, qword [rbp + 0x80]
mov eax, dword [rax - 4]
mov dword [rbp + 0x34], eax
xor ecx, ecx
mov eax, dword [rbp + 0x38]
cdq
idiv dword [rbp + 0x34]
mov rbx, rax
mov dword [rbp + 0x44], ecx
cmp dword [rbp + 0x44], ebx
jg 0x2a21e5
sub ebx, ecx
add ebx, 1
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x80]
call fcn.00021eb0
add dword [rbp + 0x44], 1
sub ebx, 1
test ebx, ebx
jne 0x2a21ca
nop
mov dword [rbp + 0x30], 0
cmp qword [rbp + 0x78], 0
je 0x2a21fe
mov rax, qword [rbp + 0x78]
mov eax, dword [rax - 4]
mov dword [rbp + 0x30], eax
mov eax, 1
mov ebx, dword [rbp + 0x30]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], ebx
jg 0x2a2259
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0x78]
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x48]
movsxd r8, dword [rbp + 0x44]
movzx rax, word [rax + rcx*2 - 2]
xor ax, word [rdx + r8*2 - 2]
mov word [rbp + 0x42], ax
lea rcx, [rbp + 0x28]
movzx rdx, word [rbp + 0x42]
call fcn.00021b60
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x28]
call fcn.00021eb0
add dword [rbp + 0x44], 1
sub ebx, 1
test ebx, ebx
jne 0x2a2213
nop
jmp 0x2a2269
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x78]
call fcn.00020c80
nop
lea rcx, [rbp + 0x28]
call fcn.00020650
lea rcx, [rbp + 0x48]
call fcn.00020650
lea rcx, [rbp + 0x78]
mov edx, 2
call fcn.00020730
mov rax, qword [rbp + 0x70]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret
Function at 0x2a2960
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x128
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x148], rdx
mov rcx, qword [rbp + 0x148]
call fcn.000207e0
nop
mov dword [rbp + 0x108], 0x18
mov dword [rbp + 0x118], 0xffffffff
mov qword [rbp + 0x110], 0
lea rcx, [rbp + 0x100]
lea rdx, [rbp + 0xf8]
lea r8, [rbp + 0x108]
xor r9, r9
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
je 0x2a2b77
mov ecx, 0x961
call fcn.00019180
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x90]
mov edx, 0x68
xor r8, r8
call fcn.0001b7e0
mov dword [rbp + 0x90], 0x68
lea rax, [rbp + 0xcc]
or dword [rax], 0x100
mov ecx, 0xfffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0xf0], rax
lea rax, [rbp + 0xcc]
add dword [rax], 1
mov word [rbp + 0xd0], 0
lea rdi, [rbp + 0x78]
xor eax, eax
stosq qword [rdi], rax
stosq qword [rdi], rax
stosq qword [rdi], rax
lea rcx, [rbp + 0x148]
call fcn.00020f90
mov rcx, qword [rbp + 0x148]
call fcn.00021b20
xor ecx, ecx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x28], 0x20

Function at 0x2a4d10
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov byte [rbp + 0x58], dl
cmp qword [rbp + 0x50], 0
je 0x2a4d91
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
call qword [rax]
cmp rax, 1
jl 0x2a4d91
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 8]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], 0
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
call qword [rax]
xor ecx, ecx
lea rax, [rax - 1]
mov qword [rbp + 0x38], rcx
cmp qword [rbp + 0x38], rax
jg 0x2a4d90
neg rcx
lea rax, [rax + rcx + 1]
mov rcx, qword [rbp + 0x28]
movzx rdx, byte [rbp + 0x58]
xor byte [rcx], dl
add qword [rbp + 0x28], 1
add qword [rbp + 0x38], 1
sub rax, 1
test rax, rax
jne 0x2a4d72
nop
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x2a4da0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0xf8
mov rbp, rsp
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rdx
nop
mov dword [rbp + 0xec], 0
lea rcx, [rbp + 0x80]
mov edx, 0x68
xor r8, r8
call fcn.0001b7e0
mov dword [rbp + 0x80], 0x68
mov word [rbp + 0xc0], 0
mov dword [rbp + 0xbc], 1
lea rcx, [rbp + 0x68]
mov edx, 0x18
xor r8, r8
call fcn.0001b7e0
mov rcx, qword [rbp + 0x110]
call fcn.00021b20
mov rbx, rax
mov rcx, qword [rbp + 0x118]
call fcn.00021b20
mov rcx, rbx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x48], rax
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
je 0x2a4ea1
mov eax, dword [rbp + 0x78]
mov dword [rbp + 0xec], eax
mov rcx, qword [rbp + 0x68]
call sub.KERNEL32.DLL_CloseHandle
mov rcx, qword [rbp + 0x70]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x2a4ea1
mov eax, dword [rbp + 0xec]
lea rsp, [rbp + 0xf8]
pop rbx
pop rbp
ret
Function at 0x2a67f0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], rbp
nop
mov rcx, qword [0x002fe368]
call fcn.002a22f0
cmp al, 1
jne 0x2a6991
cmp byte [0x00378c80], 0
jne 0x2a6991
nop
lea rcx, [rbp + 0x70]
call fcn.002a6790
lea rcx, [0x0030d210]
mov rdx, qword [rbp + 0x70]
call fcn.00020c80
lea rcx, [rbp + 0x68]
mov edx, dword [0x00378cb0]
call fcn.000423d0
lea rcx, [0x00378cb8]
mov rdx, qword [rbp + 0x68]
call fcn.00020c80
lea rcx, [rbp + 0x60]
lea rdx, [0x002a69e8]
lea r8, [0x002a6a04]
mov r9d, 0x6e95
call fcn.002a1020
mov rcx, qword [rbp + 0x60]
call fcn.00021b20
mov rbx, rax
lea rcx, [rbp + 0x50]
lea rdx, [0x002a6a24]
lea r8, [0x002a6a04]
mov r9d, 0x30c4
call fcn.002a1020
mov rcx, qword [rbp + 0x50]
call fcn.00021b20
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0x40]
lea rdx, [0x002a6a54]
lea r8, [0x002a6a04]
mov r9d, 0x277a
call fcn.002a1020
mov rcx, qword [rbp + 0x40]
call fcn.00021b20
lea rcx, [rbp + 0x38]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0x58]
mov edx, 4
mov r8, qword [rbp + 0x48]
mov r9, qword [0x0030d210]
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [0x00378cb8]
mov qword [rsp + 0x28], rax
call fcn.000220b0
mov rcx, qword [rbp + 0x58]
call fcn.00021b20
xor ecx, ecx
xor edx, edx
mov r8, rbx
mov r9, rax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
call sub.shell32.dll_ShellExecuteW
mov byte [0x00378c71], 0
jmp 0x2a6992
nop
lea rcx, [rbp + 0x38]
mov edx, 8
call fcn.00020730
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret
Function at 0x2b07f0
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], rbp
nop
cmp byte [0x00378c70], 0
je 0x2b084a
mov rcx, qword [0x002fe368]
call fcn.002a3fa0
nop
xor ecx, ecx
xor edx, edx
lea r8, [fcn.002a7a60]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [0x0030d204]
mov qword [rsp + 0x28], rax
call sub.KERNEL32.DLL_CreateThread
mov qword [0x0030d1e8], rax
jmp 0x2b0883
mov rcx, qword [0x002fe368]
call fcn.002a33d0
mov rcx, qword [0x002fe368]
call fcn.002aa830
nop
lea rcx, [rbp + 0x50]
lea rdx, [0x002b09c8]
lea r8, [0x002b09e0]
mov r9d, 0x8982
call fcn.002a1020
mov rcx, qword [rbp + 0x50]
call fcn.00021b20
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x48]
call fcn.000522b0
lea rcx, [rbp + 0x40]
lea rdx, [0x002b0a00]
lea r8, [0x002b09e0]
mov r9d, 0x1b08
call fcn.002a1020
mov rcx, qword [rbp + 0x40]
call fcn.00021b20
lea rcx, [rbp + 0x38]
mov rdx, rax
call fcn.00021bb0
lea rcx, [rbp + 0x60]
mov edx, 3
mov r8, qword [rbp + 0x58]
mov r9, qword [rbp + 0x38]
mov rax, qword [0x002fe398]
mov qword [rsp + 0x20], rax
call fcn.000220b0
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00378c30]
lea r8, [0x002b0a10]
call fcn.00021f80
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x30]
call fcn.00193310
jmp 0x2b095d
nop
lea rcx, [rbp + 0x30]
mov edx, 7
call fcn.00020730
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x2b1bc0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x40], ecx
cmp dword [rsp + 0x40], 0
je 0x2b1c04
cmp dword [rsp + 0x40], 1
jne 0x2b1c04
xor ecx, ecx
xor edx, edx
lea r8, [0x002b0a60]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [0x0030d1f4]
mov qword [rsp + 0x28], rax
call sub.KERNEL32.DLL_CreateThread
mov qword [0x0030d1c8], rax
cmp dword [rsp + 0x40], 2
je 0x2b1c10
cmp dword [rsp + 0x40], 3
add rsp, 0x38
ret
Function at 0x140016e30
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 0x140016e58
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 0x140016e7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140016e80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140016ed9
test ecx, ecx
jle 0x140016eb9
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 0x140016ed9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140016ed9
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 0x140016f00
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 0x140016f22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140016f38
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 0x140016f54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140016f56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016f92
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 0x14001702e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140016fcd
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 0x14001700e
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 0x14001702e
cmp rbx, rax
ja 0x140016fe0
test rbx, rbx
je 0x14001702e
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 0x140017490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400174bd
xor eax, eax
jmp 0x140017629
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400174f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400174f7
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 0x140017629
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001761c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001753a
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 0x140017565
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 0x140017621
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 0x1400175d4
sub eax, 1
je 0x1400175d4
cmp eax, 2
jne 0x14001761c
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 0x140017621
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140017602
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 0x14001761c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140017621
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019b90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140018da0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140018e73
cmp byte [rcx + 0x71], 0
je 0x140018e73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140018e6f
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 0x140018e34
sub eax, 1
je 0x140018e38
cmp eax, 2
jne 0x140018e6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140019b90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140018e66
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 0x140018e6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140018e1c
xor al, al
jmp 0x140018e1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140019b90
add rsp, 0x60
pop rbx
ret

Function at 0x14001a720
Capabilities:
Parse pe header

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

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x14002bec7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x14002beb0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x14002bfb8
sub rcx, r10
cmp r9, 8
jb 0x14002bf99
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x14002bf20
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x14002bfb8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x14002bfa0
test r8d, r8d
sete al
ret
Function at 0x140002040
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140084180]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x40], rcx
xor r9d, r9d
cmp word [0x1400708d6], r9w
mov rbx, rcx
mov rax, qword [0x1400708d0]
mov qword [rsp + 0x40], rax
je 0x140002141
cmp dword [0x1400841d8], 2
jl 0x1400020fb
movdqa xmm3, xmmword [0x140070ae0]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140070b40]
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140070b40]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140070b00]
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x40]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140070b20]
xorps xmm2, xmm0
movq qword [rsp + 0x40], xmm2
jmp 0x140002141
lea r8, [rsp + 0x40]
mov ecx, r9d
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x34
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x38
xor word [r8 - 2], ax
cmp ecx, 4
jl 0x140002110
mov dword [rsp + 0x38], r9d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], r9
xor r8d, r8d
mov qword [rsp + 0x28], r9
xor edx, edx
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140002193
mov edx, dword [rsp + 0x68]
mov rcx, rbx
call fcn.14000db60
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005f800
add rsp, 0x80
pop rbx
ret
lea rdx, str.Failed_to_get_HWID
lea rcx, [rsp + 0x50]
call fcn.140001de0
lea rdx, [0x1400811c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3