joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000afb0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, qword [0x140064838]
mov ebp, edx
movaps xmmword [rsp + 0x30], xmm6
mov r9, rcx
mov rbx, qword [rdi + 0x4008]
cmp qword [rbx + 0x1a8], 0
jne 0x14000aff5
cmp qword [rdi + 0x4da8], 0
lea rax, [rbx + 0x250]
je 0x14000affc
lea rax, [rbx + 0x220]
movss xmm3, dword [rax]
xorps xmm5, xmm5
movss xmm2, dword [rax + 4]
cvttss2si eax, dword [r8]
subss xmm3, dword [rbx + 0x100]
subss xmm2, dword [rbx + 0x104]
movss xmm4, dword [0x14005c214]
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
comiss xmm5, xmm1
cvtdq2ps xmm0, xmm0
jb 0x14000b049
addss xmm3, xmm1
movaps xmm1, xmm3
maxss xmm1, xmm4
comiss xmm5, xmm0
jb 0x14000b059
addss xmm2, xmm0
movaps xmm0, xmm2
maxss xmm0, xmm4
or dword [rdi + 0x49b8], 2
movss dword [rdi + 0x49d8], xmm1
movss dword [rdi + 0x49dc], xmm0
mov dword [rdi + 0x49c0], 1
test r9, r9
je 0x14000b0a8
movsxd rdx, dword [rbx + 0xf0]
mov rcx, qword [rbx + 0xf8]
mov eax, dword [rbx + 0x10]
cmp dword [rcx + rdx*4 - 4], eax
jne 0x14000b0a8
mov qword [rsp + 0x20], r9
lea r8, str._s__s
mov r9, qword [rbx + 8]
jmp 0x14000b0e0
mov rax, qword [rbx + 8]
test r9, r9
je 0x14000b0d2
mov dword [rsp + 0x28], ebp
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x60]
mov r9, rax
xor edx, edx
call fcn.140003720
jmp 0x14000b0ec
mov dword [rsp + 0x20], ebp
lea r8, str._s__08X
mov r9, rax
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140003720
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x3920]
mov r8d, 0x1000107
call fcn.14000de50
mov rsi, qword [rdi + 0x4008]
movzx r14d, al
movss dword [rdi + 0x3920], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], ebp
jne 0x14000b136
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, ebp
lea rdx, [0x140054a69]
not r9d
lea r10, [0x140055ad0]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14000b163
cmp byte [rdx], r8b
jne 0x14000b163
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14000b150
not ebx
cmp dword [rdi + 0x4068], ebx
jne 0x14000b193
xor edx, edx
xor ecx, ecx
call fcn.1400077b0
cmp dword [rdi + 0x4ae8], ebp
jne 0x14000b1d8
cmp word [rsi + 0x15c], 0
jne 0x14000b1ae
cmp byte [rsi + 0x162], 0
je 0x14000b1d8
xor edx, edx
mov rcx, rsi
call fcn.1400102f0
xor edx, edx
mov rcx, rsi
call fcn.140016750
mov rdx, rsi
mov ecx, ebx
call fcn.1400077b0
mov eax, dword [rdi + 0x4b0c]
mov dword [rdi + 0x4090], eax
mov rbx, qword [rsp + 0x68]
movzx eax, r14b
mov rbp, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400147a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140064838]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x140014801
cmp byte [rbx + 0x4cf2], 0
jne 0x140014801
movsx r9d, word [rbx + 0x5e24]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400036a0
test dil, 2
je 0x14001492f
jmp 0x14001488c
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e24]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005c248]
mov edx, 0x10
mulss xmm1, dword [0x14005c23c]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x14005c13c]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.1400036a0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400148e0
lea r11, [0x140055ad0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400148c3
cmp byte [r8], r9b
jne 0x1400148c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400148b0
not ecx
call fcn.14000b4e0
test rax, rax
je 0x14001492f
cmp byte [rax + 0xb6], 0
je 0x14001492f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5e24]
movsx r9d, word [rbx + 0x5e24]
call fcn.1400036a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000de50
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140052a00
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001a670
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, 0x20
cmp qword [rcx + 0x5f78], 0
lea rbx, [rcx + 0x5f80]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001a717
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001a6ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001cef0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140004220
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5f78]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5f88]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140064830]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001a71f
mov rcx, rbx
call fcn.140004220
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001aa40
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, 0x20
mov rbx, qword [0x140064838]
xor ebp, ebp
cmp byte [rbx + 0x5ed0], bpl
jne 0x14001ab1f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001ab18
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003a30
mov rsi, rax
test rax, rax
je 0x14001ab18
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001aaa4
mov rcx, rax
call fcn.14001ac70
mov r8, qword [0x140064838]
test r8, r8
je 0x14001ab0f
movsx rdx, word [r8 + 0x6030]
lea rcx, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001ab04
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6030], cx
movsx rax, cx
lea rcx, [r8 + 0x6034]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x602c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ed0], 1
movss xmm0, dword [rbx + 0x5ed4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001abae
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ed4], xmm0
jb 0x14001abae
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001aba1
mov rax, qword [0x140064838]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5ed4], ebp
call fcn.14001aed0
lea rdx, [0x14005561c]
mov rcx, rdi
mov rsi, rax
call fcn.140003940
mov rdi, rax
test rax, rax
je 0x14001aba8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001aba8
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5ed4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001abd0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140064838]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001ac33
mov qword [rsp], rbx
lea rbx, [0x140055ad0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001ac13
cmp byte [r8], r9b
jne 0x14001ac13
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001ac00
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ee8]
not eax
mov r8, qword [r10 + 0x5ef0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001ac5f
cmp dword [r8 + 8], eax
je 0x14001ac66
add r8, 0x48
cmp r8, rcx
jne 0x14001ac50
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140030070
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [0x140064838]
mov rbp, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140030288
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140030288
mov qword [rsp + 0x70], rbx
mov ecx, 0x50
mov qword [rsp + 0x78], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140064838]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14003013e
movsx rdx, word [r8 + 0x6030]
lea rax, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140030133
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6030], cx
movsx rax, cx
lea rax, [rax*8 + 0x6034]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6028]
test rdi, rdi
je 0x14003015b
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14003015e
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14005af08]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400301a1
mov rsi, qword [r8 + 0x90]
jmp 0x1400301a4
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400301cf
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140064838]
mov rcx, qword [rax + 0x4ad0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x20], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x28], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x40], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003024e
inc rbx
cmp rbx, 5
jl 0x140030224
mov rdi, qword [rsp + 0x78]
mov al, 1
mov rbx, qword [rsp + 0x70]
jmp 0x14003028a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x70]
mov qword [rdi + 0x48], rax
mov al, 1
mov rdi, qword [rsp + 0x78]
jmp 0x14003028a
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052a00
mov rbp, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
Function at 0x140046e70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x13f8
call fcn.140053a50
sub rsp, rax
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rax, qword gs:[0x58]
mov rdi, rdx
mov rbx, rcx
mov edx, 4
mov ebp, r9d
mov esi, r8d
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14006494c], eax
jle 0x140046f01
lea rcx, [0x14006494c]
call fcn.140052c10
cmp dword [0x14006494c], 0xffffffff
jne 0x140046f01
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetWindowPos
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14006494c]
mov qword [0x140064960], rax
call fcn.140052ba4
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13d4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x54], eax
nop dword [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x54], eax
inc rcx
cmp rcx, 0x270
jb 0x140046f20
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x270
call fcn.140052860
mov eax, dword [rsp + 0x1450]
mov r9d, ebp
mov dword [rsp + 0x30], eax
mov r8d, esi
mov eax, dword [rsp + 0x1448]
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov rcx, rbx
mov eax, dword [rsp + 0x1440]
mov dword [rsp + 0x20], eax
call qword [0x140064960]
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140052a00
add rsp, 0x13f8
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140046fa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x13d0
call fcn.140053a50
sub rsp, rax
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rax, qword gs:[0x58]
mov edi, edx
mov ebx, ecx
mov edx, 4
mov esi, r8d
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140064978], eax
jle 0x14004702b
lea rcx, [0x140064978]
call fcn.140052c10
cmp dword [0x140064978], 0xffffffff
jne 0x14004702b
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.mouse_event
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140064978]
mov qword [0x140064958], rax
call fcn.140052ba4
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x34], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x140047050
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x270
call fcn.140052860
cmp ebx, 2
jne 0x14004709d
test eax, eax
js 0x14004709d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.mouse_event_n
call fcn.140050ff0
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
mov ecx, ebx
call qword [0x140064958]
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140052a00
add rsp, 0x13d0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400470e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13c0
call fcn.140053a50
sub rsp, rax
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov rax, qword gs:[0x58]
mov ebx, ecx
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140064950], eax
jle 0x140047164
lea rcx, [0x140064950]
call fcn.140052c10
cmp dword [0x140064950], 0xffffffff
jne 0x140047164
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x14005b670]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140064950]
mov qword [0x140064970], rax
call fcn.140052ba4
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x140047180
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.140052860
cmp ebx, 0x10
jne 0x1400471cd
test eax, eax
js 0x1400471cd
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.GetAsyncKeyState_n
call fcn.140050ff0
mov ecx, ebx
call qword [0x140064970]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.140052a00
add rsp, 0x13c0
pop rbx
ret
Function at 0x140052860
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400528c1
lea r8, [r9 + 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 r10, 1
jne 0x140052880
mov ecx, dword [r9]
jmp 0x1400529ab
cmp ecx, 0x4e0
jb 0x1400529ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400528e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140052930
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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 0x1400535f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005363a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005363a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005363a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005363a
cmp dword [rcx + 0x84], 0xe
jbe 0x14005363a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005363c
xor al, al
add rsp, 0x28
ret
Function at 0x140006560
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
test rcx, rcx
jne 0x1400065a9
mov r8d, 0x4881
lea rdx, [0x140019b30]
lea rcx, [0x140019a68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
jne 0x1400065c8
mov r8d, 0x4882
lea rdx, [0x140019a80]
lea rcx, str.v___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rsi, rsi
jne 0x1400065e7
mov r8d, 0x4883
lea rdx, [0x1400199a0]
lea rcx, str.b___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000661d
cmp dword [rsp + 0x34], 4
je 0x140006629
mov eax, 1
jmp 0x140006629
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400011f0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x38], 0x265e5c22
mov dword [rsp + 0x3c], 0x7c7d7b60
mov dword [rsp + 0x40], 0x3e3c5b5d
test rcx, rcx
jne 0x1400067a5
mov r8d, 0x2a7e
lea rdx, [0x14001a260]
lea rcx, str.s___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rdi], 0
jne 0x1400067c4
mov r8d, 0x2a7f
lea rdx, [0x14001a1b0]
lea rcx, [0x14001a190]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rbx, rbx
jne 0x1400067e3
mov r8d, 0x2a80
lea rdx, [0x14001a0e0]
lea rcx, str.d___NULL
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rdi], 0
je 0x140006854
test rbx, rbx
je 0x140006854
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rbx
lea r14, [rbx + rsi]
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
cmp rbx, r14
jae 0x14000684b
movzx eax, byte [rdi]
test al, al
je 0x14000684b
xor edx, edx
mov dword [rsp + 0x20], edx
cmp edx, 2
jae 0x140006830
cmp al, byte [rsp + rdx + 0x38]
jne 0x140006847
mov byte [rbx], 0x5c
inc rbx
mov qword [rsp + 0x28], rbx
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
mov qword [rsp + 0x28], rbx
inc rdi
mov qword [rsp + 0x30], rdi
jmp 0x140006808
inc edx
jmp 0x140006816
mov byte [r14 - 1], 0
xor eax, eax
jmp 0x140006860
mov eax, 1
jmp 0x140006860
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x18001a9a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18025cbc0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18001aa73
cmp byte [rcx + 0x71], 0
je 0x18001aa73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18001aa6f
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 0x18001aa34
sub eax, 1
je 0x18001aa38
cmp eax, 2
jne 0x18001aa6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180151320
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18001aa66
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 0x18001aa6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18001aa1c
xor al, al
jmp 0x18001aa1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180151320
add rsp, 0x60
pop rbx
ret