joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028c70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140028c7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140028c8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140028c75
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140028ca5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140028c92
sub eax, 3
jb 0x140028cbf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140028cf6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140028ce6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140028ce4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140028cd3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140028c32
jmp 0x140028c7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xde00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140028d42
cmp rsi, rcx
jae 0x140028d4a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140028d29
cmp al, 0x8f
ja 0x140028d29
cmp byte [rsi - 2], 0xf
je 0x140028d2f
sub al, 0xe8
cmp al, 1
ja 0x140028d13
cmp rsi, rcx
jae 0x140028d4a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140028d19
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140028d4a
lodsb al, byte [rsi]
jmp 0x140028d29
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x26000]
mov eax, dword [rdi]
or eax, eax
je 0x140028da7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x28230]
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 0x140028d57
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 0x140028da1
mov qword [rbx], rax
add rbx, 8
jmp 0x140028d77
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 0x140028de1
cmp al, 0xef
ja 0x140028dd3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140028db3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140028dc2
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 + 0x23f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140028e35
sub rsp, 0xffffffffffffff80
jmp 0x1400012a8
Function at 0x14064b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14064b1df
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 0x14064b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064b06f
add dl, dl
jne 0x14064b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064b0f6
xor eax, eax
add dl, dl
jne 0x14064b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064b1ad
add dl, dl
jne 0x14064b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14064b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14064b07e
mov eax, 1
add dl, dl
jne 0x14064b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064b0fb
sub eax, ebx
mov ebx, 1
jne 0x14064b14c
mov ecx, 1
add dl, dl
jne 0x14064b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14064b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064b15d
cmp eax, 0x7d00
jae 0x14064b19b
cmp eax, 0x500
jb 0x14064b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064b07e
cmp eax, 0x7f
ja 0x14064b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14064b1d2
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 0x14064b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140046714
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046540
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x20
mov rax, qword [0x140003028]
mov dword [rax], 1
mov rax, qword [0x140003030]
mov dword [rax], 1
mov rax, qword [0x140003038]
mov dword [rax], 1
mov rcx, qword [0x140003008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000108b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000108b
add rcx, rdx
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
je 0x140001073
cmp edx, 0x10b
jne 0x14000108b
cmp dword [rcx + 0x74], 0xf
jb 0x14000108b
add rcx, 0xe8
jmp 0x140001083
cmp dword [rcx + 0x84], 0xf
jb 0x14000108b
add rcx, 0xf8
xor eax, eax
cmp dword [rcx], 0
setne al
mov rcx, qword [0x140003020]
cmp dword [rcx], 1
mov dword [0x1400060cc], eax
mov ecx, 2
sbb ecx, 0
call sym._set_app_type
mov rax, qword [0x140003088]
mov esi, dword [rax]
call sym.__p__fmode
mov dword [rax], esi
mov rax, qword [0x140003078]
mov esi, dword [rax]
call sym.__p__commode
mov dword [rax], esi
call dbg._setargv
mov rax, qword [section..rdata]
cmp dword [rax], 1
jne 0x1400010e5
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rsi
ret
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x140003048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x140003050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call dbg._amsg_exit
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x1400060e8], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x140003068]
mov rdx, qword [0x140003070]
call sym._initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x140003058]
mov rdx, qword [0x140003060]
call sym._initterm
mov dword [rdi], 2
test bl, bl
je 0x140001223
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x140003010]
mov rax, qword [rax]
test rax, rax
je 0x140001242
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x140003788]
call dbg._pei386_runtime_relocator
lea rcx, [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140003040]
mov qword [rcx], rax
lea rcx, [dbg.__mingw_invalidParameterHandler]
call sym._set_invalid_parameter_handler
call dbg._fpreset
movsxd rdi, dword [0x1400060d4]
lea rcx, [rdi*8 + 8]
call sym.malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d4
mov r14d, edi
mov r15, qword [0x1400060d8]
xor r12d, r12d
nop dword [rax + rax]
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sym.strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sym.malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call sym.memcpy
inc r12
cmp r14, r12
jne 0x1400012a0
jmp 0x1400012d7
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x1400060d8], rsi
call dbg.__main
mov r8, qword [0x1400060e0]
mov rax, qword [0x140003018]
mov rax, qword [rax]
mov qword [rax], r8
mov ecx, dword [0x1400060d4]
mov rdx, qword [0x1400060d8]
call sym.main
mov dword [0x1400060ec], eax
cmp dword [0x1400060cc], 0
je 0x140001342
cmp byte [0x1400060e8], 0
jne 0x140001334
call sym._cexit
mov eax, dword [0x1400060ec]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call sym.exit
int3
Function at 0x140001410
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x2e0
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x20], rdx
mov dword [rbp - 0x24], ecx
call dbg.__main
mov ecx, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x20]
mov dword [rbp + 0x25c], 0
mov dword [rbp + 0x258], ecx
mov qword [rbp + 0x250], rdx
mov qword [rbp + 0x248], 0
mov dword [rbp + 0x244], 0
mov dword [rbp + 0x240], 0
mov qword [rbp + 0x238], 0
mov qword [rbp + 0x230], 0
mov qword [rbp + 0x228], 0
lea rcx, [rbp + 0x1f8]
xor edx, edx
mov r8d, 0x30
call sym.memset
mov dword [rbp + 0x1f8], 0x30
mov qword [rbp + 0x1f0], 0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x228], rax
mov rcx, qword [rbp + 0x228]
lea rdx, str.NtCreateThreadEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x1e8], rax
lea rcx, [rbp - 0x10]
lea rdx, [0x1400030d0]
mov r8d, 0x1eb
call sym.memcpy
lea rcx, [rbp - 0x10]
mov edx, 0x1ea
mov r8d, 0x59
call sym.xor_encrypt_unsigned_char__int__char_
mov qword [rbp - 0x18], 0x1eb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x244], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x238], 0
jne 0x14000154a
mov dword [rbp + 0x25c], 1
jmp 0x140001675
mov rcx, qword [rbp + 0x238]
mov r8, qword [rbp - 0x18]
xor eax, eax
mov edx, eax
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x248], rax
cmp qword [rbp + 0x248], 0
jne 0x140001591
mov dword [rbp + 0x25c], 1
jmp 0x140001675
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x248]
lea r8, [rbp - 0x10]
mov r9, qword [rbp - 0x18]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rax, qword [rbp + 0x1e8]
mov r9, qword [rbp + 0x238]
mov r10, qword [rbp + 0x248]
lea rcx, [rbp + 0x230]
mov edx, 0x1fffff
lea r8, [rbp + 0x1f8]
xor r11d, r11d
xor r11d, r11d
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
call rax
cmp qword [rbp + 0x230], 0
jne 0x14000163f
mov dword [rbp + 0x25c], 1
jmp 0x140001675
mov rcx, qword [rbp + 0x230]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x25c], 0
mov eax, dword [rbp + 0x25c]
add rsp, 0x2e0
pop rbp
ret

Function at 0x140001dc0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sym.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sym.fwrite
mov ecx, 2
call sym.__acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call dbg.vfprintf
call sym.abort
int3
Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
xor edi, edi
cmp rax, 8
ja 0x1400025ff
mov rax, qword [0x140003008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400025ff
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400025fd
add rax, rcx
movzx ecx, word [rax + 0x18]
cmp ecx, 0x20b
jne 0x1400025fd
movzx ebx, word [rax + 6]
test ebx, ebx
je 0x1400025fd
movzx ecx, word [rax + 0x14]
lea rdi, [rcx + rax]
add rdi, 0x18
nop dword [rax]
mov r8d, 8
mov rcx, rdi
mov rdx, rsi
call sym.strncmp
test eax, eax
je 0x1400025ff
add rdi, 0x28
dec ebx
jne 0x1400025e0
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140002610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140003008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000267b
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000267b
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000267b
movzx edx, word [rax + 6]
test edx, edx
je 0x14000267b
sub rcx, qword [0x140003008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002668
add rax, 0x28
dec edx
je 0x14000267b
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002660
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002660
ret
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140003008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x1400026b5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x1400026b5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x1400026b5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x140002730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140003008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000275c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000275c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000275e
xor eax, eax
ret

Function at 0x1400027f0
Capabilities:
Parse pe header

Disassembly:
push rsi
mov rdx, qword [0x140003008]
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x14000288d
movsxd rax, dword [rdx + 0x3c]
cmp dword [rdx + rax], 0x4550
jne 0x14000288d
add rax, rdx
movzx r8d, word [rax + 0x18]
cmp r8d, 0x20b
jne 0x14000288d
mov r8d, dword [rax + 0x90]
test r8, r8
je 0x14000288d
movzx r9d, word [rax + 6]
test r9, r9
je 0x14000288d
movzx r10d, word [rax + 0x14]
shl r9d, 3
lea r9, [r9 + r9*4]
add r10, rax
add r10, 0x24
xor eax, eax
xor r11d, r11d
jmp 0x140002869
add r11, 0x28
cmp r9d, r11d
je 0x14000288f
mov esi, dword [r10 + r11]
cmp esi, r8d
ja 0x140002860
add esi, dword [r10 + r11 - 4]
cmp esi, r8d
jbe 0x140002860
add rdx, r8
add rdx, 0xc
xor eax, eax
cmp dword [rdx - 8], 0
jne 0x1400028b1
jmp 0x1400028ac
xor eax, eax
pop rsi
ret
dec ecx
add rdx, 0x14
cmp dword [rdx - 8], 0
jne 0x1400028b1
cmp dword [rdx], 0
je 0x14000288f
test ecx, ecx
jg 0x1400028a0
mov eax, dword [rdx]
add rax, qword [0x140003008]
jmp 0x14000288f
Function at 0x1400022f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x140002374
cmp byte [rcx + 0x71], 0
je 0x140002374
call fcn.1400028a0
mov r8, qword [rdi]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call qword [r8 + 0x18]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x68], ebx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x60], eax
call fcn.1400028a4
test al, al
jne 0x1400023bc
mov rcx, qword [rdi + 0x68]
lea rax, [rsp + 0x70]
lea rdx, [rdi + 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 0x140002381
sub eax, 1
je 0x140002385
cmp eax, 2
jne 0x1400023bc
mov byte [rdi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov byte [rdi + 0x71], 0
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x30]
sub rbx, rax
je 0x1400023b3
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400023bc
cmp byte [rdi + 0x71], 0
sete al
jmp 0x140002376
xor al, al
jmp 0x140002376
Function at 0x140002a88
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov r14d, edx
mov rdi, rcx
call fcn.1400028a0
lea rdx, [rbp + 0x38]
mov dword [rbp + 0x40], eax
lea rcx, [rbp + 0x40]
mov esi, eax
call fcn.1400028a4
test al, al
je 0x140002ac8
lea rcx, [rbp + 0x38]
call fcn.1400029ec
jmp 0x140002bdc
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x140002b0f
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x140002b0f
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
lea rcx, [rbp + 0x38]
mov rbx, rax
call fcn.140002fdc
mov byte [rbx], al
mov eax, r14d
jmp 0x140002bdc
cmp qword [rdi + 0x80], 0
je 0x140002bda
mov rcx, rdi
call fcn.1400025b8
lea rcx, [rbp + 0x38]
call fcn.140002fdc
cmp qword [rdi + 0x68], 0
jne 0x140002b4e
mov cl, al
mov rdx, qword [rdi + 0x80]
call fcn.1400014f4
test al, al
cmovne esi, r14d
jmp 0x140002bda
mov rcx, qword [rdi + 0x68]
lea rdx, [rdi + 0x74]
mov byte [rbp - 0x30], al
lea r9, [rbp - 0x2f]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 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 0x140002b9e
sub eax, 1
je 0x140002b9e
cmp eax, 2
jne 0x140002bda
mov cl, byte [rbp - 0x30]
jmp 0x140002b37
mov rbx, qword [rbp + 0x40]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x140002bc9
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140002bda
lea rax, [rbp - 0x30]
mov byte [rdi + 0x71], 1
cmp qword [rbp + 0x48], rax
mov eax, r14d
jne 0x140002bdc
mov eax, esi
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14000323c
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r11, rdx
test rdx, rdx
je 0x14000325f
xor edx, edx
mov rax, r10
div r9
mov al, byte [rdx + r8]
xor byte [r10 + rcx], al
inc r10
cmp r10, r11
jb 0x140003247
ret
Function at 0x140003260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x140003281
xor eax, eax
jmp 0x140003366
cmp qword [rcx + 0x68], 0
je 0x140003293
call 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]
jmp 0x140003366
mov qword [rsp + 0x50], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400032e4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400018e8
mov rcx, rsi
mov rbx, qword [rax]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbx
mov rcx, rbp
mov rdx, rax
call fcn.140002874
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
je 0x14000335b
mov rcx, rsi
call fcn.1400025b8
mov rcx, qword [rsp + 0x50]
mov ebx, 0xfff
jmp 0x14000332f
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x50]
add rbp, rax
sub rcx, rax
mov qword [rsp + 0x50], rcx
cmp rax, rbx
jne 0x140003360
cmp rcx, rbx
ja 0x140003302
test rcx, rcx
je 0x140003360
mov r9, qword [rsi + 0x80]
mov r8, rcx
mov rcx, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
jmp 0x140003360
mov rcx, qword [rsp + 0x50]
sub rdi, rcx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003374
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14000339e
call 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]
jmp 0x14000340e
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140003408
test rax, rax
jle 0x1400033e8
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.140002874
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140003408
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003408
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret