joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400415f0
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x1400d9bc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [r11 - 0x38]
cmp byte [0x1400d9ef1], cl
lea r8, [r11 - 0x30]
mov qword [r11 - 0x40], rcx
xorps xmm0, xmm0
mov dword [rsp + 0x4c], ecx
mov qword [r11 - 0x48], rcx
lea r9d, [rcx + 0x20]
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x20], rax
mov eax, dword [0x1400d9fb0]
mov qword [r11 - 0x28], rdx
mov edx, 0x222404
mov qword [r11 - 0x58], rcx
mov rcx, qword [0x1400d9fa8]
mov qword [r11 - 0x18], 8
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], eax
jne 0x140041664
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movsd xmm0, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005aa20
add rsp, 0x78
ret

Function at 0x140041690
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x1400d9bc0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ecx, ecx
mov qword [rsp + 0x48], r8
xor eax, eax
mov qword [rsp + 0x38], rcx
cmp byte [0x1400d9ef1], cl
lea r8, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x44], ecx
mov rbx, rdx
movups xmmword [rsp + 0x70], xmm0
mov dword [r11 - 0x40], eax
lea r9d, [rcx + 0x20]
mov dword [r11 - 0x20], eax
xorps xmm1, xmm1
lea rax, [r11 - 0x78]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x50], rax
mov edx, 0x222404
mov eax, dword [0x1400d9fb0]
mov qword [r11 - 0x80], 0x60
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x1400d9fa8]
mov dword [rsp + 0x40], eax
movsd qword [r11 - 0x48], xmm1
movsd qword [r11 - 0x28], xmm1
movaps xmmword [r11 - 0x58], xmm0
movaps xmmword [r11 - 0x38], xmm0
jne 0x14004173b
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movaps xmm0, xmmword [rsp + 0x60]
mov rax, rbx
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rbx + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x90]
movups xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x30], xmm1
movaps xmm1, xmmword [rsp + 0xb0]
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14005aa20
add rsp, 0xd0
pop rbx
ret
Function at 0x1400417a0
Capabilities:
Interact with driver via ioctl

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x1400d9bc0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ecx, ecx
lea rax, [r11 - 0x38]
cmp byte [0x1400d9ef1], cl
lea r8, [r11 - 0x30]
mov qword [r11 - 0x40], rcx
mov dword [rsp + 0x4c], ecx
mov qword [r11 - 0x48], rcx
lea r9d, [rcx + 0x20]
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x20], rax
mov eax, dword [0x1400d9fb0]
mov qword [r11 - 0x28], rdx
mov edx, 0x222404
mov qword [r11 - 0x58], rcx
mov qword [r11 - 0x38], rcx
mov rcx, qword [0x1400d9fa8]
mov qword [r11 - 0x18], 8
mov dword [rsp + 0x48], eax
jne 0x14004180f
mov edx, 0x220c58
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005aa20
add rsp, 0x78
ret
Function at 0x140048280
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [0x1400da500]
xor ebx, ebx
mov eax, dword [0x1400da170]
mov dword [0x1400da16c], eax
test rcx, rcx
jne 0x14004842a
mov rax, qword gs:[0x60]
mov r11d, 0xf4d8b55
mov qword [rsp + 0x60], rbp
mov ebp, ebx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x38], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r12, qword [rcx + 0x10]
mov rsi, r12
nop
movups xmm0, xmmword [rsi + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14004832c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x140048324
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x140048310
cmp edx, ebp
jne 0x1400483f3
mov r9, qword [rsi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r15, rcx
mov r10d, ecx
shr r15, 0x20
add r10, r9
cmp r10, r9
je 0x1400483f3
mov r8d, dword [r10 + 0x18]
test r8d, r8d
je 0x1400483f3
mov r14d, dword [r10 + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [r14 + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400483a7
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x140048390
cmp edx, r11d
je 0x1400483b3
test r8d, r8d
jne 0x140048370
jmp 0x1400483f3
mov ecx, dword [r10 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov ecx, dword [rcx + rdx*4]
add rcx, r9
cmp rcx, r10
jbe 0x140048405
lea rax, [r15 + r10]
cmp rcx, rax
jae 0x140048405
mov ebp, 0x811c9dc5
mov rsi, r12
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x5c], ebp
mov r11, qword [rsp + 0x58]
shr r11, 0x20
mov rax, qword [rsi]
mov rsi, rax
cmp rax, r12
jne 0x1400482e0
mov rcx, rbx
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov qword [0x1400da500], rcx
call rcx
mov ecx, dword [0x1400da16c]
mov dword [0x1400da170], eax
test ecx, ecx
je 0x14004848b
sub eax, ecx
cmp eax, 0x1770
jbe 0x14004848b
mov dword [rsp + 0x50], 0x15020739
mov word [rsp + 0x54], 0x100
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx + 0x6d]
xor byte [rsp + rbx + 0x50], al
inc rbx
cmp rbx, 4
jb 0x140048460
lea rcx, [rsp + 0x50]
mov byte [rsp + 0x55], 0
call fcn.14004a7b0
mov qword [0], 1
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400484a0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
je 0x1400484c3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x6d]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x1400484b0
mov byte [rcx + 5], 0
mov rax, rcx
ret
Function at 0x14004a5a0
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400da538]
test rax, rax
jne 0x14004a785
xor r10d, r10d
mov dword [rsp + 0x28], r10d
mov eax, 0xfaba0065
mov dword [rsp + 0x24], eax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov r11, qword [rcx + 0x10]
mov qword [rsp + 0x48], r11
mov r15, r11
mov qword [rsp + 0x50], r11
mov rcx, r11
nop dword [rax + rax]
movups xmm0, xmmword [rcx + 0x58]
movups xmmword [rsp + 0x58], xmm0
movd ecx, xmm0
sub cx, 8
mov word [rsp + 0x58], cx
test r10d, r10d
je 0x14004a656
mov rdx, qword [rsp + 0x60]
movzx ecx, cx
shr rcx, 1
lea r9, [rdx + rcx*2]
mov r8d, 0x811c9dc5
mov qword [rsp + 0x38], rdx
cmp rdx, r9
je 0x14004a64d
movsx ecx, byte [rdx]
xor ecx, r8d
imul r8d, ecx, 0x1000193
add rdx, 2
jmp 0x14004a630
cmp r8d, r10d
jne 0x14004a765
mov rbx, qword [r11 + 0x30]
mov qword [rsp + 0x68], rbx
movsxd rcx, dword [rbx + 0x3c]
mov r14, qword [rcx + rbx + 0x88]
mov qword [rsp + 0xa8], r14
mov r9d, r14d
add r9, rbx
mov qword [rsp + 0x70], r9
shr r14, 0x20
mov dword [rsp + 0x78], r14d
cmp r9, rbx
je 0x14004a765
mov edi, dword [r9 + 0x18]
mov dword [rsp + 0x20], edi
nop dword [rax + rax]
mov ecx, edi
dec edi
mov dword [rsp + 0x20], edi
test ecx, ecx
je 0x14004a765
mov edx, dword [r9 + 0x20]
add rdx, rbx
mov r8d, dword [rdx + rdi*4]
add r8, rbx
mov qword [rsp + 0x40], r8
mov edx, 0x811c9dc5
nop dword [rax + rax]
movsx ecx, byte [r8]
inc r8
mov qword [rsp + 0x40], r8
test cl, cl
jne 0x14004a758
cmp edx, eax
jne 0x14004a753
mov ecx, dword [r9 + 0x1c]
add rcx, rbx
mov eax, dword [r9 + 0x24]
add rax, rbx
movzx eax, word [rax + rdi*2]
mov edx, dword [rcx + rax*4]
add rdx, rbx
cmp rdx, r9
jbe 0x14004a77b
lea rax, [r9 + r14]
cmp rdx, rax
jae 0x14004a77b
mov r10d, 0x811c9dc5
mov dword [rsp + 0xa0], r10d
mov eax, r10d
mov dword [rsp + 0xa4], eax
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0x2e
je 0x14004a731
inc rdx
jmp 0x14004a722
inc rdx
mov qword [rsp + 0x30], rdx
cmp byte [rdx], 0
je 0x14004a740
jmp 0x14004a731
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], r10d
mov r11, r15
mov qword [rsp + 0x48], r15
jmp 0x14004a765
jmp 0x14004a6a0
xor ecx, edx
imul edx, ecx, 0x1000193
jmp 0x14004a6d0
mov r11, qword [r11]
mov rcx, r11
mov qword [rsp + 0x48], r11
cmp r11, r15
jne 0x14004a600
xor edx, edx
mov qword [0x1400da538], rdx
mov rax, rdx
mov ecx, 0x13333337
call rax
jmp 0x14004a790
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14004a7b0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov rdi, rcx
mov dword [rsp + 0x20], 0x1f1d1c08
xor edx, edx
mov dword [rsp + 0x24], 0x54495203
mov word [rsp + 0x28], 0x100
nop dword [rax]
lea eax, [rdx + 0x6d]
xor byte [rsp + rdx + 0x20], al
inc rdx
cmp rdx, 8
jb 0x14004a7e0
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x29], 0
mov rcx, rbx
call fcn.140040990
mov rdx, rdi
mov rcx, rbx
call fcn.140040990
lea rdx, [0x1400413b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x14004a8a7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x14004a8a7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14004a8a2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14004a880
cmp r8d, 0x2fa62ca8
je 0x14004a8ac
test r9d, r9d
jne 0x14004a860
mov rax, qword [rax]
jmp 0x14004a830
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 0xbb8
add rax, r10
call rax
mov rbx, qword [rsp + 0x40]
mov qword [0], 1
add rsp, 0x30
pop rdi
ret
Function at 0x140058390
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400d9bc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r10, qword [0x1400da530]
xor r11d, r11d
mov qword [rsp + 0x58], r11
test r10, r10
jne 0x14005856d
mov rax, qword gs:[0x60]
mov r10d, 0xdf6a51c
mov qword [rsp + 0x98], rbp
mov ebp, r11d
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rdi
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x90], rbx
mov r12, qword [rcx + 0x10]
mov rsi, r12
mov qword [rsp + 0x70], r15
nop dword [rax]
movups xmm0, xmmword [rsi + 0x58]
movd eax, xmm0
sub ax, 8
test ebp, ebp
je 0x14005845c
psrldq xmm0, 8
mov edx, 0x811c9dc5
movq rcx, xmm0
movzx eax, ax
shr rax, 1
lea r8, [rcx + rax*2]
cmp rcx, r8
je 0x140058454
nop
movsx eax, byte [rcx]
add rcx, 2
xor eax, edx
imul edx, eax, 0x1000193
cmp rcx, r8
jne 0x140058440
cmp edx, ebp
jne 0x140058522
mov r9, qword [rsi + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rcx, qword [rax + r9 + 0x88]
mov r15, rcx
mov ebx, ecx
shr r15, 0x20
add rbx, r9
cmp rbx, r9
je 0x140058522
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x140058522
mov r14d, dword [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [r14 + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x1400584d7
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x1400584c0
cmp edx, r10d
je 0x1400584e3
test r8d, r8d
jne 0x1400584a0
jmp 0x140058522
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov r10d, dword [rcx + rdx*4]
add r10, r9
cmp r10, rbx
jbe 0x140058534
lea rax, [rbx + r15]
cmp r10, rax
jae 0x140058534
mov ebp, 0x811c9dc5
mov rsi, r12
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x54], ebp
mov r10, qword [rsp + 0x50]
shr r10, 0x20
mov rax, qword [rsi]
mov rsi, rax
cmp rax, r12
jne 0x140058410
mov r10, r11
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [0x1400da530], r10
movdqa xmm0, xmmword [0x1400b5f60]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xd6232a39
mov dword [rsp + 0x44], 0xdbdbcdc3
mov word [rsp + 0x48], 0xda
mov byte [rsp + 0x4a], 1
nop word [rax + rax]
lea eax, [r11 + 0x6d]
xor byte [rsp + r11 + 0x30], al
inc r11
cmp r11, 0x19
jb 0x1400585a0
lea rax, [rsp + 0x58]
mov byte [rsp + 0x4a], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call r10
test eax, eax
jne 0x1400585e9
mov qword [0], 1
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005aa20
add rsp, 0x88
ret
Function at 0x14005b660
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000240a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000240a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.VCRUNTIME140_1.dll___CxxFrameHandler4
jne 0x14000240a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000240a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000240a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000240c
xor al, al
add rsp, 0x28
ret
Function at 0x140042100
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 0x140042128
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 0x14004214e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140042150
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400421a9
test ecx, ecx
jle 0x140042189
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 0x1400421a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400421a9
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 0x1400421d0
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 0x1400421f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140042208
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 0x140042224
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140042226
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140042262
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 0x1400422fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004229d
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 0x1400422de
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 0x1400422fe
cmp rbx, rax
ja 0x1400422b0
test rbx, rbx
je 0x1400422fe
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 0x140042770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14015b0c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004279d
xor eax, eax
jmp 0x140042909
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400427d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400427d7
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 0x140042909
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400428fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004281a
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 0x140042845
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 0x140042901
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 0x1400428b4
sub eax, 1
je 0x1400428b4
cmp eax, 2
jne 0x1400428fc
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 0x140042901
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400428e2
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 0x1400428fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140042901
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14012d800
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140043060
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14015b0c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140043133
cmp byte [rcx + 0x71], 0
je 0x140043133
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14004312f
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 0x1400430f4
sub eax, 1
je 0x1400430f8
cmp eax, 2
jne 0x14004312f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012d800
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140043126
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 0x14004312f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400430dc
xor al, al
jmp 0x1400430dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012d800
add rsp, 0x60
pop rbx
ret
Function at 0x14004ae30
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x14015b0c0]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], 7
mov qword [rbp + 0x50], reloc.WS2_32.dll_ntohs
mov rax, qword [str.key.txt]
mov dword [rbp + 0x38], eax
movzx eax, word [0x14014324c]
mov word [rbp + 0x3c], ax
movzx eax, byte [reloc.WS2_32.dll_WSACleanup]
mov byte [rbp + 0x3e], al
mov byte [rbp + 0x3f], 0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x30]
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140042a80
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea r8, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], r8
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x30], r8
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.140042970
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x14004af7f
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004af7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004af7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14012daa4
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.14012d800
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rbp
ret