joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x14001a6a2
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, 0x100
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x14003d380]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001a50a
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001a529
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x14001a640
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001a570
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001a573
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140015770
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.1400180a0
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x14001a560
jmp 0x14001a647
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, 0x100
sub qword [rsp + 0x60], 1
jne 0x14001a4c0
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x14001dec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001e079
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001df56
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001d830
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001ce40
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001df47
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400130c0
mov dword [rbx + 0x80], 0
jmp 0x14001e065
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
mov r8d, 4
call fcn.14001bd20
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14002eb90
Capabilities:
Delete file
Execute command

Disassembly:
sub rsp, 0x48
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x50
call fcn.1400368f8
mov rcx, rax
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [0x14003d090]
movdqu xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [str.C:Users42dc890c82cc7bdab0cf09cec720cc18f04eb5c4dec058cbf622a9bd00fb1ad5.sys]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14003c7c0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14003c7d0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14003c7e0]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [0x14003c7f0]
movsd qword [rax + 0x40], xmm0
mov eax, dword [0x14003c7f8]
mov dword [rcx + 0x48], eax
movzx eax, byte [0x14003c7fc]
mov byte [rcx + 0x4c], al
mov byte [rcx + 0x4d], 0
mov r8d, 0x2600
lea rdx, [0x140065ce0]
lea rcx, [rsp + 0x20]
call fcn.14002e9e0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14002ec6c
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ec67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002ec67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036704
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x20
call fcn.1400368f8
mov qword [rsp + 0x20], rax
movdqa xmm0, xmmword [0x14003d080]
movdqu xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [str.C:UsersCapware.exe]
movups xmmword [rax], xmm0
mov ecx, dword [0x14003c7a0]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
mov r8d, 0x21c00
lea rdx, [0x1400440e0]
lea rcx, [rsp + 0x20]
call fcn.14002e9e0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14002ed09
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ed04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002ed04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036704
lea rcx, str.C:UsersCapware.exe_C:Users42dc890c82cc7bdab0cf09cec720cc18f04eb5c4dec058cbf622a9bd00fb1ad5.sys
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.C:Users42dc890c82cc7bdab0cf09cec720cc18f04eb5c4dec058cbf622a9bd00fb1ad5.sys
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, str.C:UsersCapware.exe
add rsp, 0x48
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
Function at 0x14002ede0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
mov rdi, rdx
xor edx, edx
cmp ecx, 0x7b
ja 0x14002ee14
movsxd rax, ecx
lea rdx, [0x140068410]
mov rdx, qword [rdx + rax*8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x14003d070]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x38], 0
test rdx, rdx
jne 0x14002ee43
mov r8d, 0xa
lea rdx, str.Select_Key
jmp 0x14002ee5a
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14002ee50
lea rcx, [rsp + 0x38]
call fcn.140034ef0
cmp ebx, 1
jne 0x14002ee80
mov r8d, 9
lea rdx, str.Press_Key
lea rcx, [rsp + 0x38]
call fcn.140034ef0
mov dword [rsp + 0x30], 0x42fa0000
mov dword [rsp + 0x34], 0x41c80000
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.1400240a0
test al, al
je 0x14002eed1
test ebx, ebx
jne 0x14002eed1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14002ef11
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ef0c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002ef0c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140036704
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400362f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14002ef30
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0x78
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14002ef64
cmp byte [0x1400440c1], 0
sete al
mov byte [0x1400440c1], al
jmp 0x14002ef6b
movzx eax, byte [0x1400440c1]
test al, al
je 0x14002f204
mov rax, qword [0x1400690d0]
lea rcx, str.DemonWare_Aimbot_Settings
mov qword [rsp + 0x70], rbx
xor edx, edx
movaps xmmword [rsp + 0x60], xmm7
xor ebx, ebx
movss xmm7, dword [0x14003cf08]
mov r8d, 0x2e
movss xmm1, dword [rax + 0x10]
movss xmm0, dword [rax + 0x14]
subss xmm1, dword [0x14003d01c]
subss xmm0, dword [0x14003cff0]
mov dword [rax + 0x1af4], 0x43660000
mov dword [rax + 0x1af8], 0x437f0000
mov dword [rax + 0x1acc], 2
mulss xmm1, xmm7
mov qword [rax + 0x1aec], rbx
mulss xmm0, xmm7
mov dword [rax + 0x1ac8], 2
movss dword [rax + 0x1ae4], xmm1
movss dword [rax + 0x1ae8], xmm0
call fcn.140009750
lea rdx, [0x140069730]
lea rcx, str.Aimbot
call fcn.140024dd0
lea rdx, [0x14006972c]
lea rcx, [0x14003cb5c]
call fcn.140024dd0
lea rdx, [0x14006972d]
lea rcx, str.Fov_Filled
call fcn.140024dd0
lea rdx, [0x14006972b]
lea rcx, str.Triggerbot
call fcn.140024dd0
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x3e8
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [0x1400687f8]
mov dword [rsp + 0x48], 0xa
lea rcx, str.Size
call fcn.140026260
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 0x14
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [0x1400687fc]
mov dword [rsp + 0x40], 1
lea rcx, str.Speed
call fcn.140026260
call fcn.140025e90
lea rcx, str.Aim_button
call fcn.140023a20
mov r8d, dword [0x140069268]
lea rdx, [0x14002ed40]
mov ecx, dword [0x1400687f4]
call fcn.14002ede0
lea rcx, str.TriggerBotKey
call fcn.140023a20
mov r8d, dword [0x1400692e0]
lea rdx, [0x14002ed90]
mov ecx, dword [0x1400687f0]
call fcn.14002ede0
call fcn.14000c600
mov rax, qword [0x1400690d0]
lea rcx, str.DemonWare_Esp_Settings
xor edx, edx
mov r8d, 0x2e
movss xmm1, dword [rax + 0x10]
movss xmm0, dword [rax + 0x14]
subss xmm1, dword [0x14003cfdc]
subss xmm0, dword [0x14003cff0]
mov dword [rax + 0x1af4], 0x435c0000
mov dword [rax + 0x1af8], 0x437f0000
mov dword [rax + 0x1acc], 2
mulss xmm1, xmm7
mov qword [rax + 0x1aec], rbx
mulss xmm0, xmm7
mov dword [rax + 0x1ac8], 2
movss dword [rax + 0x1ae4], xmm1
movss dword [rax + 0x1ae8], xmm0
call fcn.140009750
lea rdx, [0x14006972a]
lea rcx, str.Box_Esp
call fcn.140024dd0
lea rdx, [0x14006972f]
lea rcx, str.Snapline_Top
call fcn.140024dd0
lea rdx, [0x140069728]
lea rcx, str.Distance_Esp
call fcn.140024dd0
lea rdx, [0x140069731]
lea rcx, str.Skeleton_Esp
call fcn.140024dd0
lea rdx, [0x14006972e]
lea rcx, str.Weapon_Esp
call fcn.140024dd0
lea rdx, [0x140069729]
lea rcx, str.Rank_Esp
call fcn.140024dd0
call fcn.14000c600
movaps xmm7, xmmword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400362f0
add rsp, 0x78
ret
Function at 0x140033e20
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 0x140033e48
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 0x140033e6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140033e70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140033ec9
test ecx, ecx
jle 0x140033ea9
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 0x140033ec9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140033ec9
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 0x140033ef0
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 0x140033f12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140033f28
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 0x140033f44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140033f46
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140033f82
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 0x14003401e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140033fbd
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 0x140033ffe
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 0x14003401e
cmp rbx, rax
ja 0x140033fd0
test rbx, rbx
je 0x14003401e
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 0x140034480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400344ad
xor eax, eax
jmp 0x140034619
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400344e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400344e7
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 0x140034619
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003460c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003452a
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 0x140034555
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 0x140034611
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 0x1400345c4
sub eax, 1
je 0x1400345c4
cmp eax, 2
jne 0x14003460c
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 0x140034611
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400345f2
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 0x14003460c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140034611
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400362f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140034c90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140034d63
cmp byte [rcx + 0x71], 0
je 0x140034d63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140034d5f
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 0x140034d24
sub eax, 1
je 0x140034d28
cmp eax, 2
jne 0x140034d5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400362f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140034d56
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 0x140034d5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140034d0c
xor al, al
jmp 0x140034d0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400362f0
add rsp, 0x60
pop rbx
ret

