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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x140
and qword [rsp + 0x58], 0
lea rax, [rax + 0x18]
and qword [rsp + 0x50], 0
mov r15, rdx
and qword [rsp + 0x48], 0
mov rbx, rcx
and qword [rsp + 0x40], 0
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov rcx, r15
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180001af2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r14d, r14d
mov rbp, rax
cmp dword [rsp + 0x180], r14d
jbe 0x180001ade
lea rax, [rsp + 0x188]
mov dword [rsp + 0x60], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov edx, r14d
mov rcx, r15
mov dword [rsp + 0x188], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001acd
cmp dword [rsp + 0x64], 1
jne 0x180001acd
test rbp, rbp
je 0x180001acd
xor edi, edi
cmp dword [rbx], edi
jbe 0x180001a2b
cmp dword [rbx + 8], 0
mov rdx, rbp
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdi*8]
je 0x180001a10
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
jmp 0x180001a16
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
xor ecx, ecx
test eax, eax
sete cl
test ecx, ecx
jne 0x180001acd
inc edi
cmp edi, dword [rbx]
jb 0x1800019f7
test rbp, rbp
je 0x180001acd
mov eax, dword [rbx + 4]
cmp dword [rbx], eax
jne 0x180001a86
add eax, 0x10
mov edi, eax
shl rdi, 3
mov dword [rbx + 4], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [rbx]
mov rdi, rax
mov rsi, qword [rbx + 0x10]
shl rcx, 3
rep movsb byte [rdi], byte [rsi]
mov rdi, qword [rbx + 0x10]
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rdi, eax
add rdi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [rbx]
mov rcx, qword [rbx + 0x10]
mov qword [rcx + rdx*8], rax
mov edx, dword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov rdx, rbp
mov dword [rbx], eax
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
inc r14d
cmp r14d, dword [rsp + 0x180]
jb 0x18000198a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002134
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x148]
sub rsp, 0x248
mov ebx, 1
xor r14d, r14d
mov dword [rbp + 0x1a8], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, 0x9c40
xor edx, edx
mov rcx, rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rsp + 0x30], r14d
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x13880
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [rbp + 0x1a0], r14d
lea r8, [rsp + 0x30]
mov edx, edi
mov rcx, r15
mov r12, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x180002293
mov eax, dword [rsp + 0x30]
xor edi, edi
shr eax, 2
mov dword [rsp + 0x30], eax
test eax, eax
je 0x180002293
mov r8d, dword [r15 + rdi*4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180002287
lea r9, [rbp + 0x1a0]
mov dword [rsp + 0x20], 3
mov r8d, 0x13880
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x18000227e
mov eax, dword [rbp + 0x1a0]
xor ebx, ebx
shr eax, 3
mov dword [rbp + 0x1a0], eax
test eax, eax
je 0x180002278
mov rdx, qword [r12 + rbx*8]
lea r8, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r9d, 0x200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18000226e
movzx edx, word [rbp - 0x80]
mov ecx, 0x7268
movzx eax, dx
sub ax, cx
cmp ax, 0xf
ja 0x18000226e
mov ecx, 0x8801
bt ecx, eax
jb 0x1800022db
inc ebx
cmp ebx, dword [rbp + 0x1a0]
jb 0x18000222d
mov ebx, dword [rbp + 0x1a8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x1800021d6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbp + 0x198]
mov dword [rax], r14d
mov eax, ebx
add rsp, 0x248
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbp + 0x198]
cmp r14d, dword [rax]
jae 0x180002320
mov eax, dword [r15 + rdi*4]
mov r9d, 0x7277
mov r8, qword [rbp + 0x190]
mov ecx, r14d
add rcx, rcx
mov dword [r8 + rcx*8], eax
xor eax, eax
cmp dx, r9w
mov word [r8 + rcx*8 + 4], dx
cmove rax, qword [rbp - 0x7e]
inc r14d
mov qword [r8 + rcx*8 + 8], rax
jmp 0x180002278
xor ebx, ebx
mov dword [rbp + 0x1a8], ebx
jmp 0x18000227e
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
adc cl, byte [rsi - 2]
sal dword [rax], cl
mov byte fs:[rsi], dl
stc
invalid
Function at 0x14002d3f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14004b920], rbx
je 0x14002d43c
cmp rax, rbx
jne 0x14002d42f
mov ebx, 1
mov esi, ebx
jmp 0x14002d441
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002d414
mov ebx, 1
mov eax, dword [0x14004b928]
cmp eax, ebx
jne 0x14002d457
mov ecx, 0x1f
call fcn.1400dc000
jmp 0x14002d4bc
mov eax, dword [0x14004b928]
test eax, eax
jne 0x14002d4b6
mov dword [0x14004b928], ebx
lea r15, [0x140032c30]
lea rdi, [0x140032c18]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14002d4a8
test eax, eax
jne 0x14002d4ac
cmp qword [rdi], 0
je 0x14002d49d
mov rax, qword [rdi]
mov rcx, qword [0x140032bd8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14002d47e
test eax, eax
je 0x14002d4bc
mov eax, 0xff
jmp 0x14002d598
mov dword [0x14004b184], ebx
mov eax, dword [0x14004b928]
cmp eax, ebx
jne 0x14002d4e3
lea rdx, [0x140032c10]
lea rcx, [0x140032be0]
call sub.msvcrt.dll__initterm
mov dword [0x14004b928], 2
test esi, esi
jne 0x14002d4f0
xor eax, eax
xchg qword [0x14004b920], rax
cmp qword [0x14004b930], 0
je 0x14002d524
lea rcx, [0x14004b930]
call fcn.14002da30
test eax, eax
je 0x14002d524
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14004b930]
mov r9, qword [0x140032bd8]
call r9
mov r8, qword [0x14004b198]
mov rdx, qword [0x14004b190]
mov ecx, dword [0x14004b188]
call fcn.1400024d8
mov dword [0x14004b180], eax
cmp dword [0x14004b1a0], 0
jne 0x14002d554
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14004b184], 0
jne 0x14002d569
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14004b180]
jmp 0x14002d598
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14002dac4
add rsp, 0x28
jmp 0x14002d3f0

Function at 0x14002d614
Capabilities:
Print debug messages

Disassembly:
jmp 0x14002d620
push rbx
sub rsp, 0x540
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14002d69d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14002d6bd
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14002d5f0
add rsp, 0x540
pop rbx
ret
Function at 0x1400013e0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.ReadWebPage
xor edi, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x1400015b9
mov r15, rax
cmp qword [rsi + 0x18], 7
jbe 0x140001444
mov rsi, qword [rsi]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov rcx, r15
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
test rax, rax
je 0x14000153c
mov rsi, rax
mov dword [rbp + 0x3dc], 0
mov qword [rbp + 0x3b8], 0
movaps xmm0, xmmword [section..rdata]
movups xmmword [rbp + 0x3c8], xmm0
mov word [rbp + 0x3b8], 0
lea rdi, [rbp - 0x50]
lea r12, [rbp + 0x3dc]
mov r13, qword [sym.imp.WININET.dll_InternetReadFile]
lea rbx, [rbp + 0x3b8]
nop dword [rax + rax]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x400
mov r9, r12
call r13
test eax, eax
je 0x1400014f5
mov eax, dword [rbp + 0x3dc]
test eax, eax
je 0x1400014f5
lea r8, [rax + rbp]
add r8, 0xffffffffffffffb0
mov rcx, rbx
mov rdx, rdi
call fcn.140001660
jmp 0x1400014c0
mov rdi, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call rdi
mov rcx, r15
call rdi
cmp rbx, r14
je 0x14000156e
mov rsi, qword [rbp + 0x3c8]
cmp qword [rbp + 0x3d0], 7
jbe 0x140001523
mov rbx, qword [rbp + 0x3b8]
mov rax, qword [r14 + 0x18]
cmp rax, rsi
jae 0x140001549
mov rcx, r14
mov rdx, rsi
mov r9, rbx
call fcn.140005720
jmp 0x14000156e
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor edi, edi
jmp 0x1400015b9
mov rdi, r14
cmp rax, 7
jbe 0x140001555
mov rdi, qword [r14]
mov qword [r14 + 0x10], rsi
lea r8, [rsi + rsi]
mov rcx, rdi
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], 0
mov rax, qword [rbp + 0x3d0]
cmp rax, 8
jb 0x1400015b6
mov rcx, qword [rbp + 0x3b8]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x1400015b1
mov rdx, rcx
add rdx, 0xfffffffffffffff8
mov rcx, qword [rcx - 8]
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400015cf
add rax, rax
add rax, 0x29
mov rdx, rax
call fcn.1400150b4
mov dil, 1
mov eax, edi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001c40
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400294c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001ce1
lea rdx, str.SeDebugPrivilege
lea r8, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001cd6
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 2
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x48]
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001ce3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015400
mov eax, esi
add rsp, 0x60
pop rsi
ret
Function at 0x140002b00
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x1400294c8]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp edx, 0xffffffff
je 0x140002c2f
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140002b5e
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140002b5e
add ecx, 0xffffffff
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140002c88
cmp qword [rdi + 0x80], 0
je 0x140002c33
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140002b98
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140002c3a
mov byte [rsp + 0x5f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rbp, qword [rcx]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x5f]
mov r8, r14
call qword [rbp + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140002c67
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x140002c1f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140002c86
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], r14
mov eax, 0xffffffff
jmp 0x140002c81
xor esi, esi
jmp 0x140002c88
mov esi, 0xffffffff
jmp 0x140002c88
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov edi, eax
cmp eax, 0xffffffff
cmovne edi, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140015400
mov eax, edi
jmp 0x140002c9a
cmp eax, 3
jne 0x140002c86
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x5f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140015400
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140003160
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14000319b
mov r14, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1400031a3
mov rcx, rbx
mov rdx, rdi
mov r8, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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]
xor r14d, r14d
jmp 0x140003298
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400031f6
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x1400031f6
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140003207
jmp 0x140003295
mov rsi, r14
cmp qword [rbx + 0x80], 0
je 0x140003295
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x140003233
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop word [rax + rax]
cmp rsi, 0x1000
jb 0x140003271
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x140003240
jmp 0x140003295
test rsi, rsi
je 0x140003293
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
jmp 0x140003295
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400032b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1400032e6
mov rcx, rbx
mov rdx, r14
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
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 [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140003337
test rsi, rsi
jle 0x140003337
mov rax, qword [rbx + 0x58]
mov eax, dword [rax]
test eax, eax
jle 0x140003337
movsxd r15, eax
cmp r15, rsi
cmovg r15, rsi
mov rdx, r14
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
mov rdi, rsi
sub rdi, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
movsxd rcx, r15d
add qword [rax], rcx
test rdi, rdi
jg 0x14000333f
jmp 0x14000335f
mov rdi, rsi
test rdi, rdi
jle 0x14000335f
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14000335f
mov edx, 1
mov rcx, r14
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rdi, rax
sub rsi, rdi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140003740
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1400294c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x1400037ec
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x1400037ec
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400037ea
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x140003803
cmp eax, 1
je 0x1400037b7
test eax, eax
jne 0x1400037ea
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x1400037e0
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400037ea
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x1400037ec
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015400
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x1400037ec
Function at 0x140003f30
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x1400294c8]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dx, 0xffff
je 0x14000405f
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140003f8f
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140003f8f
add ecx, 0xffffffff
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 2]
mov qword [rax], rdx
mov word [rcx], si
jmp 0x1400040bd
cmp qword [rdi + 0x80], 0
je 0x140004063
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140003fce
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [rax], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub rdx, rcx
shr rdx, 1
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140004069
mov word [rsp + 0x5e], si
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x60]
lea rdx, [rdi + 0x74]
mov rbp, qword [rcx]
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x5e]
mov r8, r14
call qword [rbp + 0x38]
mov bp, 0xffff
cmp eax, 2
jae 0x140004098
mov rbx, qword [rsp + 0x48]
sub rbx, r15
je 0x140004054
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400040bb
mov byte [rdi + 0x72], 1
cmp qword [rsp + 0x50], r14
jmp 0x1400040b3
xor esi, esi
jmp 0x1400040bd
mov si, 0xffff
jmp 0x1400040bd
mov rdx, qword [rdi + 0x80]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, 0xffff
mov edi, 0xffff
cmovne edi, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140015400
mov eax, edi
jmp 0x1400040cf
cmp eax, 3
jne 0x1400040bb
mov rdx, qword [rdi + 0x80]
movzx ecx, word [rsp + 0x5e]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, 0xffff
mov ebp, 0xffff
cmovne ebp, esi
mov esi, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140015400
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret