joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403b5f88
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.1403aa854
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 0x1403b6029
cmp ebx, dword [rsp + 0x30]
je 0x1403b6022
test esi, esi
je 0x1403b6022
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1403b5ffd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1403b600a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1403b5fe7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1403b600e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1403b602b
mov eax, 1
jmp 0x1403b602b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1403b675c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1403b677c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140392974
or eax, 0xffffffff
jmp 0x1403b677e
xor eax, eax
add rsp, 0x28
ret

Function at 0x1403b8800
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1404f29c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1403b884a
call fcn.1403929e0
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140392a00
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14038d07c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140386260
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1403b8855
lea eax, [rbx + 1]
jmp 0x1403b8837
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 0x1403b8835
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1403b8837
Function at 0x1403b89a0
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.140394194
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1403b8a2a
cmp byte [rbp - 0x21], r15b
je 0x1403b8a25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1403b8a60
call fcn.1403ae530
test eax, eax
jne 0x1403b8a4c
cmp byte [rbp - 0x21], r15b
je 0x1403b8a44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1403b8a60
cmp byte [rbp - 0x21], r15b
je 0x1403b8a5d
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.140398548
test eax, eax
jne 0x1403b8b00
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140394194
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1403b8a9f
cmp byte [rbp - 0x21], r15b
je 0x1403b8ad4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1403b8ad4
call fcn.1403ae530
test eax, eax
jne 0x1403b8ac0
cmp byte [rbp - 0x21], r15b
je 0x1403b8ab9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1403b8ad4
cmp byte [rbp - 0x21], r15b
je 0x1403b8ad1
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.140398548
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1403b8b00
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1403b8b03
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1403b8b11
mov rcx, rdi
call fcn.1403aabb4
cmp byte [rbp + 0x3f], r15b
je 0x1403b8b20
mov rcx, qword [rbp + 0x27]
call fcn.1403aabb4
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 0x1403bcde0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1403bce08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1403bce08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003ee0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x78
movabs rax, 0x5989cc216beceeb4
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
movabs rax, 0x1e4841f2263015ed
mov qword [rsp + 0x28], rax
movabs rax, 0x77ecb840079983f1
vmovdqu xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x1e4841f22630768e
mov qword [rsp + 0x48], rax
vpxor xmm1, xmm0, xmmword [rsp + 0x40]
vmovdqu xmmword [rsp + 0x40], xmm1
call fcn.140004120
mov r8d, 0xb
lea rdx, str.Mar_12_2024
mov rcx, rax
call fcn.140004260
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x20], xmm0
vpxor xmm1, xmm1, xmm1
vmovdqu xmmword [rsp + 0x30], xmm1
vmovups ymm0, ymmword [rax]
vmovups ymmword [rsp + 0x20], ymm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140003fcd
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fc5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fc5
vzeroupper
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
vzeroupper
call fcn.1400ee628
mov rax, qword gs:[0x60]
cmp qword [rsp + 0x38], 0xf
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rsi
lea rsi, [rsp + 0x20]
mov rax, qword [rax + 0x18]
cmova rsi, qword [rsp + 0x20]
mov qword [rsp + 0x70], rdi
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140004087
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140004087
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [r10 + r9*4]
mov ecx, dword [rcx + rdi]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140004082
nop dword [rax]
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140004060
cmp r8d, 0x9a9264ad
je 0x14000408c
test r9d, r9d
jne 0x140004040
mov rax, qword [rax]
jmp 0x140004010
mov edx, dword [rbx + 0x24]
mov rcx, rsi
add rdx, r10
movzx r8d, word [rdx + r9*2]
mov edx, dword [rbx + 0x1c]
add rdx, r10
mov eax, dword [rdx + r8*4]
add rax, r10
vzeroupper
call rax
mov rdx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
cmp rdx, 0xf
jbe 0x140004101
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040fc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400040fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ee628
mov al, 1
add rsp, 0x78
ret
Function at 0x140004ab0
Capabilities:
Read .ini file

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], r9
mov rdi, r8
lea r9, [rsp + 0x80]
mov dword [rsp + 0x20], 0x40
lea r8, [0x140111a2a]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140004bf6
mov qword [rsp + 0xd8], rbp
lea r8, [rsp + 0x40]
mov qword [rsp + 0xe0], rsi
lea rdx, [rsp + 0x60]
movabs rsi, 0x1e4841f2263015ed
mov qword [rsp + 0xe8], r14
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x80]
movabs rbp, 0x5989cc216beceeb4
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rbp
movabs r14, 0x5989cc216becee98
vmovdqu xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x30], r14
vpxor xmm1, xmm0, xmmword [rsp + 0x30]
vmovdqu xmmword [rsp + 0x60], xmm1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
test rax, rax
je 0x140004bd0
mov qword [rsp + 0xd0], rbx
xor ebx, ebx
nop dword [rax]
cmp rbx, 4
jge 0x140004bc8
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x40]
vcvtsd2ss xmm1, xmm0, xmm0
vmovss dword [rdi + rbx*4], xmm1
mov qword [rsp + 0x38], rsi
lea rdx, [rsp + 0x70]
vmovdqu xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x50], rbp
xor ecx, ecx
mov qword [rsp + 0x58], rsi
vpxor xmm1, xmm0, xmmword [rsp + 0x50]
vmovdqu xmmword [rsp + 0x70], xmm1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
inc rbx
test rax, rax
jne 0x140004b70
mov rbx, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xe8]
mov eax, 1
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
xor eax, eax
add rsp, 0xc0
pop rdi
ret
Function at 0x14000d780
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 0x14000d7a8
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 0x14000d7ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000d7d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000d829
test ecx, ecx
jle 0x14000d809
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 0x14000d829
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000d829
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 0x14000d850
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000d881
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14000d89f
mov rbp, qword [rsp + 0x40]
mov rsi, 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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d8bb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d8bd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d8f9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000d98e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000d934
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 0x14000d96e
nop dword [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 0x14000d98e
cmp rbx, rax
ja 0x14000d940
test rbx, rbx
je 0x14000d98e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000ddd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000ddf4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000de2b
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x14000de2b
mov rcx, rbx
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
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14000df5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000de6e
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 0x14000de99
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
cmove edi, ecx
mov eax, edi
jmp 0x14000df61
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14000df0e
sub eax, 1
je 0x14000df0e
cmp eax, 2
jne 0x14000df5c
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x14000df61
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14000df3f
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000df5c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000df61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14000e310
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000e3d9
cmp byte [rcx + 0x71], 0
je 0x14000e3d9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000e3cc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14000e388
sub eax, 1
je 0x14000e38c
cmp eax, 2
jne 0x14000e3cc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000e3ba
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000e3cc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14000f990
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x80
movabs rdx, 0x5989cc216beceeb4
movabs rcx, 0x1e4841f2263015ed
mov qword [rsp + 0x38], rcx
movabs rax, 0x1e4841f25f51799f
mov qword [rsp + 0x58], rax
movabs r8, 0x3cff834d0a888bf9
mov qword [rsp + 0x30], rdx
movabs rax, 0x921159a3116f880e
vmovdqu xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x6d292db15f51799f
mov qword [r11 - 0x20], rax
movabs rax, 0x921159a3116f887d
mov qword [rsp + 0x38], rcx
movabs rcx, 0xaaff9d2c66260147
mov qword [r11 - 0x18], rax
mov rax, qword [0x1401d2340]
mov qword [r11 - 0x10], rcx
mov qword [rsp + 0x50], r8
vpxor xmm1, xmm0, xmmword [rsp + 0x50]
vmovdqu xmmword [rsp + 0x50], xmm1
mov qword [r11 - 0x28], r8
vmovups ymm1, ymmword [rsp + 0x60]
vmovups ymmword [rsp + 0x60], ymm1
vmovdqu xmm2, xmmword [rsp + 0x70]
mov qword [rsp + 0x30], rdx
lea rdx, [r11 - 0x38]
vpxor xmm1, xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
lea rcx, [r11 - 0x28]
vpxor xmm0, xmm2, xmmword [rsp + 0x40]
vmovdqu xmmword [rsp + 0x70], xmm0
vmovdqu xmmword [rsp + 0x60], xmm1
vzeroupper
call rax
xor ecx, ecx
mov qword [rsp + 0x90], 0
mov rsi, rax
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x90]
lea r9, [0x1400f59a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400f59b0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword gs:[0x60]
mov r14d, eax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop word [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x14000fb57
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x14000fb57
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rax, [rbx + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x14000fb52
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x14000fb30
cmp r8d, 0xf50944d9
je 0x14000fb5c
test r9d, r9d
jne 0x14000fb10
mov rcx, qword [rcx]
jmp 0x14000fae0
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [0x1401d2398]
add rax, r10
mov rcx, rsi
call rax
mov ecx, dword [0x1401d2398]
mov r8b, 1
mov rdx, rsi
call fcn.14000f2d0
test r14d, r14d
jne 0x14000fbb4
mov rcx, qword [rsp + 0x90]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000fbe0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Get process filename
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x80
movabs rdx, 0x5989cc216beceeb4
movabs rcx, 0x1e4841f2263015ed
mov qword [rsp + 0x38], rcx
movabs rax, 0x1e4841f25f51799f
mov qword [rsp + 0x58], rax
movabs r8, 0x3cff834d0a888bf9
mov qword [rsp + 0x30], rdx
movabs rax, 0x921159a3116f880e
vmovdqu xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x6d292db15f51799f
mov qword [r11 - 0x20], rax
movabs rax, 0x921159a3116f887d
mov qword [rsp + 0x38], rcx
movabs rcx, 0xaaff9d2c66260147
mov qword [r11 - 0x18], rax
mov rax, qword [0x1401d2340]
mov qword [r11 - 0x10], rcx
mov qword [rsp + 0x50], r8
vpxor xmm1, xmm0, xmmword [rsp + 0x50]
vmovdqu xmmword [rsp + 0x50], xmm1
mov qword [r11 - 0x28], r8
vmovups ymm1, ymmword [rsp + 0x60]
vmovups ymmword [rsp + 0x60], ymm1
vmovdqu xmm2, xmmword [rsp + 0x70]
mov qword [rsp + 0x30], rdx
lea rdx, [r11 - 0x38]
vpxor xmm1, xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
lea rcx, [r11 - 0x28]
vpxor xmm0, xmm2, xmmword [rsp + 0x40]
vmovdqu xmmword [rsp + 0x70], xmm0
vmovdqu xmmword [rsp + 0x60], xmm1
vzeroupper
call rax
xor ecx, ecx
mov qword [rsp + 0x90], 0
mov rsi, rax
call qword [sym.imp.ole32.dll_CoInitialize]
xor edx, edx
lea rax, [rsp + 0x90]
lea r9, [0x1400f59a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400f59b0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword gs:[0x60]
mov r14d, eax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop word [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x14000fda7
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x14000fda7
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rax, [rbx + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x14000fda2
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x14000fd80
cmp r8d, 0xf50944d9
je 0x14000fdac
test r9d, r9d
jne 0x14000fd60
mov rcx, qword [rcx]
jmp 0x14000fd30
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [0x1401d2398]
add rax, r10
mov rcx, rsi
call rax
mov ecx, dword [0x1401d2398]
xor r8d, r8d
mov rdx, rsi
call fcn.14000f2d0
test r14d, r14d
jne 0x14000fe04
mov rcx, qword [rsp + 0x90]
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret