joyce8/EMBER2024-capa huggingface dataset:
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 [0x140024078]
xor rax, rsp
mov qword [rbp - 8], rax
mov ecx, dword [0x140024970]
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 [0x140024880], eax
jg 0x140008025
cmp dword [0x14002487c], 1
jne 0x140007fbc
xor eax, eax
jmp 0x140007fcc
mov eax, dword [rdi]
cmp dword [0x140024888], eax
jg 0x140007fee
mov eax, dword [0x140024884]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140017790
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, [0x140024888]
call fcn.140017bc8
cmp dword [0x140024888], 0xffffffff
jne 0x140007fc6
mov edx, esi
lea rcx, str.bEnableFrictionlessInChromeExtn
call fcn.140007bf0
mov dword [0x140024884], eax
lea rcx, [0x140024888]
call fcn.140017b68
jmp 0x140007fc6
lea rcx, [0x140024880]
call fcn.140017bc8
cmp dword [0x140024880], 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.14000a1a0
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.1400176e8
nop
mov dword [0x14002487c], ebx
lea rcx, [0x140024880]
call fcn.140017b68
jmp 0x140007faf
Function at 0x140008220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140024078]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bx
call fcn.1400078e0
test eax, eax
je 0x140008335
call fcn.1400077e0
test ax, ax
je 0x140008272
lea rdx, str.SOFTWAREAdobeAdobe_AcrobatDC
lea r8d, [rbx + 0x1f]
jmp 0x14000827f
lea rdx, str.SOFTWAREAdobeAcrobat_ReaderDC
mov r8d, 0x20
lea rcx, [rsp + 0x48]
call fcn.14000a1a0
mov r8d, 0xa
lea rdx, str.AVGeneral
lea rcx, [rsp + 0x48]
call fcn.14000a020
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edi, 1
mov r9d, edi
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008335
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008335
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x30], ebx
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.bChromeExtnRepromptDone
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140008329
cmp dword [rsp + 0x30], edi
cmove ebx, edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14000837b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008375
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008375
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176e8
nop
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140017790
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400083a0
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 [0x140024078]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ecx, dword [0x140024970]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140024890], eax
jg 0x14000841a
mov eax, dword [0x14002488c]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140017790
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov dword [0x14002488c], ebx
lea rcx, [0x140024890]
call fcn.140017b68
jmp 0x1400083e1
lea rcx, [0x140024890]
call fcn.140017bc8
cmp dword [0x140024890], 0xffffffff
jne 0x1400083e1
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 0x140008475
lea rdx, str.SOFTWAREPoliciesAdobeAcrobat_Reader_
lea r8d, [rbx + 0x26]
jmp 0x140008482
lea rdx, str.SOFTWAREPoliciesAdobeAdobe_Acrobat_
mov r8d, 0x26
lea rcx, [rsp + 0x48]
call fcn.14000a1a0
mov r8d, 2
lea rdx, [0x14001c654]
lea rcx, [rsp + 0x48]
call fcn.14000a020
mov r8d, 0x1c
lea rdx, str.FeatureLockDowncSharePoint
lea rcx, [rsp + 0x48]
call fcn.14000a020
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 0x140008534
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 0x140008528
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 0x14000857a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008574
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140008574
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176e8
nop
test edi, edi
jne 0x140008594
xor edx, edx
lea rcx, str.bEnableSharePointInChromeExtn
call fcn.140007bf0
test eax, eax
jne 0x140008406
mov ebx, esi
jmp 0x140008406
Function at 0x14000b830
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 [0x140024810]
mov qword [rsp + 0x48], rbx
cmp dword [0x140024714], ebx
jne 0x14000b901
mov eax, dword [0x140024710]
test eax, eax
jne 0x14000b901
mov edx, dword [0x14002471c]
test edx, edx
je 0x14000b899
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140024710]
mov edx, dword [0x14002471c]
test eax, eax
jne 0x14000b901
test edx, edx
jne 0x14000b8aa
call fcn.140002f00
test eax, eax
je 0x14000b8c0
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000b901
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xffffff82
cmp eax, 1
jbe 0x14000b8f7
cmp ecx, 0x78
je 0x14000b8f7
cmp ecx, 1
je 0x14000b8f7
cmp ecx, 0x32
je 0x14000b8f7
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 [0x140024710], 1
test rdi, rdi
jne 0x14000b921
lea rcx, str.GetOpenFileNameW
call fcn.14000b760
mov rdi, rax
test rax, rax
je 0x14000b933
mov qword [0x140024810], rax
mov rcx, r14
mov rax, rdi
call qword [0x14001b808]
mov esi, eax
mov dword [rsp + 0x20], eax
cmp dword [0x140024714], 0
je 0x14000b945
cmp dword [0x140024710], 0
jne 0x14000b972
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x14000b959
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 0x14000b972
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x14000b8e1
Function at 0x14000b980
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 [0x140024818]
mov qword [rsp + 0x48], rbx
cmp dword [0x140024714], ebx
jne 0x14000ba51
mov eax, dword [0x140024710]
test eax, eax
jne 0x14000ba51
mov edx, dword [0x14002471c]
test edx, edx
je 0x14000b9e9
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140024710]
mov edx, dword [0x14002471c]
test eax, eax
jne 0x14000ba51
test edx, edx
jne 0x14000b9fa
call fcn.140002f00
test eax, eax
je 0x14000ba10
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000ba51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xffffff82
cmp eax, 1
jbe 0x14000ba47
cmp ecx, 0x78
je 0x14000ba47
cmp ecx, 1
je 0x14000ba47
cmp ecx, 0x32
je 0x14000ba47
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 [0x140024710], 1
test rdi, rdi
jne 0x14000ba71
lea rcx, str.GetSaveFileNameW
call fcn.14000b760
mov rdi, rax
test rax, rax
je 0x14000ba83
mov qword [0x140024818], rax
mov rcx, r14
mov rax, rdi
call qword [0x14001b808]
mov esi, eax
mov dword [rsp + 0x20], eax
cmp dword [0x140024714], 0
je 0x14000ba95
cmp dword [0x140024710], 0
jne 0x14000bac2
mov edi, ebx
test esi, esi
sete dil
test edi, edi
je 0x14000baa9
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 0x14000bac2
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x14000ba31
Function at 0x14000bad0
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 [0x140024714], ebx
jne 0x14000bb8b
mov eax, dword [0x140024710]
test eax, eax
jne 0x14000bb8b
mov edx, dword [0x14002471c]
test edx, edx
je 0x14000bb2b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140024710]
mov edx, dword [0x14002471c]
test eax, eax
jne 0x14000bb8b
test edx, edx
jne 0x14000bb3c
call fcn.140002f00
test eax, eax
je 0x14000bb52
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000bb8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14000bb81
cmp eax, 0x78
je 0x14000bb81
cmp eax, 1
je 0x14000bb81
cmp eax, 0x32
je 0x14000bb81
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov dword [0x140024710], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x140024714], 0
je 0x14000bbae
cmp dword [0x140024710], 0
jne 0x14000bbdc
mov edi, ebx
test rsi, rsi
sete dil
test edi, edi
je 0x14000bbc3
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 0x14000bbdc
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 0x14000bc00
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14002471c]
mov rbx, rcx
test eax, eax
je 0x14000bc26
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14002471c]
cmp dword [0x140024710], 0
jne 0x14000bc7f
test eax, eax
jne 0x14000bc3c
call fcn.140002f00
test eax, eax
je 0x14000bc50
mov rcx, qword [section..data]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x14000bc7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x14000bc75
cmp eax, 0x78
je 0x14000bc75
cmp eax, 1
je 0x14000bc75
cmp eax, 0x32
je 0x14000bc75
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [0x140024710], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400117f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140024078]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400118ca
cmp byte [rcx + 0x71], 0
je 0x1400118ca
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
mov rax, qword [rax + 0x18]
call qword [0x14001b808]
cmp eax, 0xffffffff
je 0x1400118c6
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 0x14001188b
sub eax, 1
je 0x14001188f
cmp eax, 2
jne 0x1400118c6
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017790
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400118bd
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 0x1400118c6
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140011873
xor al, al
jmp 0x140011873
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017790
add rsp, 0x60
pop rbx
ret
Function at 0x140011e70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140024078]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140011e9d
xor eax, eax
jmp 0x140011ff2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140011ec8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140011ec8
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 0x140011ff2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140011fe5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140011f0b
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 0x140011f36
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 0x140011fea
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 0x140011fa5
sub eax, 1
je 0x140011fa5
cmp eax, 2
jne 0x140011fe5
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 0x140011fea
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140011fd3
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 0x140011fe5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x140011fea
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140017790
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140012920
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 0x140012951
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.0x140012968
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 0x140012990
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012992
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400129c4
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 0x140012a61
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140012a02
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 0x140012a41
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 0x140012a82
cmp rdi, rax
ja 0x140012a10
test rbx, rbx
je 0x140012a61
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 0x140012a64
fidivr word [rbx]
jne 0x14003e9f5
invalid
cmp dword [rbx + 0xa], ebp
pop r9
invalid
Function at 0x140012a90
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.0x140012ac0
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 0x140012ae8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012aea
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012b43
test ecx, ecx
jle 0x140012b23
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 0x140012b43
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012b43
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
invalid