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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov esi, ecx
mov edi, r15d
test ecx, ecx
je 0x14001345c
lea rax, [rbp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareAdobeAdobe_AcrobatDCSecurity
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001345c
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x40], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14001d4f4]
mov dword [rbp + 0x30], r15d
mov dword [rbp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140013452
cmp dword [rbp + 0x30], r15d
jne 0x140013452
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x48]
mov qword [rbp + 0x48], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesAdobeAdobe_AcrobatDCFeatureLockDown
mov rcx, 0xffffffff80000002
mov ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400134e5
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x30], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.bEnableATL7Compat
mov dword [rbp + 0x38], r15d
mov dword [rbp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400134db
cmp dword [rbp + 0x30], 4
jne 0x1400134db
mov eax, 1
cmp dword [rbp + 0x38], eax
cmove ebx, eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001352d
lea rdx, str.SetProcessDEPPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001352d
test esi, esi
je 0x14001351e
mov ecx, ebx
xor ecx, 1
lea ecx, [rcx*2 + 1]
jmp 0x140013521
mov ecx, r15d
call qword [0x14001b808]
mov edi, eax
test eax, eax
jne 0x1400135a8
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14001354a
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.NtSetInformationProcess
mov qword [rsp + 0x38], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x1400135a3
lea ebx, [rbx*4 + 9]
test esi, esi
jne 0x140013577
mov ebx, 2
mov dword [rbp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
lea r8, [rbp + 0x30]
mov rcx, rax
mov rax, r14
lea edx, [r9 + 0x1e]
call qword [0x14001b808]
test eax, eax
mov edi, r15d
setns dil
mov r14, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400145d0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
lea rcx, [0x14001ce54]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, 1
call fcn.1400133b0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
je 0x140014684
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 4]
call fcn.1400132d0
test al, al
je 0x140014684
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400132d0
test al, al
jne 0x140014684
mov dword [rsp + 0x80], 2
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__get_heap_handle]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rbx, rax
test rdi, rdi
je 0x140014666
mov r9d, 4
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
test rbx, rbx
je 0x140014684
mov r9d, 4
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
cmp eax, 0xffffffff
je 0x1400147d0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
mov edx, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__setmode]
cmp eax, 0xffffffff
je 0x1400147d0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400135c0]
xor esi, esi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140014713
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor edx, edx
lea r9, [0x1400132b0]
xor ecx, ecx
lea r8d, [rdx + 0x64]
call qword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x1400248c0], 0x258
mov rdi, rax
jae 0x14001479d
nop dword [rax]
nop dword [rax + rax]
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14001477d
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp qword [0x140024800], rsi
je 0x140014791
mov dword [0x1400248c0], esi
call fcn.14000ffe0
cmp dword [0x1400248c0], 0x258
jb 0x140014750
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
call qword [sym.imp.ole32.dll_CoUninitialize]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.140009c90
mov rsi, qword [rsp + 0x70]
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x411c80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411e26
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c800
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x411ceb
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x411d00
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x411d25
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x411d39
cmp rbx, 0x1000
jae 0x411cf5
nop dword [rax]
jmp 0x411da9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x411d4d
xor edx, edx
jmp 0x411da0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c800
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop dword [rax]
test dl, dl
jne 0x411d2f
jmp 0x411d14
call fcn.00458a60
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00430c00
lea rax, [0x0046ceba]
mov ebx, 0x18
call fcn.00431500
mov rax, qword [rsp + 0x38]
call fcn.00431200
lea rax, [0x0046cf62]
mov ebx, 0x19
call fcn.00431500
mov rax, qword [rsp + 0x30]
nop
call fcn.00431200
call fcn.00430e60
call fcn.00430c80
lea rax, [0x0046e2c5]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.0042f2c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00454f20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00411c80
Function at 0x411e60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41208a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042c880
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x411ed9
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x411eec
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x411f10
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
nop
jmp 0x411f24
cmp rbx, 0x1000
jae 0x411ee3
jmp 0x411fa5
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x411f36
xor esi, esi
jmp 0x411f96
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.0042c880
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x411f1a
nop
jmp 0x411f02
call fcn.00458a60
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x412025
call fcn.00430c00
lea rax, [0x0046d0d9]
mov ebx, 0x19
call fcn.00431500
mov rax, qword [rsp + 0x68]
call fcn.00431200
lea rax, [0x0046cf62]
mov ebx, 0x19
call fcn.00431500
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00431200
call fcn.00430e60
call fcn.00430c80
lea rax, [0x0046baf3]
mov ebx, 0xd
nop dword [rax + rax]
call fcn.0042f2c0
cmp eax, 0x5af
je 0x411fc8
call fcn.00430c00
lea rax, [0x0046d0d9]
mov ebx, 0x19
nop dword [rax]
call fcn.00431500
mov rax, qword [rsp + 0x38]
call fcn.00431200
lea rax, [0x0046cf62]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00431500
mov eax, dword [rsp + 0x34]
call fcn.00431200
call fcn.00430e60
call fcn.00430c80
lea rax, [0x0046de21]
mov ebx, 0x1f
call fcn.0042f2c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00454f20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00411e60
Function at 0x419640
Capabilities:
Hash data using murmur3

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
cmp byte [0x0051acce], 0
jne 0x41972f
mov rdx, qword [rax + 0x50]
test byte [rdx], al
nop
nop
nop
sub rbx, qword [rax + 0x18]
mov esi, dword [rax + 0x5c]
imul rbx, rsi
mov rsi, rbx
shr rbx, 0x20
shr rsi, 0x23
and ebx, 7
mov rdi, rcx
mov rcx, rbx
mov r8d, 1
shl r8d, cl
add rdx, rsi
lock or byte [rdx], r8b
nop
nop
mov rcx, qword [rax + 0x18]
nop
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x419725
lea rbx, [0x004ed110]
mov rax, qword [rbx + rax*8]
shr rdx, 0x16
and edx, 0xfffff
mov rdx, qword [rax + rdx*8]
test byte [rdx], al
test byte [rax], al
mov rax, rcx
shr rcx, 0x10
and ecx, 0x3f
movzx ebx, byte [rdx + rcx + 0x11440]
lea rdx, [rdx + rcx]
lea rdx, [rdx + 0x11440]
shr rax, 0xd
and eax, 7
mov rcx, rax
mov eax, 1
shl eax, cl
test al, bl
jne 0x419707
lock or byte [rdx], al
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x1248], rdi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov ecx, 0x40
call fcn.00457560
lea rax, [0x0046f29c]
mov ebx, 0x2c
nop dword [rax + rax]
call fcn.0042f2c0
nop
int3

