joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024084
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400240b4
xor eax, eax
jmp 0x140024177
mov rbp, rbx
cmp word [rax], si
je 0x1400240d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400240c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400240bc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140021f20
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14002411a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400240ad
call fcn.14001e840
mov rdi, rax
test rax, rax
jne 0x140024130
xor ecx, ecx
call fcn.14001b570
jmp 0x14002410f
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140021f20
test eax, eax
jne 0x140024161
mov rcx, rdi
call fcn.14001b570
jmp 0x14002416b
xor ecx, ecx
call fcn.14001b570
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140024194
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002421b
mov rsi, rbx
cmp word [rax], bp
je 0x1400241da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400241c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400241c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e840
mov rdi, rax
test rax, rax
je 0x140024208
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b4c0
mov rbp, rdi
xor ecx, ecx
call fcn.14001b570
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400288a4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140016288
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002892e
cmp byte [rbp - 0x21], r15b
je 0x140028929
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028964
call fcn.140020820
test eax, eax
jne 0x140028950
cmp byte [rbp - 0x21], r15b
je 0x140028948
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028964
cmp byte [rbp - 0x21], r15b
je 0x140028961
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016760
test eax, eax
jne 0x140028a04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140016288
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400289a3
cmp byte [rbp - 0x21], r15b
je 0x1400289d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400289d8
call fcn.140020820
test eax, eax
jne 0x1400289c4
cmp byte [rbp - 0x21], r15b
je 0x1400289bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400289d8
cmp byte [rbp - 0x21], r15b
je 0x1400289d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016760
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028a04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028a07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028a15
mov rcx, rdi
call fcn.14001b570
cmp byte [rbp + 0x3f], r15b
je 0x140028a24
mov rcx, qword [rbp + 0x27]
call fcn.14001b570
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029f9c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d290
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d290
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002a0e9
cmp rax, 0xffffffffffffffff
je 0x14002a0e9
xor edi, edi
test rbp, rbp
jle 0x14002a097
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140020460
mov rbx, rax
test rax, rax
jne 0x14002a024
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002a08d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ac38
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001dfa4
cmp eax, 0xffffffff
je 0x14002a06d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002a034
mov edx, r15d
mov ecx, r14d
call fcn.14001ac38
jmp 0x14002a08d
cmp byte [rsi + 0x38], dil
je 0x14002a084
cmp dword [rsi + 0x34], 5
jne 0x14002a084
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002a08d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b570
jmp 0x14002a0fb
jns 0x14002a0fb
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d290
cmp rax, 0xffffffffffffffff
jne 0x14002a0b5
cmp byte [rsi + 0x30], dil
je 0x14002a0fb
jmp 0x14002a0f1
mov ecx, r14d
call fcn.1400197d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002a0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002a0fb
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002a0f6
mov edi, dword [rsi + 0x2c]
jmp 0x14002a0fb
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d290
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002b240
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002b268
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002b268
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003740
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 0x18000379d
lea rbx, [0x180048050]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003784
cmp r10, 2
jb 0x180003784
cmp byte [r9], r8b
jne 0x180003784
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 0x180003760
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800037df
lea rbx, [0x180048050]
cmp r8b, 0x23
jne 0x1800037c3
cmp byte [r9], r8b
jne 0x1800037c3
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 0x1800037b0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1800039a0
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 0x1800039be
mov qword [r8], r14
lea rdx, [0x180047b20]
call fcn.1800037f0
mov rbx, rax
test rax, rax
jne 0x1800039e3
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 0x180003b0f
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 0x180003b0f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180003b0f
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 0x180003b0f
cmp rdi, 0xffffffffffffffff
je 0x180003b0f
mov rcx, rdi
call fcn.180007420
mov rbp, rax
test rax, rax
je 0x180003b0f
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 0x180003afc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1801b1c60]
test r8, r8
je 0x180003af1
movsx rdx, word [r8 + 0x5438]
lea rcx, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180003ae6
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 + 0x5438], cx
movsx rax, cx
lea rcx, [r8 + 0x543c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x5434]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180003b18
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x180003b0a
mov qword [rsi], rdi
mov rax, rbp
jmp 0x180003b1a
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 0x18000a8c0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000a910
lea r11, [0x180048050]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000a8f3
cmp byte [r8], r9b
jne 0x18000a8f3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18000a8e0
mov rcx, qword [0x1801b1c60]
not eax
movsxd rdx, dword [rcx + 0x4080]
mov r9, qword [rcx + 0x4088]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000a971
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000a969
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000a96c
mov rdx, r8
test rdx, rdx
jne 0x18000a940
cmp r9, r10
je 0x18000a980
cmp dword [r9], eax
jne 0x18000a980
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x1800108d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x180048050]
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 0x180010964
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18001a9c0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180019120
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 0x1800191c7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001917a
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.18001ba10
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180004020
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, [0x1801b1c58]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800191cf
mov rcx, rbx
call fcn.180004020
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800194f0
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 [0x1801b1c60]
xor ebp, ebp
cmp byte [rbx + 0x52a0], bpl
jne 0x1800195cf
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800195c8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1800039a0
mov rsi, rax
test rax, rax
je 0x1800195c8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x180019554
mov rcx, rax
call fcn.180019720
mov r8, qword [0x1801b1c60]
test r8, r8
je 0x1800195bf
movsx rdx, word [r8 + 0x5438]
lea rcx, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1800195b4
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 + 0x5438], cx
movsx rax, cx
lea rcx, [r8 + 0x543c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x5434]
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 0x18001965e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52a4], xmm0
jb 0x18001965e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180019651
mov rax, qword [0x1801b1c60]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52a4], ebp
call fcn.180019980
lea rdx, [0x180047b24]
mov rcx, rdi
mov rsi, rax
call fcn.1800037f0
mov rdi, rax
test rax, rax
je 0x180019658
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 0x180019658
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 0x180019680
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801b1c60]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800196e3
mov qword [rsp], rbx
lea rbx, [0x180048050]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800196c3
cmp byte [r8], r9b
jne 0x1800196c3
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 0x1800196b0
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 0x18001970f
cmp dword [r8 + 8], eax
je 0x180019716
add r8, 0x48
cmp r8, rcx
jne 0x180019700
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x18002d2b0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1801b1040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1801b1c60]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18002d4cf
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18002d4cf
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 [0x1801b1c60]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x18002d384
movsx rdx, word [r8 + 0x5438]
lea rax, [r8 + 0x543c]
mov r9d, dword [r8 + 0x3fe8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x18002d379
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 + 0x5438], cx
movsx rax, cx
lea rax, [rax*8 + 0x543c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5430]
test rdi, rdi
je 0x18002d3a1
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 0x18002d3a4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1801a7f78]
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 0x18002d3e7
mov rsi, qword [r8 + 0x98]
jmp 0x18002d3ea
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 0x18002d415
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1801b1c60]
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 0x18002d48f
inc rbx
cmp rbx, 5
jl 0x18002d471
jmp 0x18002d4bb
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 0x18002d4d1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800427e0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x180037530
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1801b1040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1801b1e10], 0
jne 0x180037556
mov byte [0x1801b1e50], 1
cmp qword [0x1801b1d80], 0xf
lea rdx, [0x1801b1d68]
mov qword [rsp + 0x50], rsi
lea r8, [0x180047b20]
cmova rdx, qword [0x1801b1d68]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x30], 0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x18003762d
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 0x180037622
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test eax, eax
js 0x180037622
jne 0x1800375d4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x18003767a
movsxd rsi, eax
lea rdx, [0x1800466f0]
lea rcx, [rsi + 1]
call fcn.180042e14
mov rdi, rax
test rax, rax
je 0x180037622
xor r8d, r8d
mov byte [rsi + rax], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
je 0x180037656
mov rcx, rdi
call fcn.18004297c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18003d4c0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800427e0
add rsp, 0x40
pop rbx
ret
mov r8, rax
mov rdx, rdi
call fcn.180040010
mov rcx, rdi
mov ebx, eax
call fcn.18004297c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
js 0x18003762d
mov r9b, 1
lea r8, str.shouldDrawHUD
lea rdx, str.General
call fcn.18003d200
xor r9d, r9d
mov byte [0x1801b12d2], al
lea r8, [0x1801a8360]
lea rdx, str.Costumes
call fcn.18003d200
xor r9d, r9d
mov byte [0x1801b1c5a], al
lea r8, [0x1801a8378]
lea rdx, str.Costumes
call fcn.18003d200
xor r9d, r9d
mov byte [0x1801b1c7d], al
lea r8, [0x1801a8380]
lea rdx, str.Costumes
call fcn.18003d200
xor r9d, r9d
mov byte [0x1801b1c5b], al
lea r8, [0x1801a8388]
lea rdx, str.Costumes
call fcn.18003d200
xor r9d, r9d
mov byte [0x1801b1c59], al
lea r8, [0x1801a8390]
lea rdx, str.Costumes
call fcn.18003d200
mov r9b, 1
mov byte [0x1801b1c5f], al
lea r8, str.ng2ShineEnabled
lea rdx, str.Graphics
call fcn.18003d200
mov byte [0x1801b12d1], al
jmp 0x180037639
Function at 0x18003c8d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
test edx, edx
je 0x18003c980
cmp edx, 1
jne 0x18003c976
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1801b12e8], 0
je 0x18003c906
lea rcx, str.d3d12.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18003c957
cmp dword [0x1801b12e4], 0
je 0x18003c921
lea rcx, [0x1801a81c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18003c957
cmp dword [0x1801b12e0], 0
je 0x18003c93c
lea rcx, str.d3d10.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x18003c957
cmp dword [0x1801b12dc], 0
je 0x18003c976
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18003c976
xor eax, eax
lea r8, [0x18003c650]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
mov edx, 1
call qword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
Function at 0x1800445cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180044606
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18004460b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180044654
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180046770]
cmp byte [rcx + rax], 0
je 0x180044654
dec r8
sub rdx, 1
jne 0x18004463a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret