joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800024e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180157480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rsi, rdx
test eax, eax
movq rdx, xmm3
mov r9, rdx
mov r11d, 0xd
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x180002553
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x180002559
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, 0x2d
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, 0x2b
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x180002593
lea edx, [rax - 0x27]
jmp 0x1800025ac
cmp edi, 0x64
jae 0x18000259f
mov edx, 5
jmp 0x1800025ac
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x1800026eb
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x1800026eb
cmp r10d, r11d
jge 0x180002601
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x180002692
mov byte [rsi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, 0x30
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x180002692
movabs rdx, 0x1000000000000
nop dword [rax]
test ecx, ecx
je 0x18000267c
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x180002650
jmp 0x180002692
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
add rsi, rbx
mov byte [rsi], 0x70
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x1800026b0
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x1800026f5
mov dword [r14 + 8], 0x84
jmp 0x18000270f
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b1a20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18001d640
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18001d684
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180010700]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x18001d684
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18001df20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rcx
lea rcx, [0x180158040]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x20]
call fcn.18001d8d0
lea r8, [rsp + 0x48]
lea rcx, [0x180158040]
mov rdx, qword [rax]
mov edi, dword [rdx + 0x20]
sub edi, dword [rdx + 0x18]
lea rdx, [rsp + 0x20]
call fcn.18001d8d0
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, edi
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18001dfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
cmp r8d, 5
jae 0x18001dfe3
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x40]
mov ebx, r8d
mov r8d, 0x40
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, ebx
mov edx, 0x90
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
sub esi, edi
mov byte [rdi], 0xe9
sub esi, 5
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 1], esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x30]
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18001e250
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rsi, rcx
mov qword [rax + 0x20], rcx
movzx r15d, r8b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor ebp, ebp
mov qword [rax - 0x78], rbp
test r8b, r8b
je 0x18001e2bd
mov ecx, r15d
call fcn.1800b127c
mov rdi, rax
mov qword [rsp + 0x30], rax
lea rbx, [rax + r15]
mov qword [rsp + 0x40], rbx
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], rbx
jmp 0x18001e2c2
mov rdi, qword [rsp + 0x30]
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0xd8]
lea rdx, [rsp + 0x20]
lea rcx, [0x180158040]
call fcn.18001d8d0
mov rcx, qword [rax]
add rcx, 0x18
lea rdx, [rsp + 0x30]
call fcn.18001ddf0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14d, dword [rsp + 0x4c]
lea r12, [r14 - 1]
not r12
and r12, rsi
lea rax, [r12 - 0x7fffff00]
mov r13, qword [rsp + 0x50]
cmp rax, r13
cmovb r13, rax
lea rax, [r12 + 0x7fffff00]
mov rcx, qword [rsp + 0x58]
cmp rax, rcx
cmova rcx, rax
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rax, r12
div r14
sub r12, rdx
lea rdi, [r12 + r14]
mov rax, rdi
sub rax, r12
mov rbx, r12
sub rbx, rax
cmp r12, rax
cmovbe rbx, rbp
cmp rdi, rcx
jbe 0x18001e374
cmp rbx, r13
jb 0x18001e42d
cmp rdi, rcx
jae 0x18001e396
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18001e3c5
cmp rbx, r13
jbe 0x18001e3bb
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18001e3c5
add rdi, r14
mov rcx, qword [rsp + 0x20]
jmp 0x18001e350
mov rdx, qword [rsp + 0xc8]
mov rcx, rsi
call fcn.18001e490
cmp r15, 5
jb 0x18001e42d
lea edx, [r15 + 5]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18001e42d
mov r8, r15
mov rdi, qword [rsp + 0xc0]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [r15 + rdi]
lea rcx, [rbx + r15]
call fcn.18001e490
mov r8d, r15d
mov rdx, rsi
mov rcx, rdi
call fcn.18001dfc0
mov rbp, rbx
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001e46c
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001e467
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001e467
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b12b8
mov rax, rbp
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001e6c0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18001e89f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.18001e500
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18001e864
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18001e7dc
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18001e853
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x18001e819
mov r10, qword [rdx]
cmp r10, rax
je 0x18001e813
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18001e853
cmp r9, rdx
je 0x18001e82f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x18001e879
cmp r9, rdx
jne 0x18001e820
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18001e760
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18001e853
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x18001e940
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180157480]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
lea rcx, [0x18001e900]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x180158080]
test rcx, rcx
jne 0x18001e982
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800b1a20
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
mov dword [0x180158088], eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
mov dword [0x18015808c], eax
mov rax, qword [0x180158080]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800b1a20
add rsp, 0x48
ret

Function at 0x18001e9d0
Capabilities:
Enumerate gui resources

Disassembly:
mov rax, qword [0x180158080]
test rax, rax
je fcn.18001e940
ret

Function at 0x18001fbe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x18001fd73
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x18001fd73
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x18001fc79
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x18001fd97
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x18001fc8f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x18001fc8f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x18001fca2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x18001fced
mov r9d, eax
cmp eax, 0x800
jae 0x18001fcbc
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x18001fced
cmp eax, 0x10000
jae 0x18001fcd6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x18001fced
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x18001fd73
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x18001fd11
cmp r10d, 3
jae 0x18001fd1d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x18001fd4e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x18001fd30
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x18001fc2e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x18001fd82
Function at 0x180020cb0
Capabilities:
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x28
call fcn.18005f390
call fcn.180010c30
call fcn.180060780
call fcn.180060a60
call fcn.180060d60
call fcn.180061250
call fcn.180010c30
call fcn.1800649d0
call fcn.1800656b0
call fcn.180066b90
call fcn.180066ca0
call fcn.180066da0
call fcn.180066f20
call fcn.1800682c0
add rsp, 0x28
jmp 0x180068520
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x38], 0
mov rdi, rcx
jne 0x180020dd3
cmp byte [rcx + 0x69], 0
je 0x180020dd3
cmp byte [rcx + 0x68], 0
je 0x180020dd3
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
call fcn.18001e940
call fcn.1800ada40
call fcn.1800acab0
call fcn.18007a0e0
call fcn.1800721e0
mov rcx, rdi
mov qword [0x180158320], rax
call fcn.18001b060
movzx ebx, byte [rdi + 0x30]
call fcn.1800730a0
mov rsi, rax
call fcn.180072820
test bl, bl
mov ecx, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov ebp, 1
cmovne ecx, ebp
xorps xmm0, xmm0
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x180115400]
mulss xmm1, dword [rax + 0x10]
addss xmm1, dword [rsi]
comiss xmm0, xmm1
ja 0x180020d5f
movss xmm0, dword [0x1800b8a90]
minss xmm0, xmm1
mov rcx, rdi
movss dword [rsi], xmm0
call fcn.180010ca0
mov qword [0x180158320], 0
lea r8, [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + 0x108]
call fcn.18007c080
call fcn.1800724b0
mov rcx, rax
call fcn.1800acaf0
cmp byte [0x180158198], 0
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
je 0x180020dd3
inc qword [rdi + 0x88]
cmp qword [rdi + 0x88], 0xa
jb 0x180020dd3
mov rcx, rdi
mov byte [rdi + 0x68], 0
add rsp, 0x20
pop rdi
jmp 0x180010c40
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
mov rcx, qword [0x180158940]
call fcn.18001df20
mov rcx, qword [0x180158948]
add rsp, 0x28
jmp fcn.18001df20
Function at 0x180021480
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180157480]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r10, r9
mov rsi, r8
mov rdi, rcx
mov r14, r8
shr r14, 0x10
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov r15d, 0xf
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], 0
cmp r8, 1
jne 0x180021526
mov qword [rbp - 0x20], 0xa
movsd xmm0, qword [0x1801155f0]
movsd qword [rbp - 0x30], xmm0
movzx eax, word [0x1801155f8]
mov word [rbp - 0x28], ax
mov byte [rbp - 0x26], 0
lea rcx, [rbp - 0x30]
movzx eax, dl
imul rbx, rax, 0x118
mov rdx, qword [rdi]
add rdx, rbx
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x180021510
jmp 0x180021631
cmp rsi, 2
jne 0x180021586
mov qword [rbp - 0x20], 0xb
movsd xmm0, qword [str.Right_Mouse]
movsd qword [rbp - 0x30], xmm0
movzx eax, word [0x180115608]
mov word [rbp - 0x28], ax
movzx eax, byte [0x18011560a]
mov byte [rbp - 0x26], al
mov byte [rbp - 0x25], 0
lea rcx, [rbp - 0x30]
movzx eax, dl
imul rbx, rax, 0x118
mov rdx, qword [rdi]
add rdx, rbx
nop
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x180021570
jmp 0x180021631
movzx eax, dl
imul rbx, rax, 0x118
mov r9, qword [rcx]
movzx edx, r14w
sub edx, 1
je 0x1800215f3
cmp edx, 1
lea rdx, [rbx + r9]
je 0x1800215b6
mov r8d, 0x100
mov ecx, r10d
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
jmp 0x180021631
mov qword [rbp - 0x20], 8
movabs r8, 0x3258206573756f4d
mov qword [rbp - 0x30], r8
mov byte [rbp - 0x28], 0
lea rcx, [rbp - 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x1800215e0
jmp 0x180021631
mov qword [rbp - 0x20], 8
movabs r8, 0x3158206573756f4d
mov qword [rbp - 0x30], r8
mov byte [rbp - 0x28], 0
lea rcx, [rbp - 0x30]
lea rdx, [rbx + r9]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
lea rcx, [rcx + 1]
lea rdx, [rdx + 1]
test al, al
jne 0x180021620
mov rcx, qword [rdi]
movzx eax, r14w
mov dword [rcx + rbx + 0x10c], eax
mov rax, qword [rdi]
mov qword [rbx + rax + 0x100], rsi
mov rax, qword [rdi]
mov byte [rbx + rax + 0x10a], 1
mov qword [rdi + 0x18], 0xd
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800b1a20
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800527c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180157480]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180052893
cmp byte [rcx + 0x71], 0
je 0x180052893
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18005288f
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 0x180052854
sub eax, 1
je 0x180052858
cmp eax, 2
jne 0x18005288f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b1a20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180052886
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 0x18005288f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18005283c
xor al, al
jmp 0x18005283c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b1a20
add rsp, 0x60
pop rbx
ret
Function at 0x180057e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180157480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x180057e3d
xor eax, eax
jmp 0x180057fa6
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x180057e7d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x180057e7d
mov rcx, rdi
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], sil
mov eax, esi
jmp 0x180057f9e
cmp qword [rdi + 0x80], 0
je 0x180057f99
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x180057eb7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x180057ee2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x180057f9e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x180057f51
sub eax, 1
je 0x180057f51
cmp eax, 2
jne 0x180057f99
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x180057f9e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x180057f7f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x180057f99
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x180057f9e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800b1a20
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret