joyce8/EMBER2024-capa huggingface dataset:
Function at 0x613c1430
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x613c147b
mov eax, 0
jmp 0x613c1509
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
test eax, eax
jne 0x613c14b3
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x613c1509
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
mov rcx, qword [rbp + 0xf0]
call sym.strcmp
test eax, eax
jne 0x613c14d9
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xdc], eax
jmp 0x613c14f0
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x613c14b3
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xdc]
add rsp, 0x160
pop rbp
ret

Function at 0x613c1861
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x613c1915
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x14]
lea rax, [rbp - 0x10]
mov r9, rdx
mov r8d, 0x40
movabs rdx, 0x2540be3ff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp + 8], rax
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x613c192b
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 0x10], 0x416d7369
mov byte [rbp - 0xc], 0
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_revstr
movabs rax, 0x6e53657373696f6e
mov qword [rbp - 0x20], rax
movabs rax, 0x416d73694f7065
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.NETUTILS.dll_revstr
movabs rax, 0x616e537472696e67
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x73695363
mov word [rbp - 0x24], 0x416d
mov byte [rbp - 0x22], 0
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.NETUTILS.dll_revstr
movabs rax, 0x616e427566666572
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x38], 0x73695363
mov word [rbp - 0x34], 0x416d
mov byte [rbp - 0x32], 0
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.NETUTILS.dll_revstr
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
movabs rax, 0x4445434f2e626174
mov qword [rbp - 0x60], rax
movabs rax, 0x7374656d33325c4b
mov qword [rbp - 0x58], rax
movabs rax, 0x646f7773205c7379
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], 0x5c77696e
mov word [rbp - 0x44], 0x433a
mov byte [rbp - 0x42], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.NETUTILS.dll_revstr
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rax, [rbp - 0x60]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x10]
mov rcx, rax
call sym.NETUTILS.dll_ASSnko
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x613c1ba0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x613c8024]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x613c1cba
mov rax, qword [0x613c8028]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x613c1bee
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x613c1ca0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x613c1bd2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x613c1cf2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x613c8028]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x613c8028]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x613c1cd5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x613c1c99
sub eax, 0x40
and eax, 0xffffffbf
je 0x613c1c99
mov r9, rbp
add r9, qword [0x613c8028]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x613c1cc1
add dword [0x613c8024], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x613c1bfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x613c8028]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x613c28b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x613c28c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x613c28d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x613c2911
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x613c2908
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x613c2913
add rax, 0x28
cmp rax, r9
jne 0x613c28f4
xor eax, eax
repz ret

