joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140225b48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140217924
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140225be9
cmp ebx, dword [rsp + 0x30]
je 0x140225be2
test esi, esi
je 0x140225be2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140225bbd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140225bca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140225ba7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140225bce
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140225beb
mov eax, 1
jmp 0x140225beb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140227878
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140336e78]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402278c2
call fcn.1401fecc8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1401fece8
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1401fe6c4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d7af0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402278cd
lea eax, [rbx + 1]
jmp 0x1402278af
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402278ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402278af
Function at 0x140229a7c
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.1401fea18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140229b06
cmp byte [rbp - 0x21], r15b
je 0x140229b01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140229b3c
call fcn.140218dac
test eax, eax
jne 0x140229b28
cmp byte [rbp - 0x21], r15b
je 0x140229b20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140229b3c
cmp byte [rbp - 0x21], r15b
je 0x140229b39
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.14020ac18
test eax, eax
jne 0x140229bdc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401fea18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140229b7b
cmp byte [rbp - 0x21], r15b
je 0x140229bb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140229bb0
call fcn.140218dac
test eax, eax
jne 0x140229b9c
cmp byte [rbp - 0x21], r15b
je 0x140229b95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140229bb0
cmp byte [rbp - 0x21], r15b
je 0x140229bad
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.14020ac18
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140229bdc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140229bdf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140229bed
mov rcx, rdi
call fcn.140218230
cmp byte [rbp + 0x3f], r15b
je 0x140229bfc
mov rcx, qword [rbp + 0x27]
call fcn.140218230
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 0x14022a15c
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.14021c2e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14021c2e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14022a2ac
cmp rax, 0xffffffffffffffff
je 0x14022a2ac
xor edi, edi
test rbp, rbp
jle 0x14022a257
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140218a14
mov rbx, rax
test rax, rax
jne 0x14022a1e4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14022a24d
mov edx, 0x8000
mov ecx, r14d
call fcn.1402153ac
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.14021aa34
cmp eax, 0xffffffff
je 0x14022a22d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14022a1f4
mov edx, r15d
mov ecx, r14d
call fcn.1402153ac
jmp 0x14022a24d
cmp byte [rsi + 0x38], dil
je 0x14022a244
cmp dword [rsi + 0x34], 5
jne 0x14022a244
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14022a24d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140218230
jmp 0x14022a2c0
jns 0x14022a2c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14021c2e4
cmp rax, 0xffffffffffffffff
jne 0x14022a278
cmp byte [rsi + 0x30], dil
je 0x14022a2c0
mov edi, dword [rsi + 0x2c]
jmp 0x14022a2c0
mov ecx, r14d
call fcn.14021e1ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14022a2c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14022a2c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14022a2b9
mov eax, dword [rsi + 0x2c]
jmp 0x14022a2be
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14021c2e4
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 0x140001000
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x2250
call fcn.140043f50
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x2240], rax
mov ebx, ecx
mov r8d, ecx
mov ecx, 0x410
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x14000106d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140002060
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002230]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor eax, eax
jmp 0x140001139
mov qword [rsp + 0x2268], rbp
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov qword [rsp + 0x2270], rsi
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14000111e
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x14000111e
lea rbp, str.GameAssembly.dll
lea rsi, [rsp + 0x30]
mov r9d, 0x104
mov rdx, qword [rsi + rbx*8]
lea rsi, [rsi + rbx*8]
lea r8, [rsp + 0x2030]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test eax, eax
je 0x140001111
lea rdx, [rsp + 0x2030]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rbp + rax*2 + 2]
jne 0x140001111
add rax, 2
cmp rax, 0x11
je 0x14000115a
movzx ecx, word [rdx + rax*2]
cmp cx, word [rbp + rax*2]
je 0x1400010f0
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x1400010b1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbp, qword [rsp + 0x2268]
mov rsi, qword [rsp + 0x2270]
mov rcx, qword [rsp + 0x2240]
xor rcx, rsp
call fcn.1400430a0
mov rbx, qword [rsp + 0x2278]
add rsp, 0x2250
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsi]
jmp 0x140001129
Function at 0x140003800
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 0x14000385d
lea rbx, [0x140047400]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003844
cmp r10, 2
jb 0x140003844
cmp byte [r9], r8b
jne 0x140003844
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 0x140003820
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000389f
lea rbx, [0x140047400]
cmp r8b, 0x23
jne 0x140003883
cmp byte [r9], r8b
jne 0x140003883
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 0x140003870
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003a60
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 0x140003a7e
mov qword [r8], r14
lea rdx, [0x140046f10]
call fcn.1400038b0
mov rbx, rax
test rax, rax
jne 0x140003aa3
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 0x140003bcf
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 0x140003bcf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003bcf
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 0x140003bcf
cmp rdi, 0xffffffffffffffff
je 0x140003bcf
mov rcx, rdi
call fcn.140009590
mov rbp, rax
test rax, rax
je 0x140003bcf
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 0x140003bbc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400546f0]
test r8, r8
je 0x140003bb1
movsx rdx, word [r8 + 0x5498]
lea rcx, [r8 + 0x549c]
mov r9d, dword [r8 + 0x3ff8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140003ba6
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 + 0x5498], cx
movsx rax, cx
lea rcx, [r8 + 0x549c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x5494]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140003bd8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140003bca
mov qword [rsi], rdi
mov rax, rbp
jmp 0x140003bda
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 0x140012f70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x140047400]
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 + 0x4108], ebx
jne 0x140013004
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14001ebe0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d430
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 + 0x5370], 0
lea rbx, [rcx + 0x5378]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001d4d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001d48a
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.14001fff0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400040e0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5370]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5380]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400546e8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001d4df
mov rcx, rbx
call fcn.1400040e0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d800
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 [0x1400546f0]
xor ebp, ebp
cmp byte [rbx + 0x52b8], bpl
jne 0x14001d8df
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001d8d8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003a60
mov rsi, rax
test rax, rax
je 0x14001d8d8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001d864
mov rcx, rax
call fcn.14001da30
mov r8, qword [0x1400546f0]
test r8, r8
je 0x14001d8cf
movsx rdx, word [r8 + 0x5498]
lea rcx, [r8 + 0x549c]
mov r9d, dword [r8 + 0x3ff8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001d8c4
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 + 0x5498], cx
movsx rax, cx
lea rcx, [r8 + 0x549c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x5494]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x52b8], 1
movss xmm0, dword [rbx + 0x52bc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001d96e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x52bc], xmm0
jb 0x14001d96e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001d961
mov rax, qword [0x1400546f0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x52bc], ebp
call fcn.14001dc80
lea rdx, [0x140046f14]
mov rcx, rdi
mov rsi, rax
call fcn.1400038b0
mov rdi, rax
test rax, rax
je 0x14001d968
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 0x14001d968
mov byte [rbx + 0xbc], 1
mov dword [rbx + 0x52bc], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d990
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400546f0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001d9f3
mov qword [rsp], rbx
lea rbx, [0x140047400]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001d9d3
cmp byte [r8], r9b
jne 0x14001d9d3
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 0x14001d9c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x52d0]
not eax
mov r8, qword [r10 + 0x52d8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001da1f
cmp dword [r8 + 8], eax
je 0x14001da26
add r8, 0x48
cmp r8, rcx
jne 0x14001da10
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400328e0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400546f0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140032aff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140032aff
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 [0x1400546f0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1400329b4
movsx rdx, word [r8 + 0x5498]
lea rax, [r8 + 0x549c]
mov r9d, dword [r8 + 0x3ff8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400329a9
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 + 0x5498], cx
movsx rax, cx
lea rax, [rax*8 + 0x549c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5490]
test rdi, rdi
je 0x1400329d1
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 0x1400329d4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x14004c0e8]
mov qword [rsi + 0x90], rax
mov qword [rsi + 0xa0], 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 0x140032a17
mov rsi, qword [r8 + 0xa0]
jmp 0x140032a1a
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 0x140032a45
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400546f0]
mov rcx, qword [rax + 0x4be0]
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 0x140032abf
inc rbx
cmp rbx, 5
jl 0x140032aa1
jmp 0x140032aeb
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 0x140032b01
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400430a0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140038a40
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1400546f0]
mov rdx, qword [rax + 0x4ed0]
cmp ecx, 0xffffffff
jne 0x140038a5a
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 0x140038ad7
mov r10d, dword [rdx]
lea r8, [0x14004c1b9]
movzx eax, word [rdx + 0x78]
lea r11, [0x140047400]
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 0x140038ab3
cmp byte [r8], r9b
jne 0x140038ab3
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 0x140038aa0
not ecx
jmp fcn.140017f60
ret
Function at 0x140043b60
Capabilities:
Parse pe header

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

Disassembly:
call 0x140b24447
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 0x140b242f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b242d7
add dl, dl
jne 0x140b242fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b2435e
xor eax, eax
add dl, dl
jne 0x140b2430d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b24415
add dl, dl
jne 0x140b2431e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2432b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b24338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b24345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b24352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b242e6
mov eax, 1
add dl, dl
jne 0x140b2436e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b2437b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b24363
sub eax, ebx
mov ebx, 1
jne 0x140b243b4
mov ecx, 1
add dl, dl
jne 0x140b24396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b243a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b2438b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b242e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b243d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b243dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b243c5
cmp eax, 0x7d00
jae 0x140b24403
cmp eax, 0x500
jb 0x140b243fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b242e6
cmp eax, 0x7f
ja 0x140b24406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b242e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b2443a
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 0x140b242e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20