joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180036c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1d0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15d, r8d
mov r13d, edx
movsxd rsi, ecx
mov eax, 1
xchg dword [0x18007c0a4], eax
cmp eax, 1
jne 0x180036cdb
nop word [rax + rax]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x18007c0a4], eax
cmp eax, 1
je 0x180036cc0
mov r14, rsi
lea r12, [0x180000000]
shl r14, 8
test r13d, r13d
je 0x180036d1b
lea rax, [r12 + 0x7c380]
add rax, r14
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], 0
jne 0x180036d00
test rcx, rcx
je 0x180036d3b
xor ebx, ebx
xchg dword [0x18007c0a4], ebx
jmp 0x180036eb6
lea rax, [r12 + 0x7ce80]
add rax, r14
or rdi, 0xffffffffffffffff
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x180036d30
jmp 0x180036d09
xor edx, edx
mov r8d, 0xff
lea rcx, [rbp - 0x2f]
call fcn.180008040
mov dword [rbp - 0x30], 0x61636f4c
mov word [rbp - 0x2c], 0x5c6c
mov byte [rbp - 0x2a], 0
mov dword [rbp + 0x118], 0x4e565354
mov byte [rbp + 0x11c], 0
lea r8, [rbp + 0x118]
mov edx, pe_nt_image_headers64
lea rcx, [rbp - 0x30]
call fcn.180003440
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
cmp byte [rbp - 0x30], bl
jne 0x180036dab
mov r8d, ebx
jmp 0x180036dbb
lea rax, [rbp - 0x30]
mov r8, rdi
inc r8
cmp byte [rax + r8], bl
jne 0x180036db2
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x20]
call fcn.180001380
nop
test r15d, r15d
jne 0x180036ddf
mov word [rbp - 0x60], 0x6425
mov byte [rbp - 0x5e], r15b
lea rdx, [rbp - 0x60]
jmp 0x180036e1b
cmp r15d, 1
jne 0x180036dfb
mov dword [rsp + 0x60], 0x25256425
mov word [rsp + 0x64], 0x64
lea rdx, [rsp + 0x60]
jmp 0x180036e1b
cmp r15d, 2
jne 0x180036e27
mov dword [rsp + 0x40], 0x25256425
mov dword [rsp + 0x44], 0x64252564
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x40]
mov r8d, esi
lea rcx, [rbp - 0x80]
call fcn.180002430
cmp byte [rbp - 0x80], 0
jne 0x180036e32
mov rdi, rbx
jmp 0x180036e3f
lea rax, [rbp - 0x80]
inc rdi
cmp byte [rax + rdi], 0
jne 0x180036e36
mov r8, rdi
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180002490
lea r8, [rsp + 0x20]
mov edx, pe_nt_image_headers64
test r13d, r13d
lea rdi, [r12 + 0x7c380]
jne 0x180036e6f
lea rdi, [r12 + 0x7ce80]
cmp qword [rsp + 0x38], 0x10
cmovae r8, qword [rsp + 0x20]
add rdi, r14
mov rcx, rdi
call fcn.180003354
mov ecx, ebx
xchg dword [0x18007c0a4], ecx
cmp qword [rsp + 0x38], 0x10
jb 0x180036ea0
mov rcx, qword [rsp + 0x20]
call fcn.180003020
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], 0
mov rax, rdi
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14171e910
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14171e91d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14171e92d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14171e915
lea eax, [rcx + 1]
jmp 0x14171e93b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14171e94e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14171e934
sub eax, 3
jb 0x14171e96e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14171e9bd
sar eax, 1
movsxd rbp, eax
jb 0x14171e9a4
jmp 0x14171e97c
add ebx, ebx
jne 0x14171e97a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14171e9a4
inc ecx
add ebx, ebx
jne 0x14171e98a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14171e9a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14171e99d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14171e98c
add ecx, 2
jmp 0x14171e9a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14171e8d2
jmp 0x14171e91d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x1709000]
mov eax, dword [rdi]
or eax, eax
je 0x14171ea1d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x171e4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14171e9cd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14171ea17
mov qword [rbx], rax
add rbx, 8
jmp 0x14171e9ed
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14171ea61
cmp al, 0xef
ja 0x14171ea49
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14171ea29
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14171ea38
mov eax, dword [rdi]
add rdi, 4
jmp 0x14171ea38
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14171eae0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14171eae0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14171ead0
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x140003040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x70
cmp qword [rcx + 0xe28], 0
mov rbx, rcx
movaps xmmword [rsp + 0x60], xmm6
movaps xmm6, xmm1
movaps xmmword [rsp + 0x50], xmm7
movaps xmm7, xmm2
jne 0x140003081
mov r8d, 0x23c
lea rdx, str.C:Usershozyain_ratki_gayDesktop_rararimguiimgui.cpp
lea rcx, str.Ctx___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rbx + 0x38c1], 0
mov rbp, qword [rbx + 0xe28]
je 0x140003250
movss xmm1, dword [0x1401b955c]
xorps xmm2, xmm2
comiss xmm7, xmm1
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], r14
jbe 0x1400030d5
comiss xmm7, xmm2
cvttss2si eax, xmm7
jae 0x1400030ce
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm7
jp 0x1400030cc
je 0x1400030ce
dec eax
movd xmm7, eax
cvtdq2ps xmm7, xmm7
comiss xmm6, xmm1
jbe 0x1400030fa
comiss xmm6, xmm2
cvttss2si eax, xmm6
jae 0x1400030f3
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm6
jp 0x1400030f1
je 0x1400030f3
dec eax
movd xmm6, eax
cvtdq2ps xmm6, xmm6
lea r14, [rbp + 0x3fd0]
mov qword [rsp + 0x88], rdi
mov ebx, dword [r14]
sub ebx, 1
movsxd rsi, ebx
js 0x140003151
imul rdi, rsi, 0x1c
cmp ebx, dword [r14]
jl 0x140003137
mov r8d, 0x78f
lea rdx, str.C:Usershozyain_ratki_gayDesktop_rararimguiimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 8]
cmp dword [rdi + rax], 1
je 0x1400031e7
dec ebx
sub rdi, 0x1c
sub rsi, 1
jns 0x140003118
movsd xmm0, qword [rbp + 0xe38]
lea rax, [rsp + 0x28]
movsd qword [rsp + 0x28], xmm0
movss xmm0, dword [rax]
ucomiss xmm0, xmm6
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
movss xmm1, dword [rax + 4]
jp 0x14000318f
jne 0x14000318f
ucomiss xmm1, xmm7
jp 0x14000318f
je 0x140003248
mov eax, dword [rbp + 0x3ff4]
mov dword [rsp + 0x38], eax
inc eax
mov dword [rbp + 0x3ff4], eax
mov ecx, dword [r14]
mov r8d, dword [r14 + 4]
mov eax, dword [rbp + 0x3ff0]
movss dword [rsp + 0x3c], xmm6
movss dword [rsp + 0x40], xmm7
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], eax
cmp ecx, r8d
jne 0x14000321d
inc ecx
test r8d, r8d
je 0x140003209
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14000320e
movss xmm0, dword [rdi + rax + 0xc]
movss xmm1, dword [rdi + rax + 0x10]
lea rax, [rsp + 0x20]
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x24], xmm1
jmp 0x140003164
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, r14
call fcn.14001ec80
movsxd rax, dword [r14]
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
imul rcx, rax, 0x1c
mov rax, qword [r14 + 8]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], 0
inc dword [r14]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop rbp
ret
Function at 0x140003740
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000379d
lea rbx, [0x14004a080]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003784
cmp r10, 2
jb 0x140003784
cmp byte [r9], r8b
jne 0x140003784
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140003760
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400037df
lea rbx, [0x14004a080]
cmp r8b, 0x23
jne 0x1400037c3
cmp byte [r9], r8b
jne 0x1400037c3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400037b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1400073c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov rsi, rcx
movsxd rdi, edx
jg 0x1400073fc
mov r8d, 0x798
lea rdx, str.C:Usershozyain_ratki_gayDesktop_rararimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rsi + 0x108]
lea rdx, [0x14004a080]
movsxd r8, dword [rsi + 0x100]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [rsi]
not ebx
cmp dword [rcx + 0x40a4], ebx
jne 0x140007477
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001d520
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140016a80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1401d8930]
mov edi, ecx
cmp byte [rbx + 0x4da9], 0
jne 0x140016ad2
cmp byte [rbx + 0x4daa], 0
jne 0x140016ad2
movsx r9d, word [rbx + 0x5f00]
lea r8, [0x140048cf8]
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140003540
test dil, 2
je 0x140016bff
jmp 0x140016b5b
movss xmm1, dword [rbx + 0x39b4]
lea r8, [0x140048cf8]
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x1401b94d8]
xor eax, eax
mulss xmm1, dword [0x1401b94d0]
addss xmm0, dword [rbx + 0xe38]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xe3c]
mov qword [rbx + 0x4a70], rax
mov dword [rbx + 0x4a5c], 1
movss dword [rbx + 0x4a68], xmm0
movss dword [rbx + 0x4a6c], xmm1
movss xmm0, dword [rbx + 0x3a10]
mulss xmm0, dword [0x1401b9460]
or dword [rbx + 0x4a58], 0x41
movss dword [rbx + 0x4ab8], xmm0
movsx r9d, word [rbx + 0x5f00]
call fcn.140003540
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140016bb0
lea r11, [0x14004a080]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140016b93
cmp byte [r8], r9b
jne 0x140016b93
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140016b80
not ecx
call fcn.14000b240
test rax, rax
je 0x140016bff
cmp byte [rax + 0xbe], 0
je 0x140016bff
mov byte [rax + 0xc3], 1
lea r8, [0x140048cf8]
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5f00]
movsx r9d, word [rbx + 0x5f00]
call fcn.140003540
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14000e3c0
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001c330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6058], 0
lea rbx, [rcx + 0x6060]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001c3d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001c38a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001e850
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003de0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6058]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6068]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401d8928]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001c3df
mov rcx, rbx
call fcn.140003de0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c640
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1401d8930]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001c6a3
mov qword [rsp], rbx
lea rbx, [0x14004a080]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001c683
cmp byte [r8], r9b
jne 0x14001c683
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001c670
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5fc8]
not eax
mov r8, qword [r10 + 0x5fd0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001c6cf
cmp dword [r8 + 8], eax
je 0x14001c6d6
add r8, 0x48
cmp r8, rcx
jne 0x14001c6c0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140040f10
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 0x140040f38
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 0x140040f5e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140040f60
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140040fb9
test ecx, ecx
jle 0x140040f99
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 0x140040fb9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140040fb9
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 0x140040fe0
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 0x140041011
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 0x14004102f
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 0x14004104b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004104d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140041089
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 0x14004111e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400410c4
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 0x1400410fe
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 0x14004111e
cmp rbx, rax
ja 0x1400410d0
test rbx, rbx
je 0x14004111e
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 0x140041560
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 0x140041584
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 0x1400415c7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400415c7
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 0x1400416f8
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004160a
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 0x140041635
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 0x1400416fd
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 0x1400416aa
sub eax, 1
je 0x1400416aa
cmp eax, 2
jne 0x1400416f8
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 0x1400416fd
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400416db
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 0x1400416f8
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400416fd
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140041c40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140041d09
cmp byte [rcx + 0x71], 0
je 0x140041d09
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140041cfc
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 0x140041cb8
sub eax, 1
je 0x140041cbc
cmp eax, 2
jne 0x140041cfc
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 0x140041cea
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 0x140041cfc
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 0x140042830
Capabilities:
Parse pe header

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