Function at 0x613c29c0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x613c5190]
cmp word [rbx], 0x5a4d
je 0x613c29e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x613c29d4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x613c2c40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x613c8900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x613c88e0]
test rbx, rbx
je 0x613c2c94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x613c2c8b
test rsi, rsi
je 0x613c2c8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x613c2c70
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x613c8900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x41c670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x41c6ca
call fcn.0041efc8
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x41c6ca
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x41c6ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.0041c0f0
test rdi, rdi
mov esi, eax
je 0x41c6ea
test rbx, rbx
je 0x41c6ea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x427317
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0044cf98]
jne 0x4239ca
rol rcx, 0x10
test cx, 0xffff
jne 0x4239c6
repz ret
ror rcx, 0x10
jmp 0x427270
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x004528b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x004529a8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x4272f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x004528b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x427317
mov rax, qword [rsp + 0x88]
mov qword [0x004529a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00452948], rax
mov rax, qword [0x004529a8]
mov qword [0x00452820], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00452930], rax
mov dword [0x00452810], 0xc0000409
mov dword [0x00452814], 1
mov rax, qword [0x0044cf98]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0044cfa0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x004528a8], eax
mov ecx, 1
call fcn.00431a90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0043ff08]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x004528a8], 0
jne 0x42739e
mov ecx, 1
call fcn.00431a90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x4317f0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.004276b0
xor ebx, ebx
cmp qword [0x004532a0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x431921
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x431853
xor eax, eax
jmp 0x431a01
lea rdx, [0x00440ae0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x43184c
mov rcx, rax
call fcn.00427640
lea rdx, [0x00440ad0]
mov rcx, rbp
mov qword [0x004532a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00427640
lea rdx, [0x00440ab8]
mov rcx, rbp
mov qword [0x004532a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00427640
lea rcx, [rsp + 0x30]
mov qword [0x004532b0], rax
call fcn.00425330
test eax, eax
je 0x4318d7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004270b0
cmp dword [rsp + 0x30], 2
jne 0x431921
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00427640
test rax, rax
mov qword [0x004532c0], rax
je 0x431921
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00427640
mov qword [0x004532b8], rax
mov rcx, qword [0x004532b8]
cmp rcx, rsi
je 0x4319b3
cmp qword [0x004532c0], rsi
je 0x4319b3
call fcn.00427710
call rax
test rax, rax
mov rbp, rax
je 0x43197e
mov rcx, qword [0x004532c0]
call fcn.00427710
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x43197e
test byte [rsp + 0x48], 1
jne 0x4319b3
lea rcx, [rsp + 0x34]
call fcn.00425380
test eax, eax
je 0x4319a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.004270b0
cmp dword [rsp + 0x34], 4
jb 0x4319ad
bts edi, 0x15
jmp 0x4319e7
bts edi, 0x12
jmp 0x4319e7
mov rcx, qword [0x004532a8]
cmp rcx, rsi
je 0x4319e7
call fcn.00427710
call rax
test rax, rax
mov rbx, rax
je 0x4319e7
mov rcx, qword [0x004532b0]
cmp rcx, rsi
je 0x4319e7
call fcn.00427710
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004532a0]
call fcn.00427710
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x180358a60
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x2bdba085
lock add ah, byte [rcx]
xchg edi, eax
pop rsp
movabs byte ds:[0x20ab106f88900dcc], al
insb byte [rdi], dx
cli
add al, 0xab
nop
mov edi, 0xaf0c2247
jmp 0x1377f92be
fsub dword [rax - 0x1c]
jns 0x180358a11
push rax
fadd dword [rdi]
ret 0x273a
sbb al, 0x7b
cmpsb byte [rsi], byte [rdi]
add dword [r11], ebp
sbb eax, 0xd4895ce8
mov edi, 0x24183516
lea ecx, [rax + 2]
add bpl, al
jge 0x180358a44
fidiv word [r11]
or al, 0x2f
add bpl, al
jge 0x180358a44
fidiv word [r11]
or al, 0x2f
add al, 0xc8
add bl, byte [rsi*8 - 0x35279af4]
and al, bh
out 0xc, al
shl dword [rax], cl
in eax, 0xd8
pop rax
shr byte [rbx], 1
xor byte [rdx + 0x64], al
movsb byte [rdi], byte [rsi]
jb 0x180358a4f
mov edx, 0x1ca42c88
xor dl, byte [rdx + 0x39]
test al, 0x16
mov ds, word [rax - 0x56e69f98]
add byte [rax - 0x29], bh
sub ch, dh
cmpsd dword [rsi], dword [rdi]
xchg ebp, eax
insb byte [rdi], dx
invalid
Function at 0x140226a30
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 0x140226a58
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 0x140226a7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140226a80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140226ad9
test ecx, ecx
jle 0x140226ab9
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 0x140226ad9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140226ad9
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 0x140226b00
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 0x140226b22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140226b38
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 0x140226b54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140226b56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140226b92
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 0x140226c2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140226bcd
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 0x140226c0e
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 0x140226c2e
cmp rbx, rax
ja 0x140226be0
test rbx, rbx
je 0x140226c2e
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 0x140227090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14022d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1402270bd
xor eax, eax
jmp 0x140227229
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1402270f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1402270f7
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 0x140227229
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14022721c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14022713a
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 0x140227165
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 0x140227221
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 0x1402271d4
sub eax, 1
je 0x1402271d4
cmp eax, 2
jne 0x14022721c
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 0x140227221
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140227202
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 0x14022721c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140227221
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140228140
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1402277f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14022d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1402278c3
cmp byte [rcx + 0x71], 0
je 0x1402278c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1402278bf
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 0x140227884
sub eax, 1
je 0x140227888
cmp eax, 2
jne 0x1402278bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140228140
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1402278b6
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 0x1402278bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14022786c
xor al, al
jmp 0x14022786c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140228140
add rsp, 0x60
pop rbx
ret

Function at 0x140228ac0
Capabilities:
Parse pe header

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