Function at 0x41bb20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41bc1e
sub rsp, 0x48
mov qword [rsp + 0x40], rbp
lea rbp, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 8], 0
jmp 0x41bb60
mov rax, qword [rsp + 0x50]
mov rcx, rdx
mov rbx, qword [rsp + 0x58]
nop
cmp qword [rsp + 8], rbx
jae 0x41bc0f
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov rax, rcx
call fcn.0041c6e0
nop dword [rax]
test rax, rax
je 0x41bc0f
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x30], xmm15
lea rcx, [0x0041bc60]
mov qword [rsp + 0x10], rcx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rbx
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rbx, [rsp + 0x10]
mov qword [rsp], rbx
call fcn.00454de0
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x60]
test rdx, rdx
jne 0x41bbfd
xor eax, eax
jmp 0x41bc07
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x60]
test al, al
je 0x41bb52
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00454f20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0041bb20
Function at 0x43d720
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x43d88a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x43d738
cmp edx, ecx
jne 0x43d878
nop dword [rax]
test rsi, rsi
jne 0x43d878
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x43d794
nop
call fcn.00458ec0
xorps xmm15, xmm15
mov r14, qword [0x0051aea0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.0043d620
mov rcx, qword [0x004c8028]
mov rdx, qword [0x004c8020]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x43d873
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x43d868
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x004c89d0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x004c89d0], rbx
nop
mov edx, 1
lea rsi, [0x004c89d8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x43d857
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x0046ed5f]
mov ebx, 0x28
call fcn.0042f2c0
mov rcx, rax
mov rax, rsi
call fcn.00457540
call fcn.0042d980
lea rax, [0x0046e613]
mov ebx, 0x23
call fcn.0042f2c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00454f20
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0043d720
Function at 0x140001c90
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.0x140001cb1
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 0x140001cde
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001ce0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001d39
test ecx, ecx
jle 0x140001d19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140004c33
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 0x140001d39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001d39
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 0x140001d60
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 0x140001d82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001d91
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 0x140001db4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001db6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001df2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140004c33
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 0x140001e8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001e2d
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 0x140001e6e
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 0x140001e8e
cmp rbx, rax
ja 0x140001e40
test rbx, rbx
je 0x140001e8e
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 0x1400022b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009038]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400022dd
xor eax, eax
jmp 0x140002449
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002317
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002317
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 0x140002449
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000243c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000235a
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 0x140002385
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 0x140002441
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 0x1400023f4
sub eax, 1
je 0x1400023f4
cmp eax, 2
jne 0x14000243c
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 0x140002441
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002422
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 0x14000243c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002441
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003d80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002940
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002a13
cmp byte [rcx + 0x71], 0
je 0x140002a13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002a0f
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 0x1400029d4
sub eax, 1
je 0x1400029d8
cmp eax, 2
jne 0x140002a0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002a06
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 0x140002a0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400029bc
xor al, al
jmp 0x1400029bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d80
add rsp, 0x60
pop rbx
ret

Function at 0x14000477c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400047c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400047c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400047c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400047c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400047c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400047c8
xor al, al
add rsp, 0x28
ret