joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140ef40b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ef4237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ef40e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef40c7
add dl, dl
jne 0x140ef40ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef414e
xor eax, eax
add dl, dl
jne 0x140ef40fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef4205
add dl, dl
jne 0x140ef410e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef411b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef4128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef4135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ef4142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ef40d6
mov eax, 1
add dl, dl
jne 0x140ef415e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef416b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef4153
sub eax, ebx
mov ebx, 1
jne 0x140ef41a4
mov ecx, 1
add dl, dl
jne 0x140ef4186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef4193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef417b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef40d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ef41c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef41cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef41b5
cmp eax, 0x7d00
jae 0x140ef41f3
cmp eax, 0x500
jb 0x140ef41ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef40d6
cmp eax, 0x7f
ja 0x140ef41f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef40d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ef422a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ef40d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005a7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
mov cl, 0x69
mov dword [rbp + 0x10], 0x70c2469
mov word [rbp + 0x14], 0x1c
xor eax, eax
xor byte [rbp + rax + 0x11], cl
inc rax
cmp rax, 4
jae 0x180005ab1
mov cl, byte [rbp + 0x10]
jmp 0x180005a9f
xor edx, edx
mov byte [rbp + 0x15], 0
mov r8d, 0x28bb
lea rcx, [rbp + 0x11]
call fcn.18000e46c
mov rax, qword gs:[0x58]
mov ecx, dword [0x18003b8a4]
mov esi, 4
mov rbx, qword [rax + rcx*8]
mov eax, dword [rbx + rsi]
cmp dword [0x18003ba7c], eax
jle 0x180005b14
lea rcx, [0x18003ba7c]
call fcn.180026734
cmp dword [0x18003ba7c], 0xffffffff
jne 0x180005b14
lea rcx, [0x18003ba7c]
mov dword [0x18003ba74], 0x3e8
call fcn.1800266c8
mov eax, dword [rbx + rsi]
cmp dword [0x18003ba78], eax
jle 0x180005b4a
lea rcx, [0x18003ba78]
call fcn.180026734
cmp dword [0x18003ba78], 0xffffffff
jne 0x180005b4a
lea rcx, [0x18003ba78]
mov dword [0x18003ba70], 0x2bc
call fcn.1800266c8
mov r9, qword [0x18003b940]
lea rdx, [rbp + 0x18]
xor r8d, r8d
mov rax, qword [r9 + 0x1a28]
movss xmm0, dword [rax + 0x10]
movss dword [0x18003b948], xmm0
movss xmm1, dword [rax + 0x14]
movd xmm0, dword [0x18003ba74]
movss dword [0x18003b94c], xmm1
mov rax, qword [r9 + 0x1a28]
cvtdq2ps xmm0, xmm0
mov byte [rax + 0x80], 1
mov rax, qword [r9 + 0x1a28]
mov rcx, qword [rax + 0x2a8]
cvttss2si eax, xmm0
mov qword [0x18003b8c0], rcx
mov rcx, qword [r9 + 0x1a28]
movd xmm0, dword [0x18003ba70]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movss dword [rbp + 0x18], xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [rbp + 0x1c], xmm1
call fcn.180010b40
call fcn.180004ba8
call fcn.180004d50
cmp dword [0x18003b040], 2
jne 0x180005cad
and dword [rbp + 0x10], 0
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x14], 0x43480000
call fcn.180010c60
call fcn.180010d64
mov cl, 0x26
mov dword [rbp - 0x10], 0x4a536b26
xor eax, eax
mov dword [rbp - 0xc], 0x4f6e4f52
mov word [rbp - 8], 0x52
xor byte [rbp + rax - 0xf], cl
inc rax
cmp rax, 8
jae 0x180005c38
mov cl, byte [rbp - 0x10]
jmp 0x180005c26
cmp byte [0x18003b8d4], 0
lea rcx, [rbp - 0xf]
mov byte [rbp - 7], 0
sete dl
call fcn.180025f80
test al, al
je 0x180005c5a
mov byte [0x18003b8d4], 0
call fcn.18002533c
xor eax, eax
mov dword [rbp + 0x10], 0x425e7331
mov r10b, 0x31
mov dword [rbp + 0x14], 0x425442
xor byte [rbp + rax + 0x11], r10b
inc rax
cmp rax, 6
jae 0x180005c86
mov r10b, byte [rbp + 0x10]
jmp 0x180005c72
cmp byte [0x18003b8d4], 1
lea rcx, [rbp + 0x11]
mov byte [rbp + 0x17], 0
sete dl
call fcn.180026338
test al, al
je 0x180005ca8
mov byte [0x18003b8d4], 1
call fcn.180010e80
call fcn.180004ef4
call fcn.18001037c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
jmp fcn.18000b874

Function at 0x180007c44
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
mov r9d, 8
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x18002a080]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x180007c4d
not r8d
mov eax, r8d
ret
Function at 0x180007c78
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180007cd2
mov r11b, 0x23
lea rdi, [0x18002a080]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x180007cbc
cmp rdx, 2
jb 0x180007cbc
cmp byte [r10], r11b
jne 0x180007cbc
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x180007c9a
jmp 0x180007d13
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180007d13
mov r11b, 0x23
lea rdi, [0x18002a080]
cmp dl, r11b
jne 0x180007cf7
cmp byte [r10], r11b
jne 0x180007cf7
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180007ce5
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x180007dfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x180007e1c
and qword [r8], 0
call fcn.180007d24
mov rbx, rax
test rax, rax
je 0x180007eec
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180007ee3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x180007ee3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180007ee3
mov rax, qword [0x18003b940]
mov rbp, rsi
test rax, rax
je 0x180007e80
inc dword [rax + 0x3c0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180007ee3
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x180007ed0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18003b940]
test rax, rax
je 0x180007ec5
dec dword [rax + 0x3c0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180007eec
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x180007ede
mov qword [rdi], rbp
mov rax, rsi
jmp 0x180007eee
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180014e68
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x18003b940]
mov rbx, rcx
and dword [rax + 0x2ef8], 0
test rcx, rcx
je 0x180014ed1
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.180014edc
lea rdx, [0x180029968]
mov rcx, rbx
mov rdi, rax
call fcn.180007d24
mov rbx, rax
test rax, rax
je 0x180014ed1
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001db68
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x18001dcf6
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
mov edi, r9d
comiss xmm3, dword [0x180037ee8]
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
jbe 0x18001dbda
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.18001d5c8
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.18001cec8
and dword [rbx + 0x80], 0
jmp 0x18001dcdd
mov edx, 6
lea r8d, [rdx - 2]
call fcn.18001c094
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm5, dword [rax]
movss xmm6, dword [rax + 4]
movss xmm4, dword [rsi + 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], edi
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], edi
movsd xmm0, qword [rsi]
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], edi
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]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x18002324c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x18003b010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rcx, qword [0x18003ba48]
lea rdx, [rbp - 0x28]
mov rdi, qword [0x18003b940]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rbp - 0x20]
lea rcx, [rbp - 0x10]
sub eax, dword [rbp - 0x28]
movd xmm1, eax
mov eax, dword [rbp - 0x1c]
sub eax, dword [rbp - 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rbp - 0x10]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x18003ba50]
cvtsi2ss xmm0, qword [0x18003ba58]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x18003ba50], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x148], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x149], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x18003b940]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x14b], 0
mov byte [rdi + 0x14a], al
cmp byte [rcx + 0x3a7], 0
lea rbx, [rcx + 0x130]
je 0x180023375
cvttss2si eax, dword [rbx]
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x18], eax
cvttss2si eax, dword [rcx + 0x134]
mov rcx, qword [0x18003ba48]
mov dword [rbp - 0x14], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x14]
mov ecx, dword [rbp - 0x18]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx], eax
mov dword [rbx + 4], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1800233df
mov rdx, qword [0x18003ba48]
cmp rax, rdx
je 0x1800233a3
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1800233df
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1800233df
mov rcx, qword [0x18003ba48]
lea rdx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1800233df
movd xmm0, dword [rbp - 0x30]
movd xmm1, dword [rbp - 0x2c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
mov rbx, qword [0x18003b940]
je 0x1800233f4
or eax, 0xffffffff
jmp 0x1800233fa
mov eax, dword [rbx + 0x1e98]
cmp dword [0x18003b218], eax
je 0x180023414
mov dword [0x18003b218], eax
call fcn.1800231a8
mov rbx, qword [0x18003b940]
xor edx, edx
lea rcx, [rbx + 0x34c]
lea r8d, [rdx + 0x58]
call sub.VCRUNTIME140.dll_memset
test byte [rbx + 8], 2
je 0x180023440
cmp byte [0x18003b044], 0
je 0x18002343c
mov byte [0x18003b044], 0
and dword [rbx + 0xc], 0xfffffffe
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800266a0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140009c30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x140009dc3
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140009dc3
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x140009cc9
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140009de7
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140009cdf
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x140009cdf
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140009cf2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x140009d3d
mov r9d, eax
cmp eax, 0x800
jae 0x140009d0c
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x140009d3d
cmp eax, 0x10000
jae 0x140009d26
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x140009d3d
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x140009dc3
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140009d61
cmp r10d, 3
jae 0x140009d6d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x140009d9e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140009d80
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x140009c7e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x140009dd2
Function at 0x14000a7a0
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 0x14000a7c8
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 0x14000a7ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000a7f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000a849
test ecx, ecx
jle 0x14000a829
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 0x14000a849
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000a849
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 0x14000a870
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 0x14000a892
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000a8a8
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 0x14000a8c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a8c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a902
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 0x14000a99e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000a93d
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 0x14000a97e
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 0x14000a99e
cmp rbx, rax
ja 0x14000a950
test rbx, rbx
je 0x14000a99e
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 0x14000add0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a4080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000adfd
xor eax, eax
jmp 0x14000af69
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ae37
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000ae37
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 0x14000af69
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000af5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ae7a
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 0x14000aea5
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 0x14000af61
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 0x14000af14
sub eax, 1
je 0x14000af14
cmp eax, 2
jne 0x14000af5c
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 0x14000af61
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000af42
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 0x14000af5c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000af61
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140080ad0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret