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

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x180000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x180153150
cmp rax, rdi
jae 0x1801532c8
movzx r8d, byte [rax]
test r8b, r8b
je 0x1801532c8
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x22e7b8]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x180153186
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x18015319e
movzx r15d, byte [rcx]
jmp 0x1801531a1
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1801531b0
movzx r14d, byte [rcx]
jmp 0x1801531b3
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1801531c1
movzx ebp, byte [rcx]
jmp 0x1801531c4
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x22e7d8]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x22e808]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x22e7f0]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, pe_nt_image_headers64
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x22e820]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1801532ba
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x180153142
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x180153340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x180153557
mov qword [r11 + 0x18], rbp
lea rbp, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x18015339e
cmp r8, rsi
jae 0x180153534
movzx edx, byte [r8]
test dl, dl
je 0x180153534
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x22e7b8]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x1801533d2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x1801533eb
movzx r13d, byte [rax]
jmp 0x1801533ee
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1801533fd
movzx r12d, byte [rax]
jmp 0x180153400
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x18015340f
movzx r15d, byte [rax]
jmp 0x180153412
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x22e7d8]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x22e808]
shr r11d, 2
shr ebp, cl
mov ecx, pe_nt_image_headers64
cmp ebp, dword [r10 + rax + 0x22e7f0]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x22e820]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x180153516
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x180000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x180153390
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x18015356d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180155600
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x18022f200]
call fcn.180151df0
mov rbx, rax
test rax, rax
je 0x18015578d
mov qword [rsp + 0x30], rsi
mov rcx, rax
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18015577a
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 0x18015577a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18015577a
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18015577a
cmp rdi, 0xffffffffffffffff
je 0x18015577a
mov rcx, rdi
call fcn.180155de0
mov rsi, rax
test rax, rax
je 0x18015577a
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 0x1801556d7
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp fcn.180155e90
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1801556ed
mov rdx, rdi
mov rcx, rsi
call fcn.1801557a0
mov r8, qword [0x1802eec40]
test r8, r8
je 0x18015575a
movsx rdx, word [r8 + 0x6228]
lea rcx, [r8 + 0x622c]
mov r9d, dword [r8 + 0x3fc0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je case.default.0x180155773
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 + 0x6228], cx
movsx rax, cx
lea rcx, [r8 + 0x622c]
lea rcx, [rcx + rax*8]
xor eax, eax
mov dword [rcx], r9d
mov dword [rcx + 4], eax
inc word [rcx + 6]
inc dword [r8 + 0x6224]
mov rdx, qword [0x1802eec50]
mov rcx, rsi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [case.0x180155f0f.0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180155cf0
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 + 0x6148], 0
lea rbx, [rcx + 0x6150]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180155d93
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x180155d46
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.180167950
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180167090
mov eax, dword [rbx]
lea rcx, [0x1802eec48]
mov r9, qword [rdi + 0x6148]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x6158]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180155d9b
mov rcx, rbx
call fcn.180167090
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18015c3e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1802eec40]
lea r10, [0x18022d4c0]
movsxd r9, ecx
mov r8, qword [rax + 0x4078]
lea rbx, [r8 + 0x108]
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
mov eax, r9d
shr rax, 0x18
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov rax, qword [r8]
xor edi, dword [r10 + rcx*4]
not edi
cmp dword [rax + 0x40cc], edi
jne 0x18015c48a
mov r8, r9
mov edx, 4
xor r9d, r9d
mov ecx, edi
call fcn.18014d540
mov r8d, dword [rbx]
mov ecx, dword [rbx + 4]
cmp r8d, ecx
jne 0x18015c4be
inc r8d
test ecx, ecx
je 0x18015c4a7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x18015c4ac
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.180167c40
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801605a0
Capabilities:
Write file on windows

