joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f0790
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400f07d2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400f0819
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400f0872
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400f0830
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400f08b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14010368a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010368b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400f0880
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400f18a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f18f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f18f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f18f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f18f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f18f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f18f4
xor al, al
add rsp, 0x28
ret
Function at 0x140001510
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.140003340
sub rsp, rax
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor esi, esi
mov qword [rsp + 0x50], rsi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x140001575
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
jmp 0x140001650
mov qword [rsp + 0x38], rsi
cmp qword [rdi + 0x18], 0x10
jb 0x140001584
mov rdi, qword [rdi]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x38]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
jns 0x1400015c2
call qword [sym.imp.ole32.dll_CoUninitialize]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
jmp 0x14000163f
mov dword [rsp + 0x30], esi
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
call qword [rax + 0x18]
mov edi, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140001607
lea r9, [rsp + 0x60]
add r9, rax
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1400021a0
test edi, edi
js 0x140001610
cmp edi, 1
jne 0x1400015c2
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001650
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, rbx
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.1400024e0
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001100
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
jne 0x140001119
xor eax, eax
jmp 0x14000116d
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x20], 0
jne 0x140001142
xor eax, eax
jmp 0x14000116d
mov rcx, qword [rsp + 0x20]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000115d
xor eax, eax
jmp 0x14000116d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x1400014f0
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0x20
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov ecx, dword [rsp + 0x70]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x20]
mov r8d, 0xb1127cfc
mov edx, eax
xor ecx, ecx
call fcn.140001f20
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000154b
xor eax, eax
jmp 0x14000157d
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x70]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
je 0x140001578
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x14000157d
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001f70
add rsp, 0x68
ret

Function at 0x1400017b0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
jmp 0x14000180c
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x20], rax
jae 0x14000188b
imul rax, qword [rsp + 0x20], 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x140001886
lfence
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov edx, eax
call fcn.1400016d0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001886
mov rax, qword [rsp + 0x38]
jmp 0x14000188d
jmp 0x1400017ff
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001910
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
jne 0x14000192f
mov eax, 0xc0000001
jmp 0x140001a2f
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x20], 0
jne 0x14000195e
mov eax, 0xc0000001
jmp 0x140001a2f
mov rcx, qword [rsp + 0x20]
call fcn.1400012c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000197f
mov eax, 0xc0000001
jmp 0x140001a2f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
call fcn.140001ab0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400019b1
mov eax, 0xc0000001
jmp 0x140001a2f
mov rax, qword [rsp + 0x28]
and rax, 0xfff
mov ecx, 0x1000
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
cmp rax, qword [rcx + 0x20]
jae 0x1400019ef
mov rax, qword [rsp + 0x28]
and rax, 0xfff
mov ecx, 0x1000
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x1400019fd
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.1400018a0
xor eax, eax
add rsp, 0x58
ret

Function at 0x140001e00
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
jne 0x140001e1f
mov eax, 0xc0000001
jmp 0x140001f0d
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x20], 0
jne 0x140001e4e
mov eax, 0xc0000001
jmp 0x140001f0d
mov rcx, qword [rsp + 0x20]
call fcn.1400012c0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
call fcn.140001ab0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001e8f
mov eax, 0xc0000001
jmp 0x140001f0d
mov rax, qword [rsp + 0x28]
and rax, 0xfff
mov ecx, 0x1000
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
cmp rax, qword [rcx + 0x20]
jae 0x140001ecd
mov rax, qword [rsp + 0x28]
and rax, 0xfff
mov ecx, 0x1000
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x140001edb
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.140001d50
xor eax, eax
add rsp, 0x58
ret
Function at 0x140005a30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, Ordinal_301
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x130
cmp rdi, 0xffffffffffffffff
je 0x140005af2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140005af2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140005ae9
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x140005ab1
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140005ad3
inc rax
test ecx, ecx
jne 0x140005ac0
mov rcx, rdi
test edx, edx
je 0x140005b15
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005aa4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14007dd50
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x28], 0
setne al
jmp 0x140005af4

Function at 0x140005b30
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, str.ComputerHKEY_CLASSES_ROOTSAPI_OneCore.SpGramCompBackEnd.1CLSID
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140005bc3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.IsBanned
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007dd50
add rsp, 0x78
ret
Function at 0x140007750
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2260
call fcn.14007e4e0
sub rsp, rax
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0x2250], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x2000
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140007863
mov esi, dword [rsp + 0x20]
shr rsi, 3
test rsi, rsi
je 0x140007863
xor edi, edi
nop dword [rax]
mov rbx, qword [rsp + rdi*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x104
lea r8, [rsp + 0x2030]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x14000781d
lea rdx, str.C:WindowsSystem32_
lea rcx, [rsp + 0x2030]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
test rax, rax
jne 0x140007857
lea rdx, str.C:WindowsSysWow64_
lea rcx, [rsp + 0x2030]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
test rax, rax
jne 0x140007857
mov rdx, qword [rsp + rdi*8 + 0x30]
lea r8, [rsp + 0x2140]
mov r9d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x140007857
lea rdx, str..dll
lea rcx, [rsp + 0x2140]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x14000788e
inc rdi
cmp rdi, rsi
jl 0x1400077c0
xor al, al
mov rcx, qword [rsp + 0x2250]
xor rcx, rsp
call fcn.14007dd50
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140005b30
mov al, 1
jmp 0x140007865
Function at 0x140007e90
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
mov edi, ebp
test eax, eax
je 0x140007fa7
nop dword [rax]
mov eax, edi
lea rdx, [rsp + 0x50]
lea rdx, [rdx + rax*2]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rbp
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140007f24
lea rcx, [rsp + 0x30]
call fcn.14001e3e0
nop
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x30]
cmp rdx, qword [rbx + 0x10]
je 0x140007f55
call fcn.14001fcd0
add qword [rbx + 8], 0x20
jmp 0x140007f5e
mov rcx, rbx
call fcn.14001f4a0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140007f9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007f97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007fd3
call fcn.14007ddac
add edi, 4
cmp edi, esi
jb 0x140007f00
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14007dd50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001c6a0
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 0x14001c6c8
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 0x14001c6ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001c6f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001c749
test ecx, ecx
jle 0x14001c729
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 0x14001c749
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001c749
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 0x14001c770
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 0x14001c792
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14001c7a8
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 0x14001c7c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001c7c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001c802
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001c89e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001c83d
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 0x14001c87e
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 0x14001c89e
cmp rbx, rax
ja 0x14001c850
test rbx, rbx
je 0x14001c89e
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 0x14001ccd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001ccfd
xor eax, eax
jmp 0x14001ce69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001cd37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001cd37
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 0x14001ce69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001ce5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001cd7a
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 0x14001cda5
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 0x14001ce61
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 0x14001ce14
sub eax, 1
je 0x14001ce14
cmp eax, 2
jne 0x14001ce5c
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 0x14001ce61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001ce42
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 0x14001ce5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001ce61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007dd50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001d540
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001d613
cmp byte [rcx + 0x71], 0
je 0x14001d613
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14001d60f
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 0x14001d5d4
sub eax, 1
je 0x14001d5d8
cmp eax, 2
jne 0x14001d60f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007dd50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001d606
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 0x14001d60f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001d5bc
xor al, al
jmp 0x14001d5bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007dd50
add rsp, 0x60
pop rbx
ret