joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5039d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x38], 0
nop
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x28]
lea r8, [0x00503be4]
lea r9, [0x00503bf8]
call fcn.0042f510
mov rcx, qword [rbp + 0x38]
call fcn.004108b0
cmp eax, 0x14
jne 0x503ba1
mov rax, qword [rbp + 0x28]
cmp rax, qword [0x00b2dcb0]
mov qword [rbp + 0x28], rax
sete al
mov rcx, qword [rbp + 0x38]
mov ecx, dword [rcx]
test ecx, 0x80000000
sete cl
cmp al, cl
jne 0x503ba1
mov rcx, qword [rbp + 0x28]
call fcn.0042e9a0
mov rbx, rax
cmp word [rbx + 0x18], 0x20b
jne 0x503ae0
lea rcx, [rbx + 0x18]
mov edx, 0xf0
mov r8d, 0x40
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
mov rax, qword [rbp + 0x28]
cmp rax, qword [0x00b2dcb0]
mov qword [rbp + 0x28], rax
jne 0x503a97
lea rax, [0x004a8be0]
mov rcx, qword [rbp + 0x38]
sub eax, dword [rcx]
mov rcx, qword [rbp + 0x28]
sub eax, ecx
mov dword [rbx + 0x2c], eax
jmp 0x503aa6
mov rax, qword [rbp + 0x38]
mov eax, dword [rax]
and eax, 0x7fffffff
mov dword [rbx + 0x2c], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbx + 0x1c], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0xc]
mov dword [rbx + 0x20], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x24], eax
lea rcx, [rbx + 0x18]
mov edx, 0xf0
mov r8d, dword [rbp + 0x34]
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
jmp 0x503b8e
lea rcx, [rbx + 0x18]
mov edx, 0xe0
mov r8d, 0x40
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
mov rax, qword [rbp + 0x28]
cmp rax, qword [0x00b2dcb0]
mov qword [rbp + 0x28], rax
jne 0x503b3a
lea rax, [0x004a8be0]
mov rcx, qword [rbp + 0x38]
sub eax, dword [rcx]
mov rcx, qword [rbp + 0x28]
sub eax, ecx
mov dword [rbx + 0x2c], eax
lea rax, [0x00b2dbe0]
mov rcx, qword [rbp + 0x38]
sub eax, dword [rcx + 4]
mov rcx, qword [rbp + 0x28]
sub eax, ecx
mov dword [rbx + 0x30], eax
jmp 0x503b59
mov rax, qword [rbp + 0x38]
mov eax, dword [rax]
and eax, 0x7fffffff
mov dword [rbx + 0x2c], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 4]
and eax, 0x7fffffff
mov dword [rbx + 0x30], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbx + 0x1c], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0xc]
mov dword [rbx + 0x20], eax
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rbx + 0x24], eax
lea rcx, [rbx + 0x18]
mov edx, 0xe0
mov r8d, dword [rbp + 0x34]
lea r9, [rbp + 0x34]
call sub.kernel32.dll_VirtualProtect
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
xor rdx, rdx
xor r8, r8
call sub.kernel32.dll_FlushInstructionCache
nop
lea rcx, [rbp + 0x38]
call fcn.004100d0
lea rsp, [rbp + 0x48]
pop rbx
pop rbp
ret
Function at 0x506a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
mov rcx, rbx
call fcn.004100d0
mov rcx, rdi
call fcn.00411320
mov rcx, rsi
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x506b7a
mov dword [rbp + 0x34], 0
mov rcx, qword [rbp + 0x90]
call fcn.00411320
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [rbp + 0x34], 0
je 0x506b71
mov eax, dword [rbp + 0x34]
add eax, eax
mov dword [rbp + 0x34], eax
mov ecx, 0x40
mov edx, dword [rbp + 0x34]
call sub.kernel32.dll_LocalAlloc
mov rsi, rax
mov rcx, qword [rbp + 0x90]
call fcn.00411320
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x506b69
cmp dword [rbp + 0x30], 1
jne 0x506b57
mov rcx, rbx
mov rdx, rsi
xor r8, r8
call fcn.00410cf0
jmp 0x506b69
mov rcx, rbx
mov rdx, rsi
mov r8d, dword [rbp + 0x34]
xor r9, r9
call fcn.004103f0
mov rcx, rsi
call sub.kernel32.dll_LocalFree
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_RegCloseKey
mov rax, rbx
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x514f10
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0
mov dword [rcx + 0x14], 0
lea rax, [rcx + 0x18]
mov rcx, rax
mov edx, 0x40
xor r8, r8
call fcn.0040ba20
add rsp, 0x28
ret
Function at 0x515990
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x3c], edx
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], r9
mov rcx, qword [rbp + 0x80]
call fcn.00410210
mov rcx, qword [rbp + 0x88]
call fcn.00410210
nop
mov rcx, qword [rbp + 0x30]
call fcn.00410080
mov rcx, qword [rbp + 0x80]
call fcn.00411e10
mov ecx, dword [rbp + 0x3c]
mov ecx, ecx
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x515ad0
mov dword [rbp + 0x44], 0
mov rcx, qword [rbp + 0x88]
call fcn.00411e10
mov rcx, qword [rbp + 0x48]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
cmp dword [rbp + 0x44], 0
je 0x515ac7
mov eax, dword [rbp + 0x44]
add eax, eax
mov dword [rbp + 0x44], eax
mov ecx, 0x40
mov edx, dword [rbp + 0x44]
call sub.kernel32.dll_LocalAlloc
mov rbx, rax
mov rcx, qword [rbp + 0x88]
call fcn.00411e10
mov rcx, qword [rbp + 0x48]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x40]
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x515abf
mov eax, dword [rbp + 0x40]
sub eax, 1
cmp eax, 2
jb 0x515aa1
sub eax, 6
test eax, eax
jne 0x515aaf
mov rcx, qword [rbp + 0x30]
mov rdx, rbx
call fcn.00411eb0
jmp 0x515abf
mov rcx, qword [rbp + 0x30]
mov rdx, rbx
mov r8d, dword [rbp + 0x44]
call fcn.00410340
mov rcx, rbx
call sub.kernel32.dll_LocalFree
mov rcx, qword [rbp + 0x48]
call sub.advapi32.dll_RegCloseKey
nop
lea rcx, [rbp + 0x80]
mov edx, 2
call fcn.00410160
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x58]
pop rbx
pop rbp
ret
Function at 0x516d20
Capabilities:
Get disk information

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
nop
mov ecx, 0x104
lea rdx, [rbp + 0x254]
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x516e3c
lea rbx, [rbp + 0x254]
mov word [rbx + 4], 0
mov rcx, rbx
lea rdx, [rbp + 0x48]
mov r8d, 0x104
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x516e22
lea rcx, [rbp + 0x40]
lea rdx, [rbp + 0x48]
mov r8d, 0x106
call fcn.00411f10
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x28]
mov r8d, 1
call fcn.00412710
test eax, eax
jle 0x516e22
xor rsi, rsi
cmp qword [rbp + 0x40], 0
je 0x516dd2
mov rax, qword [rbp + 0x40]
mov esi, dword [rax - 4]
xor rdi, rdi
mov rax, qword [rbp + 0x28]
test rax, rax
je 0x516de5
mov rax, qword [rbp + 0x28]
mov edi, dword [rax - 4]
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.00411eb0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov r8d, esi
add r8d, 1
mov r9d, edi
sub r9d, esi
call fcn.00412480
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x38]
mov r8, qword [rbp + 0x30]
call fcn.00412270
jmp 0x516e3b
add rbx, 2
cmp word [rbx], 0
jne 0x516e1e
add rbx, 4
test rbx, rbx
je 0x516e3b
cmp word [rbx], 0
jne 0x516d72
nop
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.00410160
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x468]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x5d4570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x5d45a7
mov rcx, rbp
call fcn.005d4460
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x5d45c6
mov rcx, rbp
call fcn.005d4460
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.005d3270
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x5e73c0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x18], 0
jne 0x5e73f3
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x5e7451
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1c], 0
jne 0x5e7451
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x5e7451
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1a], 0
mov byte [rax + 0x18], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x5e747b
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00bb8008]
call fcn.004169f0
mov rcx, qword [0x005a52b8]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00489490
mov rcx, rax
call fcn.0040f120
jmp 0x5e747b
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00bb8008]
call fcn.004169f0
mov rcx, qword [0x005a52b8]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00489490
mov rcx, rax
call fcn.0040f120
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410160
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x5e8320
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1a]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1a], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.005e7200
jmp 0x5e837b
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x5e83a0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.005e7200
cmp esi, 1
jne 0x5e83ca
mov byte [rbx + 0x1a], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x5ec480
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x00bc3960], 0
jne 0x5ec535
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc
mov rbx, rax
mov rax, qword [0x00bc3958]
mov qword [rbx], rax
lea rcx, [0x00b47830]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00408cc0
lea rax, [0x005ec440]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.005ec470
mov dword [rsi + 1], eax
mov rax, qword [0x00bc3960]
mov qword [rsi + 5], rax
mov qword [0x00bc3960], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x5ec4f3
mov qword [0x00bc3958], rbx
mov rax, qword [0x00bc3960]
mov rsi, qword [0x00bc3960]
mov rcx, qword [rsi + 5]
mov qword [0x00bc3960], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x622fd0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x78], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
mov rcx, qword [rbp + 0xc8]
call fcn.00410210
nop
mov rcx, qword [rbp + 0xc8]
call fcn.00411e10
mov rcx, rax
lea rdx, [rbp + 0x9c]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0
je 0x6231a9
mov ecx, dword [rbp + 0xa4]
call fcn.004088f0
mov qword [rbp + 0xa8], rax
nop
mov rcx, qword [rbp + 0xc8]
call fcn.00411e10
mov rcx, rax
xor rdx, rdx
mov r8d, dword [rbp + 0xa4]
mov r9, qword [rbp + 0xa8]
call sub.version.dll_GetFileVersionInfoW
mov rcx, qword [rbp + 0xa8]
lea rdx, [0x00623264]
lea r8, [rbp + 0x90]
lea r9, [rbp + 0xa0]
call sub.version.dll_VerQueryValueW
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov eax, dword [rax + 8]
shr eax, 0x10
mov word [rbp + 0x8e], ax
mov rax, qword [rbp + 0x80]
movzx rax, word [rax + 8]
and ax, 0xffff
mov word [rbp + 0x8c], ax
mov rax, qword [rbp + 0x80]
mov eax, dword [rax + 0xc]
shr eax, 0x10
mov word [rbp + 0x8a], ax
mov rax, qword [rbp + 0x80]
add byte [rax + 0xf], cl
mov bh, 0x40
or al, 0x66
and eax, 0xffffffff

Function at 0x656e80
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
xor rax, rax
xor rcx, rcx
sub edx, 1
cmp ecx, edx
jg 0x656ec2
add edx, 1
mov r9d, eax
and r9w, 0xf800
movzx r9d, r9w
shr r9d, 0xb
shl eax, 5
or r9w, ax
mov eax, r9d
movzx r9w, byte [r8]
xor ax, r9w
add r8, 1
add ecx, 1
cmp ecx, edx
jne 0x656e93
nop
ret
Function at 0x1400063b0
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 0x1400063d8
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 0x1400063fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006400
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006459
test ecx, ecx
jle 0x140006439
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 0x140006459
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006459
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 0x140006480
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 0x1400064a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400064b8
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 0x1400064d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400064d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006512
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 0x1400065ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000654d
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 0x14000658e
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 0x1400065ae
cmp rbx, rax
ja 0x140006560
test rbx, rbx
je 0x1400065ae
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 0x140006a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f1ec0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140006a3d
xor eax, eax
jmp 0x140006ba9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006a77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140006a77
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 0x140006ba9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140006b9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006aba
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 0x140006ae5
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 0x140006ba1
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 0x140006b54
sub eax, 1
je 0x140006b54
cmp eax, 2
jne 0x140006b9c
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 0x140006ba1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006b82
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 0x140006b9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140006ba1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ba580
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008540
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f1ec0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008613
cmp byte [rcx + 0x71], 0
je 0x140008613
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000860f
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 0x1400085d4
sub eax, 1
je 0x1400085d8
cmp eax, 2
jne 0x14000860f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ba580
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008606
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 0x14000860f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400085bc
xor al, al
jmp 0x1400085bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ba580
add rsp, 0x60
pop rbx
ret

Function at 0x140018230
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140018264
mov eax, esi
lea ecx, [rax - 0x6a]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140018250
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.14000eb00
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140018289
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14002ae50
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140018303
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400182fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400182fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ba81c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret