joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d7240
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x5d7315
movdqa xmm0, xmmword [0x00706410]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x5d7281
movdqa xmm0, xmmword [0x00706420]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x5d7397
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x5d736b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x00705c90]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x00706880]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x5e4bc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5e4d6b
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x5e4be7
inc rcx
cmp rbx, rcx
jle 0x5e4d5d
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x5e4be4
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.00560cc0
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rsi
test rsi, rsi
mov rdx, qword [rsp + 0x88]
cmovne rbx, rdx
mov rdx, qword [rsp + 0x80]
cmovne rax, rdx
mov rdx, qword [0x0087c7d0]
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.005e0c80
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop dword [rax]
test rcx, rcx
jne 0x5e4d4d
test rdx, rdx
je 0x5e4d3e
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.004032e0
xorps xmm15, xmm15
mov r14, qword [0x008dc4c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5e4d09
xor eax, eax
lea rbx, [0x00693aa2]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x00693b48]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.0044e640
jmp 0x5e4d30
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00704550]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.0044e560
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor ecx, ecx
mov rdi, r9
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rax, r9
mov rbx, rsi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
xor ecx, ecx
xor edi, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462920
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.005e4bc0
Function at 0x140001dd0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400034dd
lea rbx, [0x140040a60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400034c4
cmp r10, 2
jb 0x1400034c4
cmp byte [r9], r8b
jne 0x1400034c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400034a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000351f
lea rbx, [0x140040a60]
cmp r8b, 0x23
jne 0x140003503
cmp byte [r9], r8b
jne 0x140003503
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400034f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400036e0
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 0x1400036fe
mov qword [r8], r14
lea rdx, [0x140040570]
call fcn.140003530
mov rbx, rax
test rax, rax
jne 0x140003723
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 0x14000384f
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 0x14000384f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000384f
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 0x14000384f
cmp rdi, 0xffffffffffffffff
je 0x14000384f
mov rcx, rdi
call fcn.1400075b0
mov rbp, rax
test rax, rax
je 0x14000384f
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 0x14000383c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400e8420]
test r8, r8
je 0x140003831
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140003826
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 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003858
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000384a
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14000385a
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 0x140014a90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400e8420]
mov edi, ecx
cmp byte [rbx + 0x4d4d], 0
jne 0x140014af1
cmp byte [rbx + 0x4d4e], 0
jne 0x140014af1
movsx r9d, word [rbx + 0x5eb8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140003260
test dil, 2
je 0x140014c1f
jmp 0x140014b7c
movss xmm1, dword [rbx + 0x39bc]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5eb8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140045ad0]
mov edx, 0x10
mulss xmm1, dword [0x140045ac4]
addss xmm0, dword [rbx + 0xe40]
addss xmm1, dword [rbx + 0xe44]
mov qword [rbx + 0x4a18], rax
mov dword [rbx + 0x4a04], 1
movss dword [rbx + 0x4a10], xmm0
movss dword [rbx + 0x4a14], xmm1
movss xmm0, dword [rbx + 0x3a18]
mulss xmm0, dword [0x140045a58]
or dword [rbx + 0x4a00], 0x41
movss dword [rbx + 0x4a60], xmm0
call fcn.140003260
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140014bd0
lea r11, [0x140040a60]
nop dword [rax]
cmp r9b, 0x23
jne 0x140014bb3
cmp byte [r8], r9b
jne 0x140014bb3
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 0x140014ba0
not ecx
call fcn.14000aea0
test rax, rax
je 0x140014c1f
cmp byte [rax + 0xbe], 0
je 0x140014c1f
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5eb8]
movsx r9d, word [rbx + 0x5eb8]
call fcn.140003260
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14000db50
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003cef0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400199e0
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 + 0x6010], 0
lea rbx, [rcx + 0x6018]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140019a87
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140019a3a
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.14001c270
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003e20
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6020]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400e8418]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140019a8f
mov rcx, rbx
call fcn.140003e20
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140019db0
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 [0x1400e8420]
xor ebp, ebp
cmp byte [rbx + 0x5f68], bpl
jne 0x140019e8f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140019e88
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1400036e0
mov rsi, rax
test rax, rax
je 0x140019e88
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140019e14
mov rcx, rax
call fcn.140019fe0
mov r8, qword [0x1400e8420]
test r8, r8
je 0x140019e7f
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019e74
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 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140019f1e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x140019f1e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140019f11
mov rax, qword [0x1400e8420]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.14001a240
lea rdx, [0x140040574]
mov rcx, rdi
mov rsi, rax
call fcn.140003530
mov rdi, rax
test rax, rax
je 0x140019f18
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 0x140019f18
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140019f40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400e8420]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140019fa3
mov qword [rsp], rbx
lea rbx, [0x140040a60]
nop dword [rax]
cmp r9b, 0x23
jne 0x140019f83
cmp byte [r8], r9b
jne 0x140019f83
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 0x140019f70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140019fcf
cmp dword [r8 + 8], eax
je 0x140019fd6
add r8, 0x48
cmp r8, rcx
jne 0x140019fc0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002e530
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14004c040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400e8420]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002e74e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002e74e
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 [0x1400e8420]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002e604
movsx rdx, word [r8 + 0x60f0]
lea rax, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002e5f9
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 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60e8]
test rdi, rdi
je 0x14002e621
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 0x14002e624
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1400456c8]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], 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 0x14002e667
mov rsi, qword [r8 + 0x90]
jmp 0x14002e66a
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 0x14002e695
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400e8420]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
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
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002e70e
inc rbx
cmp rbx, 5
jl 0x14002e6f0
jmp 0x14002e73a
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 0x14002e750
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003cef0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14003dac4
Capabilities:
Parse pe header

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

Function at 0x142573058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1425731df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142573089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14257306f
add dl, dl
jne 0x142573096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425730f6
xor eax, eax
add dl, dl
jne 0x1425730a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425731ad
add dl, dl
jne 0x1425730b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425730c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425730d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425730dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1425730ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14257307e
mov eax, 1
add dl, dl
jne 0x142573106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142573113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425730fb
sub eax, ebx
mov ebx, 1
jne 0x14257314c
mov ecx, 1
add dl, dl
jne 0x14257312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14257313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142573123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14257307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142573168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142573175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14257315d
cmp eax, 0x7d00
jae 0x14257319b
cmp eax, 0x500
jb 0x142573196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14257307e
cmp eax, 0x7f
ja 0x14257319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14257307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1425731d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14257307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003710
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x278
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movups xmm1, xmmword [0x140011418]
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8d, 0x1d0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [0x140011428]
movsd xmm1, qword [0x140011438]
movaps xmmword [rsp + 0x70], xmm0
movsd qword [rsp + 0x80], xmm1
call fcn.140008f40
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000380c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.BtMainWnd
add byte [rax], al
Function at 0x140003c40
Capabilities:
Print debug messages

Disassembly:
push rdi
push r12
push r13
push r14
sub rsp, 0x268
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r13d, r13d
mov rdi, r8
xor edx, edx
lea r9d, [r13 + 4]
xor r8d, r8d
xor ecx, ecx
mov r12d, r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140003e17
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x260], r15
mov dword [rsp + 0x30], 0x20
mov r15d, r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
jne 0x140003e06
mov qword [rsp + 0x290], rbx
mov qword [rsp + 0x298], rbp
mov qword [rsp + 0x2a8], rsi
nop dword [rax]
inc r15d
test rdi, rdi
je 0x140003d8d
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov r9d, 0xff
mov rcx, r14
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x140003dd4
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140003d11
test rax, rax
je 0x140003d8d
lea rcx, [rsp + 0x50]
call fcn.140004f18
mov rcx, rax
call fcn.140004b40
mov rcx, rdi
mov rsi, rax
call fcn.140004f18
mov rcx, rax
call fcn.140004b40
mov rbp, rax
test rsi, rsi
je 0x140003e39
test rax, rax
je 0x140003e39
mov rdx, rax
mov rcx, rsi
call fcn.140004bec
mov rbx, rax
test rax, rax
je 0x140003d78
sub rbx, rsi
sar rbx, 1
lea rbx, [rsp + rbx*2 + 0x50]
mov rcx, rsi
call fcn.140004700
mov rcx, rbp
call fcn.140004700
test rbx, rbx
je 0x140003dd4
lea rcx, str.find_Instance__s__n
mov rdx, rdi
call fcn.1400047f8
lea r8, [rsp + 0x30]
xor r9d, r9d
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.newdev.dll_DiUninstallDevice]
mov r12d, eax
test eax, eax
je 0x140003dc8
lea rcx, str.Delete_Succesed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.Delete_Succesed_n
call fcn.140004e00
lea r8, [rsp + 0x30]
mov edx, r15d
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
je 0x140003cd0
mov rsi, qword [rsp + 0x2a8]
mov rbp, qword [rsp + 0x298]
mov rbx, qword [rsp + 0x290]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov r15, qword [rsp + 0x260]
mov eax, r12d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400046e0
add rsp, 0x268
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rsi
call fcn.140004700
mov rcx, rbp
call fcn.140004700
jmp 0x140003dd4