joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa8b210
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa8b21d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa8b22d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa8b215
lea eax, [rcx + 1]
jmp 0xa8b23b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa8b24e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa8b234
sub eax, 3
jb 0xa8b26e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa8b2bd
sar eax, 1
movsxd rbp, eax
jb 0xa8b2a4
jmp 0xa8b27c
add ebx, ebx
jne 0xa8b27a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa8b2a4
inc ecx
add ebx, ebx
jne 0xa8b28a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa8b2a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa8b29d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa8b28c
add ecx, 2
jmp 0xa8b2a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a8b1d2
jmp 0xa8b21d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2e0000
mov dl, 0x6a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa8b309
cmp rsi, rcx
jae 0xa8b311
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa8b2f0
cmp al, 0x8f
ja 0xa8b2f0
cmp byte [rsi - 2], 0xf
je 0xa8b2f6
sub al, 0xe8
cmp al, 1
ja 0xa8b2da
cmp rsi, rcx
jae 0xa8b311
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa8b2e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa8b311
lodsb al, byte [rsi]
jmp 0xa8b2f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x682000]
mov eax, dword [rdi]
or eax, eax
je 0xa8b36e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x68b000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xa8b31e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xa8b368
mov qword [rbx], rax
add rbx, 8
jmp 0xa8b33e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa8b3b2
cmp al, 0xef
ja 0xa8b39a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa8b37a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa8b389
mov eax, dword [rdi]
add rdi, 4
jmp 0xa8b389
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xa8b406
sub rsp, 0xffffffffffffff80
jmp 0x474060
Function at 0x180002af0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x180002b11
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180002b3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180002b40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180002b99
test ecx, ecx
jle 0x180002b79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180002b99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180002b99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x180002bc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180002be2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180002bf1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180002c14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180002c16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180002c52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180002cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180002c8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180002cce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180002cee
cmp rbx, rax
ja 0x180002ca0
test rbx, rbx
je 0x180002cee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180003150
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18000e0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000317d
xor eax, eax
jmp 0x1800032e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800031b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800031b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1800032e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800032dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800031fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180003225
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800032e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180003294
sub eax, 1
je 0x180003294
cmp eax, 2
jne 0x1800032dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800032e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800032c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800032dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1800032e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180008940
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800035a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18000e0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180003673
cmp byte [rcx + 0x71], 0
je 0x180003673
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000366f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180003634
sub eax, 1
je 0x180003638
cmp eax, 2
jne 0x18000366f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180008940
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180003666
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000366f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000361c
xor al, al
jmp 0x18000361c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180008940
add rsp, 0x60
pop rbx
ret
Function at 0x180005b30
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x180014b38], 0
je 0x180005b58
cmp qword [0x18001ab48], 0
je 0x180005b58
cmp qword [0x18000eb28], 0
jne 0x180005d36
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
test rcx, rcx
je 0x180005d41
cmp dword [rcx + 0x118], 0xa
jne 0x180005d41
mov r9, qword [0x18001ab50]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
test r9, r9
jne 0x180005b9e
mov r9d, 1
mov qword [0x18001ab50], r9
mov rdi, qword [rcx + 0x18]
movabs rbp, 0x5dc35dc35dc35e22
mov r11, qword [0x180014b38]
add rdi, 0x20
mov rbx, qword [0x18001ab48]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x28], r14
mov r10, qword [rdi]
mov qword [rsp + 0x20], r15
cmp r10, rdi
je 0x180005cbe
movabs r14, 0x7734773477347734
lea rsi, [0x18001ab50]
movabs r15, 0x5dc35dc35dc35dff
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [r10 + 0x50]
mov rax, r14
movsx ecx, byte [rdx]
test ecx, ecx
je 0x180005c55
nop
imul rax, rax, 0x21
movsxd rcx, ecx
lea rdx, [rdx + 1]
add rax, rcx
movsx ecx, byte [rdx]
test ecx, ecx
jne 0x180005c10
cmp rax, r15
jne 0x180005c37
mov rbx, qword [r10 + 0x20]
mov qword [0x18001ab48], rbx
jmp 0x180005c55
cmp rax, rbp
jne 0x180005c55
mov r11, qword [r10 + 0x20]
mov qword [0x180014b38], r11
mov qword [0x18001ab58], r11
mov qword [0x18001ab60], rbp
xor edx, edx
test r9, r9
je 0x180005c7c
mov r8, qword [r10 + 0x20]
xor ecx, ecx
add rcx, rcx
cmp qword [rsi + rcx*8 + 8], r8
je 0x180005ca8
cmp rax, qword [rsi + rcx*8 + 0x10]
je 0x180005ca8
inc edx
mov ecx, edx
cmp rcx, r9
jb 0x180005c62
mov rcx, qword [r10 + 0x20]
add r9, r9
mov qword [rsi + r9*8 + 8], rcx
mov rcx, qword [0x18001ab50]
add rcx, rcx
mov qword [rsi + rcx*8 + 0x10], rax
mov r9, qword [0x18001ab50]
inc r9
mov qword [0x18001ab50], r9
test r11, r11
je 0x180005cb2
test rbx, rbx
jne 0x180005cbe
mov r10, qword [r10]
cmp r10, rdi
jne 0x180005c00
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
test r11, r11
jne 0x180005cf4
call fcn.180005d50
mov r11, rax
mov qword [0x180014b38], rax
mov qword [0x18001ab58], rax
mov qword [0x18001ab60], rbp
mov rax, qword [0x18000eb28]
mov rbp, qword [rsp + 0x40]
test rax, rax
jne 0x180005d27
lea rcx, str.kernelbase
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r11, qword [0x180014b38]
mov rbx, qword [0x18001ab48]
mov qword [0x18000eb28], rax
test r11, r11
je 0x180005d41
test rbx, rbx
je 0x180005d41
test rax, rax
je 0x180005d41
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x180005d50
Capabilities:
Access peb ldr_data
Check os version
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 0x60]
test rdi, rdi
je 0x180005e24
cmp dword [rdi + 0x118], 0xa
jne 0x180005e24
mov rdi, qword [rdi + 0x18]
add rdi, 0x20
mov r10, qword [rdi]
cmp r10, rdi
je 0x180005e24
mov ebp, 0x5a4d
xor r14d, r14d
mov esi, 0x744e
nop word [rax + rax]
mov rax, qword [r10 + 0x20]
cmp word [rax], bp
jne 0x180005e1c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x180005e1c
cmp dword [rcx + rax + 0x8c], r14d
je 0x180005e1c
mov ecx, dword [rcx + rax + 0x88]
mov r9d, r14d
movzx r8d, r14w
mov r11d, dword [rcx + rax + 0x20]
mov ebx, dword [rcx + rax + 0x18]
add r11, rax
test ebx, ebx
je 0x180005e1c
nop
movzx ecx, r8w
mov edx, dword [r11 + rcx*4]
lea ecx, [r9 + 1]
cmp word [rdx + rax], si
cmovne ecx, r9d
inc r8w
mov r9d, ecx
movzx ecx, r8w
cmp ecx, ebx
jb 0x180005df0
cmp r9d, 0xc8
jg 0x180005e26
mov r10, qword [r10]
cmp r10, rdi
jne 0x180005db0
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x1400025b0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x1400025ba
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.1400025b0
Function at 0x14000b480
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000b4a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000b51c
mov rdi, r14
mov rcx, rbx
call fcn.14000e5c0
test rax, rax
jle 0x14000b4f4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140123190
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000b50c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000b514
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000b4b6
sub r14, rdi
jmp 0x14000b5ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b533
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000b535
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000b567
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140123190
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000b5fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000b5a2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000b5dd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140101ce4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000b5fc
cmp rbp, rax
ja 0x14000b5b0
test rbp, rbp
je 0x14000b5fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140101ce4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x1400370c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x1400370f4
cmp ecx, r10d
jge 0x1400370e2
mov rcx, rbx
call fcn.1400368d0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x14003712e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x140037110
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x140037156
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x140037185
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14003716f
xor dl, dl
jmp 0x140037178
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140037166
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140037132
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400371ef
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x140037209
mov rcx, rbx
call fcn.140036a10
test eax, eax
je 0x1400371e2
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.140123190
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140040c30
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1401940c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rbp + 0x40], rdx
mov r14, qword [0x14022ec18]
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x140040c72
mov rcx, qword [rdx]
movsx eax, byte [rcx]
mov r9d, 0x811c9dc5
test al, al
je 0x140040c93
xor eax, r9d
imul edx, eax, 0x1000193
inc rcx
call fcn.1400025b0
mov r9d, eax
mov ecx, ebx
mov r8d, r9d
shl r8d, cl
mov dword [rbp + 0x48], r8d
add rsi, 0x178
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
mov rdx, rax
cmp byte [rcx + 0x19], 0
jne 0x140040cce
cmp dword [rcx + 0x20], r8d
jae 0x140040cc2
mov rcx, qword [rcx + 0x10]
jmp 0x140040cc8
mov rdx, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140040cb6
cmp byte [rdx + 0x19], 0
jne 0x140040cda
cmp r8d, dword [rdx + 0x20]
jae 0x140040cdd
mov rdx, rax
cmp rdx, rax
jne 0x140040e13
xorps xmm2, xmm2
movups xmmword [rbp - 0x50], xmm2
movups xmmword [rbp - 0x40], xmm2
movups xmmword [rbp - 0x10], xmm2
movups xmmword [rbp], xmm2
mov dword [rbp - 0x38], 2
mov dword [rbp - 0x34], 1
mov dword [rbp - 0xc], 0x7f7fffff
mov dword [rbp], 0x3f800000
mov dword [rbp + 4], 0x3f800000
mov eax, 0xffff
mov word [rbp + 8], ax
mov dword [rbp - 4], 0x200
mov byte [rbp - 0x44], 0
cmp r9d, 0x1cb53977
je 0x140040d83
cmp r9d, 0x64bb4fd9
je 0x140040d69
cmp r9d, 0xde765e85
jne 0x140040e13
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rsp + 0x20], xmm0
lea rax, [0x1401e82c0]
mov dword [rsp + 0x28], 0x3fdd4
jmp 0x140040d9b
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rsp + 0x20], xmm0
lea rax, [0x14019a0d0]
mov dword [rsp + 0x28], 0xe694
jmp 0x140040d9b
movaps xmm0, xmmword [rbp - 0x50]
movaps xmmword [rsp + 0x20], xmm0
lea rax, [0x1401a8770]
mov dword [rsp + 0x28], 0x3fb48
movaps xmm1, xmmword [rbp - 0x40]
movaps xmm0, xmmword [rbp - 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x60], xmm0
xorps xmm3, xmm3
movaps xmm1, xmmword [rbp]
xorps xmm0, xmm0
cvtsi2ss xmm3, rbx
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rbp - 0x80], xmm2
movaps xmmword [rbp - 0x70], xmm2
movaps xmmword [rbp - 0x60], xmm2
mov qword [rsp + 0x20], rax
comiss xmm3, xmm0
jbe 0x140040de7
movss dword [rsp + 0x34], xmm3
lea rax, [0x14017a000]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [r14 + 0x38]
call fcn.140072ef0
mov rbx, rax
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.14001f6d0
mov qword [rax], rbx
lea rdx, [rbp + 0x48]
mov rcx, rsi
call fcn.14001f6d0
mov rbx, qword [rax]
mov rcx, rdi
call fcn.14000e650
mov rax, rbx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400f1a50
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14004ead0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1401940c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14022ec18]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14004ec8e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14004ec8e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call fcn.1400576c0
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
je 0x14004eb5a
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 0x14004eb5d
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140178d58]
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 rax, qword [0x14022ec18]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x14004eba7
mov rsi, qword [rax + 0x90]
jmp 0x14004ebaa
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 0x14004ebd5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14022ec18]
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 0x14004ec4e
inc rbx
cmp rbx, 5
jl 0x14004ec30
jmp 0x14004ec7a
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 0x14004ec90
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f1a50
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret