joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c290
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x14001c2ae
mov qword [r8], r14
lea rdx, [0x1400659e4]
call fcn.14001c0e0
mov rbx, rax
test rax, rax
jne 0x14001c2d3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001c3ff
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001c3ff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001c3ff
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001c3ff
cmp rdi, 0xffffffffffffffff
je 0x14001c3ff
mov rcx, rdi
call fcn.140021da0
mov rbp, rax
test rax, rax
je 0x14001c3ff
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14001c3ec
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140106f08]
test r8, r8
je 0x14001c3e1
movsx rdx, word [r8 + 0x5480]
lea rcx, [r8 + 0x5484]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001c3d6
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 + 0x5480], cx
movsx rax, cx
lea rcx, [r8 + 0x5484]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x547c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001c408
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001c3fa
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14001c40a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140025110
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, dword [rsp + 0x90]
mov r14d, edx
mov rdi, qword [0x140106f08]
mov eax, esi
and eax, 0x40000000
mov r10, rcx
bts eax, 0x1d
shr eax, 0x1d
mov rbx, qword [rdi + 0x40a0]
mov r15d, eax
bts r15d, 8
test esi, esi
cmovns r15d, eax
mov eax, dword [rbx + 0x14]
and eax, 4
or eax, 0x1000103
or esi, eax
cmp qword [rbx + 0x1c0], 0
jne 0x14002519b
cmp qword [rdi + 0x4ec0], 0
lea rax, [rbx + 0x268]
je 0x1400251a2
lea rax, [rbx + 0x238]
movss xmm2, dword [rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rax + 4]
subss xmm3, dword [rbx + 0x11c]
subss xmm2, dword [rbx + 0x118]
mov rdx, qword [r8]
call fcn.14002fd80
mov eax, dword [rdi + 0x4ac0]
test al, 2
je 0x140025204
test byte [rdi + 0x4ac8], 1
je 0x140025204
movss xmm0, dword [rdi + 0x4ae0]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400251f1
movss dword [rsp + 0x30], xmm0
movss xmm0, dword [rdi + 0x4ae4]
comiss xmm0, xmm1
jbe 0x140025204
movss dword [rsp + 0x34], xmm0
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
movsd qword [rdi + 0x4ae0], xmm0
or eax, 0x102
mov dword [rdi + 0x4ac8], 1
xor edx, edx
mov dword [rdi + 0x4ac0], eax
mov dword [rdi + 0x4af8], r15d
mov r9, qword [rbx + 8]
test r10, r10
je 0x140025256
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r10
call fcn.14001be90
jmp 0x140025267
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
call fcn.14001be90
mov rcx, qword [rsp + 0x30]
mov r8d, esi
movss xmm6, dword [rdi + 0x3958]
xor edx, edx
call fcn.140028490
mov rsi, qword [rdi + 0x40a0]
movzx ebp, al
movss dword [rdi + 0x3958], xmm6
cmp word [rsi + 0xd8], 1
mov dword [rsi + 0x90], r14d
jne 0x1400252ae
movsd xmm0, qword [rsi + 0x28]
movsd qword [rbx + 0x118], xmm0
mov r9d, r14d
lea rdx, [0x14006b7b1]
not r9d
lea r10, [0x140066b40]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x1400252db
cmp byte [rdx], r8b
jne 0x1400252db
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 0x1400252c8
not ebx
cmp dword [rdi + 0x4114], ebx
jne 0x14002530b
xor edx, edx
xor ecx, ecx
call fcn.1400215c0
cmp dword [rdi + 0x4bec], r14d
jne 0x140025358
bt r15d, 8
jb 0x140025358
cmp word [rsi + 0x174], 0
jne 0x14002532e
cmp byte [rsi + 0x17a], 0
je 0x140025358
xor edx, edx
mov rcx, rsi
call fcn.14002b000
xor edx, edx
mov rcx, rsi
call fcn.140032cc0
mov rdx, rsi
mov ecx, ebx
call fcn.1400215c0
mov eax, dword [rdi + 0x4c20]
mov dword [rdi + 0x4140], eax
movzx eax, bpl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140063160
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x14002bc80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x140066b40]
movsxd rcx, dword [rcx + 0x108]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0x110]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x40f8], ebx
jne 0x14002bd14
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.1400379a0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f660
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, qword [0x140106f08]
lea r8, [0x14006c601]
mov r10d, 0xffffffff
lea r11, [0x140066b40]
mov ecx, r10d
mov r9b, 0x23
cmp r9b, 0x23
jne 0x14002f6a3
cmp byte [r8], r9b
jne 0x14002f6a3
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 0x14002f690
not ecx
call fcn.140025590
cmp byte [rbx + 0xfc], 0
je 0x14002f6e3
test rax, rax
je 0x14002f6e3
cmp byte [rax + 0xcb], 0
je 0x14002f6e3
mov dil, 1
jmp 0x14002f6e6
xor dil, dil
movss xmm3, dword [0x14006d6d0]
lea rcx, [rbx + 0x4b38]
movss xmm1, dword [rbx + 0x3a58]
lea rdx, [rsp + 0x30]
movss xmm4, dword [0x14006d738]
xorps xmm2, xmm2
movaps xmm0, xmm4
mov dword [rsp + 0x30], 4
subss xmm0, xmm1
mulss xmm0, xmm3
addss xmm0, xmm1
movss xmm1, dword [rbx + 0x3a5c]
movss dword [rsp + 0x20], xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mulss xmm0, xmm3
addss xmm0, xmm1
movss xmm1, dword [rbx + 0x3a60]
subss xmm2, xmm1
movss dword [rsp + 0x24], xmm0
movss xmm0, dword [rbx + 0x3a64]
subss xmm4, xmm0
mulss xmm2, xmm3
addss xmm2, xmm1
mulss xmm4, xmm3
addss xmm4, xmm0
movss dword [rsp + 0x28], xmm2
movups xmm0, xmmword [rbx + 0x3a58]
movups xmmword [rsp + 0x34], xmm0
movss dword [rsp + 0x2c], xmm4
call fcn.140038650
cmp dword [rbx + 0x4b34], 4
je 0x14002f7a1
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx + 0x3a58], xmm0
test dil, dil
je 0x14002f7d7
mov rax, qword [0x140106f08]
or dword [rax + 0x4ac0], 1
movsd xmm0, qword [rbx + 0x53a8]
xor edx, edx
mov qword [rax + 0x4ad8], rdx
movsd qword [rax + 0x4ad0], xmm0
mov dword [rax + 0x4ac4], 1
xor edx, edx
lea rcx, str.Tooltip_Error
mov r8d, 0x200016f
call fcn.140028490
mov ecx, 1
movzx esi, al
call fcn.14001cb90
test sil, sil
je 0x14002f8ca
mov rcx, qword [rbx + 0x40a0]
cmp word [rcx + 0xd8], 1
jne 0x14002f8cf
mov rdi, qword [0x140106f08]
mov rcx, qword [rdi + 0x40a0]
mov byte [rcx + 0xcc], 1
mov rax, qword [rdi + 0x40a0]
cmp byte [rax + 0xcf], 0
jne 0x14002f87d
lea rdx, str.MESSAGE_FROM_DEAR_IMGUI
mov r8, rdx
cmp rdx, 0xffffffffffffffff
jae 0x14002f86e
nop dword [rax + rax]
movzx ecx, byte [r8]
test cl, cl
je 0x14002f86e
lea rax, [r8 + 1]
cmp cl, 0x23
jne 0x14002f865
cmp byte [rax], cl
je 0x14002f86e
mov r8, rax
cmp rax, 0xffffffffffffffff
jb 0x14002f850
xorps xmm3, xmm3
call fcn.140056cd0
mov rdi, qword [0x140106f08]
mov rcx, qword [rbx + 0x40a0]
call fcn.14002af50
mov rcx, qword [rbx + 0x40a0]
call fcn.14002aeb0
mov rdx, qword [rdi + 0x40a0]
movzx eax, sil
movss xmm0, dword [rdx + 0x28]
movss xmm1, dword [rdx + 0x2c]
movss dword [rbx + 0x53a8], xmm0
movss dword [rbx + 0x53ac], xmm1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.14002ab30
mov rbx, qword [rsp + 0x60]
movzx eax, sil
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140030b00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140106f08]
mov edi, ecx
cmp byte [rbx + 0x4df5], 0
jne 0x140030b61
cmp byte [rbx + 0x4df6], 0
jne 0x140030b61
movsx r9d, word [rbx + 0x51f0]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14001be10
test dil, 2
je 0x140030c9f
jmp 0x140030bfb
movss xmm0, dword [rbx + 0x3a08]
mov eax, dword [rbx + 0x4ac0]
movaps xmm1, xmm0
mulss xmm1, dword [0x14006d7ac]
mulss xmm0, dword [0x14006d7a4]
addss xmm1, dword [rbx + 0xe0]
addss xmm0, dword [rbx + 0xe4]
test al, 1
jne 0x140030bbc
xor ecx, ecx
movss dword [rbx + 0x4ad0], xmm1
mov qword [rbx + 0x4ad8], rcx
or eax, 1
movss dword [rbx + 0x4ad4], xmm0
mov dword [rbx + 0x4ac4], 1
movss xmm0, dword [rbx + 0x3a64]
lea r8, str.Tooltip__02d
mulss xmm0, dword [0x14006d704]
lea rcx, [rsp + 0x20]
movsx r9d, word [rbx + 0x51f0]
or eax, 0x40
mov edx, 0x10
mov dword [rbx + 0x4ac0], eax
movss dword [rbx + 0x4b20], xmm0
call fcn.14001be10
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140030c50
lea r11, [0x140066b40]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140030c33
cmp byte [r8], r9b
jne 0x140030c33
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 0x140030c20
not ecx
call fcn.140025590
test rax, rax
je 0x140030c9f
cmp byte [rax + 0xca], 0
je 0x140030c9f
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x51f0]
movsx r9d, word [rbx + 0x51f0]
call fcn.14001be10
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.140028490
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140063160
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400361e0
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 + 0x5358], 0
lea rbx, [rcx + 0x5360]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140036287
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14003623a
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.140038c90
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001c9d0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5358]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5368]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140106ef5]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14003628f
mov rcx, rbx
call fcn.14001c9d0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400365b0
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 [0x140106f08]
xor ebp, ebp
cmp byte [rbx + 0x52a0], bpl
jne 0x14003668f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140036688
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14001c290
mov rsi, rax
test rax, rax
je 0x140036688
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140036614
mov rcx, rax
call fcn.1400367e0
mov r8, qword [0x140106f08]
test r8, r8
je 0x14003667f
movsx rdx, word [r8 + 0x5480]
lea rcx, [r8 + 0x5484]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140036674
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 + 0x5480], cx
movsx rax, cx
lea rcx, [r8 + 0x5484]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x547c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x52a0], 1
movss xmm0, dword [rbx + 0x52a4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14003671e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52a4], xmm0
jb 0x14003671e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140036711
mov rax, qword [0x140106f08]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52a4], ebp
call fcn.140036a40
lea rdx, [0x14006ca30]
mov rcx, rdi
mov rsi, rax
call fcn.14001c0e0
mov rdi, rax
test rax, rax
je 0x140036718
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 0x140036718
mov byte [rbx + 0xb4], 1
mov dword [rbx + 0x52a4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140036740
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140106f08]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400367a3
mov qword [rsp], rbx
lea rbx, [0x140066b40]
nop dword [rax]
cmp r9b, 0x23
jne 0x140036783
cmp byte [r8], r9b
jne 0x140036783
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 0x140036770
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x52b8]
not eax
mov r8, qword [r10 + 0x52c0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1400367cf
cmp dword [r8 + 8], eax
je 0x1400367d6
add r8, 0x48
cmp r8, rcx
jne 0x1400367c0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14004b4e0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140106f08]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004b6ff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004b6ff
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140106f08]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14004b5b4
movsx rdx, word [r8 + 0x5480]
lea rax, [r8 + 0x5484]
mov r9d, dword [r8 + 0x3fe8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14004b5a9
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 + 0x5480], cx
movsx rax, cx
lea rax, [rax*8 + 0x5484]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5478]
test rdi, rdi
je 0x14004b5d1
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 0x14004b5d4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14006d1d8]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14004b617
mov rsi, qword [r8 + 0x98]
jmp 0x14004b61a
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 0x14004b645
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140106f08]
mov rcx, qword [rax + 0x4bd0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14004b6bf
inc rbx
cmp rbx, 5
jl 0x14004b6a1
jmp 0x14004b6eb
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 qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14004b701
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140063160
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140051650
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x140106f08]
mov rdx, qword [rax + 0x4ec0]
cmp ecx, 0xffffffff
jne 0x14005166a
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x1400516e7
mov r10d, dword [rdx]
lea r8, [0x14006d2a9]
movzx eax, word [rdx + 0x78]
lea r11, [0x140066b40]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400516c3
cmp byte [r8], r9b
jne 0x1400516c3
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 0x1400516b0
not ecx
jmp fcn.140030d80
ret
Function at 0x140063000
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.140063264
lea rcx, [0x1400159b0]
mov r9, rax
lea r8, [0x1400630d0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400630a0
cmp dword [rsp + 0x48], 0
je 0x140063094
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140063094
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
call fcn.140015b30
cmp dword [rsp + 0x48], 0
je 0x1400630b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rsp + 0x48], 0
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140063160
add rsp, 0x68
ret

Function at 0x140063e8c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rdx
mov rdx, rcx
mov rcx, rax
jmp 0x18000eb60
mov rax, qword gs:[0x30]
mov r10, rcx
mov r8, qword [rax + 0x60]
mov r9, qword [r8 + 0x18]
add r9, 0x20
mov rax, qword [r9]
nop dword [rax + rax]
cmp qword [rax + 0x20], rdx
je 0x18000eb9d
test rdx, rdx
je 0x18000eb9d
mov rax, qword [rax]
cmp rax, r9
jne 0x18000eb80
mov qword [rcx], 0
xor eax, eax
ret
mov rcx, qword [rax + 0x40]
mov qword [r10], rcx
movzx eax, word [rax + 0x38]
shr eax, 1
ret

Function at 0x180005240
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xd8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x128], rdx
mov qword [rsp + 0x130], r8
mov qword [rsp + 0x138], r9
mov eax, dword [0x18024a0bc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
cmp rcx, qword [rax + 0x88]
sete byte [rsp + 0xd0]
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [r8 + 0x18]
mov rbx, qword [rax]
mov rax, qword [r8 + 0x20]
mov rbp, qword [rax]
mov rax, qword [r8 + 0x28]
mov rsi, qword [rax]
mov rax, qword [r8 + 0x30]
mov rdi, qword [rax]
mov rax, qword [r8 + 0x58]
mov r12, qword [rax]
mov rax, qword [r8 + 0x60]
mov r13, qword [rax]
mov rax, qword [r8 + 0x68]
mov r14, qword [rax]
mov rax, qword [r8 + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [r8 + 0x90]
movdqa xmm7, xmmword [r8 + 0xa0]
movdqa xmm8, xmmword [r8 + 0xb0]
movdqa xmm9, xmmword [r8 + 0xc0]
movdqa xmm10, xmmword [r8 + 0xd0]
movdqa xmm11, xmmword [r8 + 0xe0]
movdqa xmm12, xmmword [r8 + 0xf0]
movdqa xmm13, xmmword [r8 + 0x100]
movdqa xmm14, xmmword [r8 + 0x110]
movdqa xmm15, xmmword [r8 + 0x120]
mov rcx, qword [r8 + 0x78]
mov rdx, qword [rsp + 0x120]
call qword [rsp + 0x128]
mov r8, qword [rsp + 0x130]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rdx + 0x70]
cmp rcx, 0
je 0x1800053d0
mov r9, qword [rdx + 0x68]
mov qword [r9], rcx
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], 0
mov rcx, qword [rsp + 0x138]
mov r11, qword [r8 + 0x88]
mov r8, qword [r8 + 0x78]
xor r9, r9
mov rcx, qword [rcx]
cmp rcx, r9
je 0x1800053f3
cmp rcx, r8
jl 0x1800053e6
mov qword [rdx + 0x80], rcx
test dword [0x180243d60], 1
je 0x180005424
cmp byte [rsp + 0xd0], 0
je 0x180005424
mov rcx, 0x43
mov rdx, rax
movabs rax, 0x180004f30
mov rsp, r8
rdsspq r9
test r9, r9
je 0x180005450
sub r11, r9
shr r11, 3
mov r9, 0xff
cmp r11, r9
cmovb r9, r11
incsspq r9
sub r11, r9
ja 0x18000543f
jmp rax