joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140023078]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ecx, dword [0x140023970]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140023878], eax
jg 0x140007dfa
mov eax, dword [0x140023874]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400175c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov dword [0x140023874], edi
lea rcx, [0x140023878]
call fcn.140017998
jmp 0x140007dc1
lea rcx, [0x140023878]
call fcn.1400179f8
cmp dword [0x140023878], 0xffffffff
jne 0x140007dc1
mov edi, 1
mov edx, edi
lea rcx, str.bFillnSignInChromeEx
call fcn.140007bf0
xor esi, esi
test eax, eax
je 0x140007f4c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
call fcn.1400078e0
test eax, eax
je 0x140007e55
lea rdx, str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDowncServices
lea r8d, [rdi + 0x42]
jmp 0x140007e62
lea rdx, str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDowncServices
mov r8d, 0x42
lea rcx, [rsp + 0x48]
call fcn.14000a020
mov ebx, edi
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007efe
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007efe
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.bToggleFillSign
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007ef2
cmp dword [rsp + 0x30], ebx
cmove ebx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140007f44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007f3e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007f3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017518
nop
test ebx, ebx
jne 0x140007de6
mov edi, esi
jmp 0x140007de6
Function at 0x140007f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140023078]
xor rax, rsp
mov qword [rbp - 8], rax
mov ecx, dword [0x140023970]
mov rax, qword gs:[0x58]
mov edx, 4
mov rdi, qword [rax + rcx*8]
add rdi, rdx
mov esi, 1
mov eax, dword [rdi]
cmp dword [0x140023880], eax
jg 0x140008025
cmp dword [0x14002387c], 1
jne 0x140007fbc
xor eax, eax
jmp 0x140007fcc
mov eax, dword [rdi]
cmp dword [0x140023888], eax
jg 0x140007fee
mov eax, dword [0x140023884]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400175c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rcx, [0x140023888]
call fcn.1400179f8
cmp dword [0x140023888], 0xffffffff
jne 0x140007fc6
mov edx, esi
lea rcx, str.bEnableFrictionlessInChromeExtn
call fcn.140007bf0
mov dword [0x140023884], eax
lea rcx, [0x140023888]
call fcn.140017998
jmp 0x140007fc6
lea rcx, [0x140023880]
call fcn.1400179f8
cmp dword [0x140023880], 0xffffffff
jne 0x140007faf
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], bx
call fcn.1400078e0
test eax, eax
je 0x140008066
lea rdx, str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDowncServices
lea r8d, [rbx + 0x43]
jmp 0x140008073
lea rdx, str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDowncServices
mov r8d, 0x42
lea rcx, [rbp - 0x28]
call fcn.14000a020
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000813f
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14000813f
mov dword [rbp - 0x3c], 4
mov dword [rbp - 0x38], 4
mov dword [rbp - 0x40], ebx
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.bToggleAdobeDocumentServices
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008100
cmp dword [rbp - 0x40], 1
jne 0x140008100
mov ebx, esi
jmp 0x140008134
lea rax, [rbp - 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
xor r8d, r8d
lea rdx, str.bUpdater
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008134
cmp dword [rbp - 0x40], eax
cmove ebx, esi
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140008183
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000817d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000817d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017518
nop
mov dword [0x14002387c], ebx
lea rcx, [0x140023880]
call fcn.140017998
jmp 0x140007faf
Function at 0x140008220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140023078]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ecx, dword [0x140023970]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140023890], eax
jg 0x14000829a
mov eax, dword [0x14002388c]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400175c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov dword [0x14002388c], ebx
lea rcx, [0x140023890]
call fcn.140017998
jmp 0x140008261
lea rcx, [0x140023890]
call fcn.1400179f8
cmp dword [0x140023890], 0xffffffff
jne 0x140008261
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov ebx, 1
mov dword [rsp + 0x30], ebx
xor esi, esi
mov edi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
call fcn.1400078e0
test eax, eax
je 0x1400082f5
lea rdx, str.SOFTWAREPoliciesAdobeAcrobat_Reader_
lea r8d, [rbx + 0x26]
jmp 0x140008302
lea rdx, str.SOFTWAREPoliciesAdobeAdobe_Acrobat_
mov r8d, 0x26
lea rcx, [rsp + 0x48]
call fcn.14000a020
mov r8d, 2
lea rdx, [0x14001b654]
lea rcx, [rsp + 0x48]
call fcn.140009ea0
mov r8d, 0x1c
lea rdx, str.FeatureLockDowncSharePoint
lea rcx, [rsp + 0x48]
call fcn.140009ea0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400083b4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.bDisableSharePointFeatures
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400083a8
mov edi, esi
cmp dword [rsp + 0x30], esi
setne dil
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400083fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400083f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017518
nop
test edi, edi
jne 0x140008414
xor edx, edx
lea rcx, str.bEnableSharePointInChromeExtn
call fcn.140007bf0
test eax, eax
jne 0x140008286
mov ebx, esi
jmp 0x140008286
Function at 0x14000b6b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
mov rdi, qword [0x140023810]
mov qword [rsp + 0x48], rbx
cmp dword [0x140023714], ebx
jne 0x14000b781
mov eax, dword [0x140023710]
test eax, eax
jne 0x14000b781
mov edx, dword [0x14002371c]
test edx, edx
je 0x14000b719
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140023710]
mov edx, dword [0x14002371c]
test eax, eax
jne 0x14000b781
test edx, edx
jne 0x14000b72a
call fcn.140002f00
test eax, eax
je 0x14000b740
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000b781
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xffffff82
cmp eax, 1
jbe 0x14000b777
cmp ecx, 0x78
je 0x14000b777
cmp ecx, 1
je 0x14000b777
cmp ecx, 0x32
je 0x14000b777
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov dword [0x140023710], 1
test rdi, rdi
jne 0x14000b7a1
lea rcx, str.GetOpenFileNameW
call fcn.14000b5e0
mov rdi, rax
test rax, rax
je 0x14000b7b3
mov qword [0x140023810], rax
mov rcx, r14
mov rax, rdi
call qword [0x14001a808]
mov esi, eax
mov dword [rsp + 0x20], eax
cmp dword [0x140023714], 0
je 0x14000b7c5
cmp dword [0x140023710], 0
jne 0x14000b7f2
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x14000b7d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14000b7f2
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x14000b761
Function at 0x14000b800
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor ebx, ebx
mov esi, ebx
mov dword [rsp + 0x20], ebx
mov rdi, qword [0x140023818]
mov qword [rsp + 0x48], rbx
cmp dword [0x140023714], ebx
jne 0x14000b8d1
mov eax, dword [0x140023710]
test eax, eax
jne 0x14000b8d1
mov edx, dword [0x14002371c]
test edx, edx
je 0x14000b869
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140023710]
mov edx, dword [0x14002371c]
test eax, eax
jne 0x14000b8d1
test edx, edx
jne 0x14000b87a
call fcn.140002f00
test eax, eax
je 0x14000b890
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000b8d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xffffff82
cmp eax, 1
jbe 0x14000b8c7
cmp ecx, 0x78
je 0x14000b8c7
cmp ecx, 1
je 0x14000b8c7
cmp ecx, 0x32
je 0x14000b8c7
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov dword [0x140023710], 1
test rdi, rdi
jne 0x14000b8f1
lea rcx, str.GetSaveFileNameW
call fcn.14000b5e0
mov rdi, rax
test rax, rax
je 0x14000b903
mov qword [0x140023818], rax
mov rcx, r14
mov rax, rdi
call qword [0x14001a808]
mov esi, eax
mov dword [rsp + 0x20], eax
cmp dword [0x140023714], 0
je 0x14000b915
cmp dword [0x140023710], 0
jne 0x14000b942
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x14000b929
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14000b942
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x14000b8b1
Function at 0x14000b950
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x48], rbx
cmp dword [0x140023714], ebx
jne 0x14000ba0b
mov eax, dword [0x140023710]
test eax, eax
jne 0x14000ba0b
mov edx, dword [0x14002371c]
test edx, edx
je 0x14000b9ab
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140023710]
mov edx, dword [0x14002371c]
test eax, eax
jne 0x14000ba0b
test edx, edx
jne 0x14000b9bc
call fcn.140002f00
test eax, eax
je 0x14000b9d2
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000ba0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14000ba01
cmp eax, 0x78
je 0x14000ba01
cmp eax, 1
je 0x14000ba01
cmp eax, 0x32
je 0x14000ba01
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [0x140023710], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x140023714], 0
je 0x14000ba2e
cmp dword [0x140023710], 0
jne 0x14000ba5c
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x14000ba43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14000ba5c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ba80
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14002371c]
mov rbx, rcx
test eax, eax
je 0x14000baa6
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14002371c]
cmp dword [0x140023710], 0
jne 0x14000baff
test eax, eax
jne 0x14000babc
call fcn.140002f00
test eax, eax
je 0x14000bad0
mov rcx, qword [section..data]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000baff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14000baf5
cmp eax, 0x78
je 0x14000baf5
cmp eax, 1
je 0x14000baf5
cmp eax, 0x32
je 0x14000baf5
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x140023710], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140011670
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023078]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001174a
cmp byte [rcx + 0x71], 0
je 0x14001174a
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x14001a808]
cmp eax, 0xffffffff
je 0x140011746
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 0x14001170b
sub eax, 1
je 0x14001170f
cmp eax, 2
jne 0x140011746
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400175c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001173d
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 0x140011746
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400116f3
xor al, al
jmp 0x1400116f3
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400175c0
add rsp, 0x60
pop rbx
ret
Function at 0x140011cf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140023078]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140011d1d
xor eax, eax
jmp 0x140011e72
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140011d48
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140011d48
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 0x140011e72
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140011e65
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140011d8b
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 0x140011db6
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 0x140011e6a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140011e25
sub eax, 1
je 0x140011e25
cmp eax, 2
jne 0x140011e65
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
cmovne ecx, edi
mov eax, ecx
jmp 0x140011e6a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140011e53
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 0x140011e65
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140011e6a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400175c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400127a0
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 0x1400127d1
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 case.default.0x1400127e8
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 qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140012810
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012812
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012844
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x1400128e1
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140012882
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 rdi, 0xfff
jbe 0x1400128c1
nop dword [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 rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140012902
cmp rdi, rax
ja 0x140012890
test rbx, rbx
je 0x1400128e1
mov r9, qword [rsi + 0x80]
mov r8, rdi
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 + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x1400128e4
mov ecx, edi
cld
pop rsi
ret
Function at 0x140012910
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 case.default.0x140012940
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 0x140012968
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001296a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400129c3
test ecx, ecx
jle 0x1400129a3
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 0x1400129c3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400129c3
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
or eax, 0xf0da61fe
jnp 0x14003c910
invalid
push rdx
adc rax, 0x3d3dac1f
invalid
xor byte [rax + 0x4d], al
jo 0x14003c8d0
and dword [rdi], edx
adc edi, dword [rax]
mov bh, 0xf3
jmp 0x14003c98b
int1
scasb al, byte [rdi]
mov edx, 0x3d776869
and eax, 0x61d4590c
in eax, 0xca
pushfq
sbb esi, dword [rbx - 0xb]
push rdx
sbb ecx, esp
jnp 0x14003c9df
jle 0x14003c99d
pop rsi
out 0xd1, al
xchg ecx, eax
add cl, byte [rax + 0x71069871]
invalid
invalid