joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cb90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov ebp, r8d
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov eax, dword [0x140036060]
test al, 1
jne 0x14000cbfa
or eax, 1
mov dword [0x140036060], eax
mov qword [0x140036058], 7
mov qword [0x140036050], r14
mov word [0x140036040], r14w
lea rcx, [0x140023120]
call fcn.14000f288
cmp qword [0x140036050], 0
jne 0x14000cd4c
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000d3f0
nop
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPInstall
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14000d670
test eax, eax
je 0x14000cd42
mov word [rsp + 0x70], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x72]
call fcn.140011610
mov dword [rsp + 0x2c8], 0x208
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x2c8]
lea r8, [rsp + 0x70]
lea rdx, str.ProgDir
lea rcx, [rsp + 0x40]
call fcn.14000e2e0
test eax, eax
je 0x14000cd42
cmp word [rsp + 0x70], 0
jne 0x14000cca2
mov r8, r14
jmp 0x14000ccbb
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000ccb0
lea rdx, [rsp + 0x70]
lea rcx, [0x140036040]
call fcn.140006df0
mov edx, 0x5c
or r8, 0xffffffffffffffff
lea rcx, [0x140036040]
call fcn.1400064a0
mov rcx, qword [0x140036050]
dec rcx
cmp rax, rcx
je 0x14000cd09
mov r8d, 1
lea rdx, [0x14002c6e8]
lea rcx, [0x140036040]
call fcn.140007990
test byte [0x1400342a8], 2
je 0x14000cd42
lea r9, [0x140036040]
cmp qword [0x140036058], 8
cmovae r9, qword [0x140036040]
lea r8, str.SynProgDir___s_n
mov edx, 2
lea rcx, str.GetSynRegistryProgDirEx
call fcn.14000db50
nop
lea rcx, [rsp + 0x38]
call fcn.14000d510
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov dword [rsp + 0x30], 1
cmp qword [0x140036050], 0
je 0x14000cdfb
mov r8, rdi
lea rdx, [0x140036040]
lea rcx, [rsp + 0x38]
call fcn.140007690
mov rsi, rax
cmp rbx, rax
je 0x14000cdb8
cmp qword [rbx + 0x18], 8
jb 0x14000cd9d
mov rcx, qword [rbx]
call fcn.14000eb40
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov rdx, rsi
mov rcx, rbx
call fcn.140006880
cmp qword [rsp + 0x50], 8
jb 0x14000cdca
mov rcx, qword [rsp + 0x38]
call fcn.14000eb40
test ebp, ebp
je 0x14000cdfb
cmp qword [rbx + 0x18], 8
jb 0x14000cdda
mov rcx, qword [rbx]
jmp 0x14000cddd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000cdfb
xor r8d, r8d
lea rdx, [0x14002c6ec]
mov rcx, rbx
call fcn.140006df0
nop
cmp qword [rdi + 0x18], 8
jb 0x14000ce0a
mov rcx, qword [rdi]
call fcn.14000eb40
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r14
mov word [rdi], r14w
mov rax, rbx
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e0d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
xor ebx, ebx
mov r14, r9
mov rbp, rdx
mov esi, ebx
test r9, r9
je 0x14000e0f0
mov esi, dword [r9]
test rdx, rdx
je 0x14000e2cc
cmp qword [rsp + 0x80], rbx
je 0x14000e2cc
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x14000e16f
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x30], rcx
test rdi, rdi
je 0x14000e1ba
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000e1ba
test byte [0x1400342a8], 4
je 0x14000e16f
lea r8, str.Couldnt_open_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.14000da50
test r14, r14
je 0x14000e2bb
test byte [0x1400342a8], 4
je 0x14000e19c
lea r8, str.Returning_default_value:_0x_08X_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, esi
mov edx, 3
call fcn.14000da50
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x40]
mov dword [rax], esi
mov eax, 1
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
test byte [0x1400342a8], 4
je 0x14000e1de
lea r8, str.Opened_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.14000da50
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test rdi, rdi
je 0x14000e22b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x14000e25c
test byte [0x1400342a8], 4
je 0x14000e16f
lea r8, str.Error_querying_value:__d_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, ebp
mov edx, 3
call fcn.14000da50
jmp 0x14000e16f
test byte [0x1400342a8], 4
je 0x14000e28d
mov eax, dword [rsp + 0x78]
lea r9, [rsp + 0x80]
lea r8, str.Read_0x_08X_successfully._Type_d._n
lea rcx, str.CRegistryEx::GetDWORD
mov edx, 3
mov dword [rsp + 0x20], eax
call fcn.14000da50
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x14000e2a5
cmp eax, 3
jne 0x14000e2aa
cmp dword [rsp + 0x88], 4
jne 0x14000e2aa
mov ebx, 1
mov eax, ebx
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e2e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
cmp r8, rbx
jne 0x14000e328
lea rdx, str.RegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
mov r8d, 0x126
call fcn.140007840
xor ebp, ebp
mov r13d, ebp
test r15, r15
je 0x14000e4c0
test rsi, rsi
je 0x14000e4c0
test r12, r12
je 0x14000e4c0
mov rcx, qword [rdi + 0x10]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r14
test rcx, rcx
je 0x14000e475
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x14000e39d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000e475
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x14000e3ce
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x14000e440
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.14000eb38
mov r14, rax
test rax, rax
je 0x14000e439
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14000e410
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000e424
mov rcx, r14
mov dword [r12], eax
call fcn.14000eb40
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x14000e475
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14000e452
cmp ecx, 7
jne 0x14000e457
mov ebp, 1
mov eax, ebp
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
test rbx, rbx
je 0x14000e4bc
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14000e480
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x14000e4bc
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rsi + rbx - 2], ax
test ax, ax
jne 0x14000e4a0
mov dword [r12], ecx
mov eax, 1
jmp 0x14000e459
xor eax, eax
jmp 0x14000e459
xor eax, eax
jmp 0x14000e45e
Function at 0x14000e6d0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r14
sub rsp, 0x60
mov rcx, qword [rcx + 0x10]
mov rsi, r9
mov r14d, r8d
mov rbp, rdx
test rcx, rcx
je 0x14000e7b3
test rdx, rdx
je 0x14000e7b3
test r9, r9
je 0x14000e7b3
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rcx
cmp qword [rsp + 0x98], rbx
je 0x14000e774
mov rdx, qword [rsp + 0x98]
lea rax, [r11 + 8]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000e76f
xor eax, eax
mov rbx, qword [rsp + 0x78]
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x90]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x98], rbx
je 0x14000e7aa
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
jmp 0x14000e757
lea r11, [rsp + 0x60]
xor eax, eax
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14002d6a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14002d6d7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14002d6f8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002d6fa
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002d753
test ecx, ecx
jle 0x14002d733
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14002d753
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002d753
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14002d780
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 0x14002d7a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14002d7b8
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 0x14002d7d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002d7d6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x14002d810
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14002d8b7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14002d84b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14002d891
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14002d8d0
cmp rbx, rax
ja 0x14002d860
mov r8, rdi
test rdi, rdi
je 0x14002d8b7
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14002d8ba
Function at 0x14002dce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b2010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002dd0d
xor eax, eax
jmp 0x14002de62
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14002dd38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14002dd38
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14002de62
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002de55
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14002dd7b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14002dda6
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 0x14002de5a
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 0x14002de15
sub eax, 1
je 0x14002de15
cmp eax, 2
jne 0x14002de55
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 0x14002de5a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14002de43
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 0x14002de55
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14002de5a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008f590
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14002e7d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b2010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14002e8a3
cmp byte [rcx + 0x71], 0
je 0x14002e8a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002e89f
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 0x14002e864
sub eax, 1
je 0x14002e868
cmp eax, 2
jne 0x14002e89f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008f590
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14002e896
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 0x14002e89f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002e84c
xor al, al
jmp 0x14002e84c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008f590
add rsp, 0x60
pop rbx
ret
Function at 0x140031c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400b2010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r10, r8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], rcx
cmp rdx, r8
je 0x140031df0
lea rax, [rdx + 0x68]
xor r11d, r11d
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x20], r9
mov ecx, dword [rax - 0x68]
mov dword [r9], ecx
mov ecx, dword [rax - 0x64]
mov dword [r9 + 4], ecx
mov ecx, dword [rax - 0x60]
mov dword [r9 + 8], ecx
mov ecx, dword [rax - 0x5c]
mov dword [r9 + 0xc], ecx
mov ecx, dword [rax - 0x58]
mov dword [r9 + 0x10], ecx
mov ecx, dword [rax - 0x54]
mov dword [r9 + 0x14], ecx
mov ecx, dword [rax - 0x50]
mov dword [r9 + 0x18], ecx
mov ecx, dword [rax - 0x4c]
mov dword [r9 + 0x1c], ecx
mov ecx, dword [rax - 0x48]
mov dword [r9 + 0x20], ecx
mov ecx, dword [rax - 0x44]
mov dword [r9 + 0x24], ecx
movzx ecx, word [rax - 0x40]
mov word [r9 + 0x28], cx
mov ecx, dword [rax - 0x3c]
mov dword [r9 + 0x2c], ecx
mov ecx, dword [rax - 0x38]
mov dword [r9 + 0x30], ecx
mov ecx, dword [rax - 0x34]
mov dword [r9 + 0x34], ecx
mov ecx, dword [rax - 0x30]
mov dword [r9 + 0x38], ecx
mov rcx, qword [rax - 0x2c]
mov qword [r9 + 0x3c], rcx
mov ecx, dword [rax - 0x24]
mov dword [r9 + 0x44], ecx
mov ecx, dword [rax - 0x20]
mov dword [r9 + 0x48], ecx
mov ecx, dword [rax - 0x1c]
mov dword [r9 + 0x4c], ecx
mov ecx, dword [rax - 0x18]
mov dword [r9 + 0x50], ecx
mov rcx, qword [rax - 0x10]
mov qword [r9 + 0x58], rcx
mov r8, qword [rax + 8]
mov qword [rax + 8], r11
mov rdx, qword [rax]
mov qword [rax], r11
mov rcx, qword [rax - 8]
mov qword [rax - 8], r11
mov qword [r9 + 0x60], rcx
mov qword [r9 + 0x68], rdx
mov qword [r9 + 0x70], r8
mov rcx, qword [rax + 0x10]
mov qword [r9 + 0x78], rcx
mov rcx, qword [rax + 0x18]
mov qword [r9 + 0x80], rcx
movzx ecx, word [rax + 0x20]
mov word [r9 + 0x88], cx
movzx ecx, word [rax + 0x22]
mov word [r9 + 0x8a], cx
movzx ecx, word [rax + 0x24]
mov word [r9 + 0x8c], cx
movzx edx, word [rax + 0x26]
mov word [r9 + 0x8e], dx
add r9, 0x90
mov qword [rsp + 0x30], r9
lea rax, [rax + 0x90]
lea rdx, [rax - 0x68]
cmp rdx, r10
jne 0x140031cd0
mov qword [rsp + 0x28], r9
mov rdx, r9
mov rcx, r9
call fcn.14000ea80
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008f590
add rsp, 0x58
ret
Function at 0x140046330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, edx
mov ecx, edx
and r10d, 7
je 0x140046396
mov r8d, dword [rbx + 0x14]
cmp edx, r10d
jge 0x140046384
mov r9, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r9
jb 0x140046360
xor cl, cl
jmp 0x140046369
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
mov ecx, edx
shl eax, cl
add edx, 8
or eax, r8d
mov dword [rbx + 0x10], edx
mov dword [rbx + 0x14], eax
mov r8d, eax
cmp edx, 0x18
jle 0x140046354
mov ecx, r10d
shr r8d, cl
sub edx, r10d
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x10], edx
mov ecx, edx
xor r9d, r9d
test edx, edx
jle 0x1400463ce
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r9d
shr edx, 8
sub ecx, 8
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], edx
test ecx, ecx
jg 0x1400463b0
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x140046402
mov r8, qword [rbx + 8]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x1400463ec
xor dl, dl
jmp 0x1400463f5
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1400463e0
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 qword [rsp + 0x38], rdi
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140046483
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
ja 0x140046483
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14004645d
mov rcx, rbx
call fcn.140045b00
test eax, eax
je 0x140046483
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140060630
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x10], 0x100000
mov r10, rdx
je 0x1400606bb
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140060690
lea r10, [0x14009ce80]
nop dword [rax]
cmp r9b, 0x23
jne 0x140060673
cmp byte [r8], r9b
jne 0x140060673
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 [r10 + rdx*4]
test r9b, r9b
jne 0x140060660
mov rcx, qword [0x1400b2e50]
not eax
cmp dword [rcx + 0x225c], eax
jne 0x1400606a7
mov dword [rcx + 0x2260], eax
cmp dword [rcx + 0x2298], eax
jne 0x14006070d
mov byte [rcx + 0x229c], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x1400b2e50]
mov rax, qword [rbx + 0x2210]
movsxd rcx, dword [rax + 0xc8]
mov rax, qword [rax + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, r10
call fcn.1400646d0
cmp dword [rbx + 0x225c], eax
jne 0x1400606f9
mov dword [rbx + 0x2260], eax
cmp dword [rbx + 0x2298], eax
jne 0x140060708
mov byte [rbx + 0x229c], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x1400646d0
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 0x14006472d
lea rbx, [0x14009ce80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140064714
cmp r10, 2
jb 0x140064714
cmp byte [r9], r8b
jne 0x140064714
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 0x1400646f0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14006476f
lea rbx, [0x14009ce80]
cmp r8b, 0x23
jne 0x140064753
cmp byte [r9], r8b
jne 0x140064753
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 0x140064740
mov rbx, qword [rsp + 8]
not eax
ret