Function at 0x140037020
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003706a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003706a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003706a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003706a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003706a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003706c
xor al, al
add rsp, 0x28
ret
Function at 0x140ba7b05
Capabilities:
Execute anti-debugging instructions

Disassembly:
add eax, 0xbf80f9e
cmp bpl, 0x67
stc
cmc
neg eax
jmp 0x140bb029a
jmp rbx
push r11
movzx r11, bx
movsx r11w, bpl
push rcx
movsx r11, r12w
push rdx
movsx edx, bx
movzx r11d, r10w
push rax
rdtsc
lahf
movzx ax, dil
push r10
rdtsc
push r9
movsx eax, di
cdq
mov r11, rsp
push r15
lahf
movsx r9w, spl
push r12
movsxd r9, edi
lahf
push rbp
cwde
cmova r9w, si
push rbx
xchg r9w, ax
movsx rax, cx
mov r10b, al
pushfq
rcl r9w, 0xd1
push rsi
sal sil, 0x3a
push r14
bswap si
rol r10b, 0x4c
inc dx
movabs r9, 0
sbb sil, 0x6e
push r9
or bl, spl
mov rsi, qword [rsp + 0x90]
bt bx, 0x3a
btr rdx, r13
or ah, 0x7d
sub esi, 0x7a77533d
rol r10, 0xdf
dec al
neg esi
ror esi, 3
add esi, 0x42b53e65
and r10d, r10d
sub r11d, 0x46ad142a
clc
lea rsi, [rsi + r9]
sub r10w, r15w
and dl, 0xe2
mov r10b, 0xbb
movabs rdx, 0x100000000
lea rsi, [rsi + rdx]
shrd ebx, esi, 0x88
add r9, r14
mov r10, rsp
btr bx, 0x38
sub rsp, 0x180
bsr r9, rax
sal rax, cl
cbw
and rsp, 0xfffffffffffffff0
mov r11b, 0x46
sar r9b, 0x7f
mov r11, rsi
movabs r9, 0
test r10, rsi
dec eax
sub r11, r9
bsf bx, sp
lea rbx, [0x140af302f]
and eax, ebx
xor ax, 0x7526
mov eax, dword [rsi]
test r10w, 0x7ae6
cmp rbx, r13
add rsi, 4
xor eax, r11d
bswap eax
test cl, bh
clc
xor eax, 0x38e4172f
stc
jmp 0x140a9eecf
push r8
push r13
jmp 0x140bb5c18
inc eax
push r11
bt r11w, 0x19
sbb r11d, esi
btr r11d, 0x92
xor dword [rsp], eax
pop r11
test r10b, 0x17
cmp rdi, 0x12d3153d
cmc
movsxd rax, eax
add rbx, rax
jmp 0x140aa4445
push rdi
jmp 0x140af2f1f