Disassembly:
push r14
push r15
sub rsp, 0x28
mov rax, qword [0x1802eec40]
xor r15d, r15d
mov r14, rcx
mov dword [rax + 0x609c], r15d
test rcx, rcx
je 0x1801606d0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rsi, qword [0x1802eec40]
mov qword [rsp + 0x20], rdi
lea rdi, [rsi + 0x60a0]
mov dword [rsi + 0x609c], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x18016060e
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.180167950
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x180160624
mov edx, 8
mov rcx, rdi
call fcn.180167950
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
mov rbx, qword [rsi + 0x60b8]
movsxd rax, dword [rsi + 0x60b0]
lea rcx, [rax + rax*8]
lea rbp, [rbx + rcx*8]
cmp rbx, rbp
je 0x180160665
nop dword [rax]
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call qword [rbx + 0x38]
add rbx, 0x48
cmp rbx, rbp
jne 0x180160650
mov eax, dword [rdi]
lea rdx, [0x18022f204]
test eax, eax
lea rdi, [0x1802eec48]
lea ecx, [rax - 1]
mov rax, qword [rsi + 0x60a8]
cmove ecx, r15d
test rax, rax
movsxd rbp, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.180151df0
mov rsi, qword [rsp + 0x50]
mov rbx, rax
test rax, rax
je 0x1801606c1
mov r9, rax
mov r8, rbp
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
ret
Function at 0x180191de0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
xor edx, edx
jmp 0x180191df0
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x1802c2700]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rcx
call fcn.180151320
mov qword [rsp + 0x30], 2
lea rcx, str.1.91.1_WIP
mov qword [rsp + 0x28], 0x14
mov edx, 0x38f8
mov r9d, 8
mov qword [rsp + 0x20], 0x10
mov r8d, 0x484
mov rsi, rax
call fcn.18014d4b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180191fee
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180191fee
mov qword [rsp + 0xa0], rbx
mov ecx, 0x50
mov qword [rsp + 0xa8], rdi
call fcn.180155de0
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x180191eb9
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x180191ebc
mov rdi, rbx
or dword [rsi + 4], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
call fcn.180150e40
test rax, rax
je 0x180191f09
call fcn.180151320
mov rsi, qword [rax + 0x90]
jmp 0x180191f0c
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 0x180191f37
mov dword [rsi + 0x2c], ebx
call fcn.180151690
mov rcx, qword [rdi]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x28], rcx
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x80], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x180191fae
inc rbx
cmp rbx, 5
jl 0x180191f90
jmp 0x180191fda
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 + 0xa8]
mov al, 1
mov rbx, qword [rsp + 0xa0]
jmp 0x180191ff0
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180199d30
mov rbp, qword [rsp + 0xb0]
add rsp, 0x90
pop rsi
ret
Function at 0x180191df0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
xor edx, edx
jmp 0x180191df0
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x1802c2700]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rcx
call fcn.180151320
mov qword [rsp + 0x30], 2
lea rcx, str.1.91.1_WIP
mov qword [rsp + 0x28], 0x14
mov edx, 0x38f8
mov r9d, 8
mov qword [rsp + 0x20], 0x10
mov r8d, 0x484
mov rsi, rax
call fcn.18014d4b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180191fee
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180191fee
mov qword [rsp + 0xa0], rbx
mov ecx, 0x50
mov qword [rsp + 0xa8], rdi
call fcn.180155de0
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x180191eb9
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x180191ebc
mov rdi, rbx
or dword [rsi + 4], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x50]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
call fcn.180150e40
test rax, rax
je 0x180191f09
call fcn.180151320
mov rsi, qword [rax + 0x90]
jmp 0x180191f0c
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 0x180191f37
mov dword [rsi + 0x2c], ebx
call fcn.180151690
mov rcx, qword [rdi]
mov qword [rax + 0x30], rcx
mov qword [rax + 0x28], rcx
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x70], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x78], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x80], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x180191fae
inc rbx
cmp rbx, 5
jl 0x180191f90
jmp 0x180191fda
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 + 0xa8]
mov al, 1
mov rbx, qword [rsp + 0xa0]
jmp 0x180191ff0
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180199d30
mov rbp, qword [rsp + 0xb0]
add rsp, 0x90
pop rsi
ret
Function at 0x1801928a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.180150e40
test rax, rax
je 0x1801928be
call fcn.180151320
mov rbx, qword [rax + 0x90]
jmp 0x1801928c0
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1801928eb
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x180197150
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1802ef2c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1801971b4
mov eax, 0xa
jmp 0x180197247
test esi, esi
je 0x1801971d6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1801971f9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1801971f9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1801971f2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1801971f9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180197b10
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
jmp 0x180197b10
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rsi, rcx
xor edi, edi
call fcn.180197260
cmp qword [0x1802eeca0], rdi
je 0x180197bab
test rsi, rsi
jne 0x180197b7a
cmp dword [0x1802ef2cc], edi
mov r8d, edi
jbe 0x180197bb0
shl bl, 2
nop word [rax + rax]
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x1802ef2c0]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, bl
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x1802ef2cc]
jb 0x180197b50
jmp 0x180197bb0
mov rcx, rsi
call fcn.180197420
cmp eax, 0xffffffff
je 0x180197ba4
shl bl, 2
mov eax, eax
imul rdx, rax, 0x38
mov rax, qword [0x1802ef2c0]
xor bl, byte [rdx + rax + 0x20]
and bl, 4
xor byte [rdx + rax + 0x20], bl
jmp 0x180197bb0
mov edi, 4
jmp 0x180197bb0
mov edi, 2
call fcn.1801975e0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180197bd0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180197c41
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180197c2a
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov ecx, 0x5a
mov r8d, dword [r8 + rbx*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180197c1e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180197bf0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1802eeca0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1801985f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18019862b
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x1802ef2b0]
lea rbp, [rdi + 0x40000000]
cmp rcx, rbp
cmovbe rbp, rcx
sub rbp, 0xfff
test rbx, rbx
je 0x18019866d
nop dword [rax]
cmp rbx, rsi
jb 0x180198665
cmp rbx, rbp
jae 0x180198665
cmp qword [rbx + 8], 0
jne 0x18019876c
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180198650
mov qword [rsp + 0x78], r14
mov r14d, 0x40
mov qword [rsp + 0x80], r15
mov r15, rdi
cmp rdi, rsi
jb 0x1801986d3
nop dword [rax + rax]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, r15
call fcn.1801984e0
mov r15, rax
test rax, rax
je 0x1801986ce
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18019871e
cmp r15, rsi
jae 0x180198690
jmp 0x1801986d3
test rbx, rbx
jne 0x18019871e
cmp rdi, rbp
ja 0x18019875f
nop dword [rax]
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov rcx, rdi
call fcn.180198440
mov rdi, rax
test rax, rax
je 0x18019875f
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18019871e
cmp rdi, rbp
jbe 0x1801986e0
jmp 0x18019875f
xor edx, edx
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], edx
nop word [rax + rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rbx + 8], rcx
add r14, 0x40
add rcx, 0x40
mov rdx, rax
cmp r14, 0xfc0
jbe 0x180198730
mov rax, qword [0x1802ef2b0]
mov qword [rbx], rax
mov qword [0x1802ef2b0], rbx
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret