joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140131000
Capabilities:
Execute syscall

Disassembly:
or eax, edx
cmc
rcr byte [rdi + 0x79013691], 1
sti
push rcx
out dx, eax
enter 0xffffffffffff8652, 0xd
adc edi, dword [rdx]
in eax, dx
mov word [rbx + 0x71e23bd0], fs
xchg edi, eax
invalid
xchg r9, r13
mov qword [rsp + 0x20], r13
xchg r9, r13
mov qword [rsp + 0x18], r8
jmp 0x140131015
xchg rdx, r13
mov qword [rsp + 0x10], r13
xchg rdx, r13
xchg r14, rcx
mov qword [rsp + 8], r14
xchg rcx, r14
nop
jmp 0x14013111b
je 0x1401310b4
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
je 0x140131072
jne 0x140131072
lea r10d, [rdx - 0x7086]
jmp rax
jmp 0x140131096
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x14013103a
cmp edx, 0xeb8fbdbf
je 0x140131264
inc r8d
jmp 0x1401310bc
jmp 0x1401310de
lea rax, [r10 + r9*4]
mov ecx, dword [rax + r11]
add rcx, r11
movzx eax, byte [rcx]
inc rcx
test al, al
jmp 0x140131031
nop dword [rax + rax]
mov r9d, r8d
mov edx, 0xaf710d4c
jmp 0x1401310c1
push r14
nop
push 0x1c5bf586
mov qword [rsp], r15
lea rbp, [rsp - 0x2b8]
je 0x140131107
jne 0x140131107
pause
movabs r12, 0x7bb532b8333d79eb
jmp rcx
jmp 0x140131182
push r8
mov qword [rsp], rbp
push rbx
push rdi
nop
sub rsp, 8
mov qword [rsp], r13
je 0x14013116d
jne 0x14013116d
lea r14d, [rcx + 0xd760]
jno 0x14013203f
jns 0x1401303ca
pushfq
rcr edi, 0x88
rcr edx, 0xe
syscall
ret
jmp 0x1401310eb
sub rsp, 0x3b8
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r8d, r13d
xchg r10, rdx
mov rdx, qword [rax + 0x18]
je 0x1401311cf
jne 0x1401311cf
dec r10
inc r8
div rcx
lea r10d, [rbx + 0x92e3]
ret
jmp 0x1401311e9
xchg rdx, r10
mov rax, qword [r10 + 0x10]
mov r10, qword [rax]
mov r11, qword [r10 + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ebx, dword [rax + r11 + 0x88]
mov r10d, dword [rbx + r11 + 0x20]
jne 0x140131241
je 0x140131241
js 0x14013156d
lea r13d, [rbx - 0xc972]
mul rdi
jmp rcx
jmp 0x1401310d9
mov rax, qword gs:[0x60]
mov r8d, r13d
mov ecx, dword [rbx + r11 + 0x24]
add rcx, r11
movzx edx, word [rcx + r9*2]
je 0x14013129a
and eax, dword [rcx*4 + 0xe2d49f]
add byte [rbp + rcx*4 - 0x66], al
mov esp, 0x49ffffc0
div edi

Function at 0x140131ed5
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mul byte [rsi - 0x39]
and al, 0x43
jbe 0x140131f53
insb byte [rdi], dx
push rsp
cwde
push rdi
jb 0x140131f1a
invalid
Function at 0x140133dc7
Capabilities:
Hash data using fnv

Disassembly:
clc
rol r14d, 0xf4
movabs rdi, 0x53effb00000099e9
xor ecx, 0x96f0ef82
ror edx, 0xac
lea edx, [rdi - 0x8513]
call fcn.140132fb0

Function at 0x140134ba0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
je 0x140134bd1
jne 0x140134bd1
lea r10d, [rdx + 0x771a]
rcl ebx, 0x28
call rcx
test rsi, rdx
cmp r9, rcx
and r8d, 0xfec759ac
popf
jmp rax
jmp 0x140134c0e
mov qword [rsp + 0x18], rax
mov dword [rsp + 8], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x10], rax
jmp 0x140134c9f
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rax, [0x140134ec0]
je 0x140134c68
jne 0x140134c68
lea r15d, [rdx + 0x30a2]
sub r8d, 0xa3a0c7d4
test edx, 0xed8ff984
rcl r9d, 0x71
int3
jmp 0x140134bf2
Function at 0x14012f820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x24]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14012f8c3
mov byte [rax], 0xc3
mov edx, dword [rsp + 0x24]
lea r9, [rsp + 0x60]
mov r8d, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14012f8c3
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
add rsp, 0x50
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rbx
ret
Function at 0x1401343e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea r9, [rdx + 2]
mov rdi, rdx
mov rbx, rcx
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mov rsi, r8
mul r9
shr rdx, 1
shl rdx, 2
mov rcx, rdx
mov qword [r8], rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r10, rax
test rax, rax
je 0x140134530
xor eax, eax
lea r11, [0x140000000]
test rdi, rdi
je 0x1401344f2
mov r9, r10
movsxd rcx, eax
cmp rcx, rdi
jae 0x140134457
movzx edx, byte [rbx]
inc eax
inc rbx
jmp 0x140134459
xor edx, edx
movsxd rcx, eax
cmp rcx, rdi
jae 0x14013446c
movzx r8d, byte [rbx]
inc eax
inc rbx
jmp 0x14013446f
xor r8d, r8d
movsxd rcx, eax
cmp rcx, rdi
jae 0x140134481
movzx ecx, byte [rbx]
inc eax
inc rbx
jmp 0x140134483
xor ecx, ecx
shl rdx, 8
add rdx, r8
shl rdx, 8
add rdx, rcx
mov rcx, rdx
shr rcx, 0x12
movzx ecx, byte [rcx + r11 + 0x444020]
mov byte [r9], cl
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r11 + 0x444020]
mov byte [r9 + 1], cl
mov rcx, rdx
shr rcx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [rcx + r11 + 0x444020]
mov byte [r9 + 2], cl
movzx ecx, byte [rdx + r11 + 0x444020]
mov byte [r9 + 3], cl
add r9, 4
movsxd rcx, eax
cmp rcx, rdi
jb 0x140134445
mov rax, rbp
mul rdi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rdi, rax
movsxd rdx, dword [r11 + rdi*4 + 0x444010]
test rdx, rdx
jle 0x14013452d
mov rcx, qword [rsi]
dec rcx
add rcx, r10
nop dword [rax + rax]
mov byte [rcx], 0x3d
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140134520
mov rax, r10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14013adf0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rbx, rcx
xor esi, esi
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x14013ae90
lea rcx, [rbp - 0x50]
mov r8, 0xffffffffffffffff
mov rax, r8
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x14013ae50
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x14013ae67
mov word [rbp + rax*2 - 0x52], si
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
lea rax, [rbp - 0x50]
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x14013ae80
lea rdx, [rbp - 0x50]
jmp 0x14013aeac
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
xor r8d, r8d
lea rdx, [0x140445910]
lea rcx, [rsp + 0x40]
call fcn.140140690
nop
mov rdi, qword [rsp + 0x50]
test rdi, rdi
jne 0x14013af2e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x140444848]
mov rcx, rbx
call fcn.140140690
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14013b005
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b000
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013b000
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp - 0x78]
call fcn.14013acf0
mov rsi, rax
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdi
cmp rcx, 1
jb 0x14013b021
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 1
lea rax, [0x14044484c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x40]
movzx edx, byte [rbp + 0x1d8]
lea rcx, [rsp + 0x68]
call fcn.140140a10
nop
mov r9, rsi
lea r8, [rsp + 0x68]
movzx edx, byte [rbp + 0x1d8]
mov rcx, rbx
call fcn.1401407e0
nop
lea rcx, [rsp + 0x68]
call fcn.14013ec20
nop
lea rcx, [rbp - 0x78]
call fcn.14013ec20
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14013b005
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013b000
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013b000
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401c7190
mov rax, rbx
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1401346f0
nop
int3
Function at 0x14013b420
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x180
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14013b442
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.14013acf0
nop
mov rcx, rax
call fcn.1401435a0
movzx ebx, al
lea rcx, [rsp + 0x50]
call fcn.14013ec20
test bl, bl
jne 0x14013b46d
xor al, al
jmp 0x14013b5e4
lea rcx, [rsp + 0x30]
call fcn.14013adf0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14013e570
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
movabs rax, 0x1c926b9d39431d5f
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x23d6df
sub rcx, rax
add ecx, 0x120b5
movsxd rsi, ecx
mov rcx, rsi
call fcn.1401c7524
mov rdi, rax
xor ebx, ebx
test rsi, rsi
je 0x14013b513
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rdi + rbx], r9b
inc rbx
cmp rbx, rsi
jb 0x14013b4e0
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea rcx, [rsp + 0x78]
call fcn.14013ea20
test rax, rax
jne 0x14013b561
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rdi
call fcn.1401c7190
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
test eax, eax
sete bl
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rsp + rdx + 0x6c], r8d
lea rcx, [rsp + 0x78]
call fcn.14013e400
lea rcx, [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x118]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call fcn.14013ec20
movzx eax, bl
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14013ce30
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1060
call fcn.14038d7d0
sub rsp, rax
mov r13, r8
mov r14, rdx
mov rax, rcx
test r8, r8
je 0x14013cf4a
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rcx
mov r9d, 0x18
lea rcx, [rsp + 0x10b0]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov rcx, rax
mov edx, 0x30394004
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], 0x1000
mov dword [rsp + 0x10b0], 0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14013cf4a
mov rdi, 0xffffffffffffffff
mov rsi, rdi
nop word [rax + rax]
inc rsi
cmp byte [r14 + rsi], 0
jne 0x14013cee0
movsxd rax, dword [rsp + 0x9c]
lea rcx, [rsp + 0x60]
add rcx, rax
xor ebp, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x14013cf4a
lea rcx, [rbp*4]
mov r8, rsi
add rcx, rbp
mov rdx, r14
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14013cf43
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x14013cf35
cmp rsi, rax
je 0x14013cf67
inc ebp
cmp ebp, r15d
jb 0x14013cf11
xor eax, eax
mov rbx, qword [rsp + 0x10a8]
add rsp, 0x1060
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x14013cf4a
mov ebx, dword [rbx + 8]
lea r14, [rsp + 0x60]
add r14, rax
je 0x14013cf4a
test ebx, ebx
je 0x14013cf4a
lea rax, [rsp + 0x60]
mov esi, ebx
sub r14, rax
add r14, r13
je 0x14013cf4a
cmp rbx, 0x40000000
ja 0x14013cf4a
mov ecx, ebx
call fcn.1401c7524
mov rcx, qword [rsp + 0x10a0]
lea r8, [rsp + 0x40]
xor r15d, r15d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], r15
mov rbp, rax
lea rax, [rsp + 0x10b0]
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x30], rax
mov edx, 0x30394004
mov dword [rsp + 0x28], r15d
lea r9d, [r15 + 0x18]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x10b0], r15d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14013d06f
mov r10, qword [rsp + 0x10c0]
inc rdi
cmp byte [r10 + rdi], r15b
jne 0x14013d003
mov r9, r15
sub rsi, rdi
je 0x14013d067
mov rax, qword [rsp + 0x10b8]
mov rbx, rbp
movzx r11d, byte [r10]
sub rbx, rax
mov rdx, r10
test r11b, r11b
je 0x14013d052
movzx ecx, r11b
lea r8, [rbx + r9]
cmp cl, 0x78
jne 0x14013d044
movzx ecx, byte [rax]
cmp byte [r8 + rax], cl
jne 0x14013d057
movzx ecx, byte [rdx + 1]
inc rdx
inc rax
test cl, cl
jne 0x14013d036
cmp byte [rdx], r15b
je 0x14013d077
mov rax, qword [rsp + 0x10b8]
inc r9
cmp r9, rsi
jb 0x14013d026
mov rcx, rbp
call fcn.1401c7190
mov rax, r15
jmp 0x14013cf4c
lea rbx, [r9 + rbp]
test rbx, rbx
je 0x14013d067
mov rcx, rbp
call fcn.1401c7190
sub rbx, rbp
lea rax, [rbx + r14]
jmp 0x14013cf4c
Function at 0x14013dbe0
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 0x14013dc08
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 0x14013dc2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14013dc30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14013dc89
test ecx, ecx
jle 0x14013dc69
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 0x14013dc89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14013dc89
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 0x14013dcb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14013dce1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14013dcff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14013dd1b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14013dd1d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14013dd59
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14013ddee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14013dd94
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 0x14013ddce
nop dword [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 0x14013ddee
cmp rbx, rax
ja 0x14013dda0
test rbx, rbx
je 0x14013ddee
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14013e200
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14013e224
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14013e267
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14013e267
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14013e398
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14013e2aa
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 0x14013e2d5
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
cmove edi, ecx
mov eax, edi
jmp 0x14013e39d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14013e34a
sub eax, 1
je 0x14013e34a
cmp eax, 2
jne 0x14013e398
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14013e39d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14013e37b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14013e398
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14013e39d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14013e940
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14013ea09
cmp byte [rcx + 0x71], 0
je 0x14013ea09
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14013e9fc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x14013e9b8
sub eax, 1
je 0x14013e9bc
cmp eax, 2
jne 0x14013e9fc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14013e9ea
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14013e9fc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140142560
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140142661
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140142661
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x1401425c5
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14014266c
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x30]
cmp rbx, rbp
jae 0x14014264f
nop dword [rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x14014264f
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x40], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x48], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x50], eax
cmp rcx, r8
je 0x140142628
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x30], rcx
jmp 0x140142644
lea r8, [rsp + 0x40]
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140142b50
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x1401425e0
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14014266c
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret