joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400074c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400074c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140001d50
mov rax, qword [0x14000c098]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140001c0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140001c95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140001bf0
mov rcx, rdi
call fcn.140002720
test rax, rax
mov r12, rax
je 0x140001da2
mov rax, qword [0x14000c098]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140002860
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c098]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d85
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d00
add dword [0x14000c094], 1
cmp ebx, 8
jae 0x140001cc1
test bl, 4
jne 0x140001d60
test ebx, ebx
je 0x140001cb6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140001d74
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140001cb6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140001cda
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14000c098]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b50
xor esi, esi
jmp 0x140001c17
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140001cb6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140001cb6
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140001b50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140001b50
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140002370
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x1400023c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400023bb
test rsi, rsi
je 0x1400023bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023a0
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002720
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400099c0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000278f
mov rcx, r9
call fcn.1400025f0
test eax, eax
je 0x14000278f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000278d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002784
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000278f
add rdx, 0x28
cmp rdx, r9
jne 0x140002770
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140007b90
Capabilities:
Log keystrokes via polling

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
call fcn.140001950
lea rdx, [0x140009288]
lea rcx, str.log.txt
call sub.msvcrt.dll_fopen
test rax, rax
mov qword [0x14000c030], rax
je 0x140007c4d
lea r12, [rsp + 0x28]
lea rbx, [rsp + 0x37]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__localtime64]
lea r8, str._Y__m__d__H:_M:_S
mov edx, 0x19
mov rcx, rbx
mov r9, rax
call sub.msvcrt.dll_strftime
mov rcx, qword [0x14000c030]
mov r8, rbx
lea rdx, str._n_n__s_START_n
call fcn.140001530
mov rsi, qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, 8
mov ecx, ebx
call rsi
cmp ax, 0x8001
jne 0x140007c39
mov ecx, ebx
call fcn.140001559
mov rcx, qword [0x14000c030]
call sub.msvcrt.dll_fflush
inc ebx
cmp ebx, 0x100
jne 0x140007c1c
mov ecx, 0xa
call r12
jmp 0x140007c17
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
Function at 0x140004010
Capabilities:
Encode data using base64

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rdx]
test rcx, rcx
jne 0x14000405c
xor edx, edx
lea rcx, [0x1400b9950]
call fcn.14000ed30
mov rdx, rax
xor eax, eax
mov rbx, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsp, rbp
pop rbp
ret
mov qword [rbp + 0x18], rdx
mov rbx, rcx
mov rax, rbx
movabs rdx, 0xaaaaaaaaaaaaaaab
mul rdx
shr rdx, 1
imul rax, rdx, 3
sub rbx, rax
mov rax, rdx
mov rdx, rbx
mov qword [rbp - 8], rdx
mov rdi, qword [rbp + 0x10]
mov r8, qword [rdi + 8]
mov r10, qword [rbp + 0x18]
mov r9, qword [r10 + 8]
xor r11d, r11d
mov rsi, rax
test rsi, rsi
je 0x140004158
movzx edx, byte [r9]
shl edx, 0x10
movzx ecx, byte [r9 + 1]
shl ecx, 8
or edx, ecx
movzx eax, byte [r9 + 2]
or edx, eax
mov eax, edx
sar eax, 0x12
cdqe
mov rbx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [rax + rbx]
mov rcx, r8
inc r8
mov byte [rcx], dil
add rcx, 1
mov eax, edx
sar eax, 0xc
and eax, 0x3f
cdqe
mov r10, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ebx, byte [rax + r10]
mov rdi, r8
inc r8
mov byte [rdi], bl
add rdi, 1
mov eax, edx
sar eax, 6
and eax, 0x3f
cdqe
mov rcx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx r10d, byte [rax + rcx]
mov rbx, r8
inc r8
mov byte [rbx], r10b
add rbx, 1
mov eax, edx
and eax, 0x3f
cdqe
mov rdi, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rax + rdi]
mov r10, r8
inc r8
mov byte [r10], cl
add r10, 1
add r9, 3
inc r11
cmp r11, rsi
jb 0x1400040a6
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x140004226
movzx edx, byte [r9]
shl edx, 0x10
cmp rsi, 2
jne 0x14000417c
movzx ebx, byte [r9 + 1]
shl ebx, 8
jmp 0x14000417e
xor ebx, ebx
or edx, ebx
mov eax, edx
sar eax, 0x12
cdqe
mov rcx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [rax + rcx]
mov r10, r8
inc r8
mov byte [r10], dil
add r10, 1
mov eax, edx
sar eax, 0xc
and eax, 0x3f
cdqe
mov rbx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [rax + rbx]
mov rdi, r8
inc r8
mov byte [rdi], cl
add rdi, 1
cmp rsi, 1
je 0x140004205
cmp rsi, 2
je 0x1400041d1
jmp 0x140004224
mov eax, edx
sar eax, 6
and eax, 0x3f
cdqe
mov rcx, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx esi, byte [rax + rcx]
mov rdi, r8
inc r8
mov byte [rdi], sil
add rdi, 1
mov rbx, r8
inc r8
mov byte [rbx], 0x3d
add rbx, 1
jmp 0x140004226
mov edx, 0x3d
mov rax, r8
inc r8
mov byte [rax], dl
add rax, 1
mov rbx, r8
inc r8
mov byte [rbx], dl
add rbx, 1
jmp 0x140004226
ud2
mov rax, r8
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
sub rax, rdx
mov rbx, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsp, rbp
pop rbp
ret
Function at 0x14000bd10
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1c0
mov qword [rbp - 0x198], rbx
mov qword [rbp - 0x190], rsi
mov qword [rbp - 0x188], rdi
mov qword [rbp - 0x180], r12
mov qword [rbp - 0x178], r13
mov qword [rbp - 0x170], r14
mov qword [rbp - 0x168], r15
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x160], rax
mov qword [rbp - 0x158], rdx
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x140]
call fcn.14000ae90
sub rsp, 8
sub rsp, 8
mov rbx, qword [rbp - 0x140]
cmp rbx, 0xffffffffffffffff
jne 0x14000bd9f
lea rcx, [rbp - 0x130]
jmp 0x14000bda2
mov rcx, rbx
mov qword [rbp - 0x150], rcx
sub rsp, 0x20
call sub.KERNEL32.dll_DeleteFileW
add rsp, 0x28
push rax
mov rax, qword [rbp - 0x160]
mov qword [rbp - 0x20], rax
mov rdx, qword [rbp - 0x158]
mov qword [rbp - 0x18], rdx
lea r9, [rbp - 0x20]
mov r8, qword [rbp - 0x150]
lea rcx, str.C:Ddmd_2.096.1windows_bin...._srcphobos_std_file.d
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], 0x38
lea rdx, [rbp - 0x10]
mov ecx, 0x429
sub rsp, 0x20
call fcn.140015d10
add rsp, 0x30
sub rsp, 8
call fcn.14000be10
add rsp, 8
jmp 0x14000be25
mov rbx, qword [rbp - 0x198]
mov rsi, qword [rbp - 0x190]
mov rdi, qword [rbp - 0x188]
mov r12, qword [rbp - 0x180]
mov r13, qword [rbp - 0x178]
mov r14, qword [rbp - 0x170]
mov r15, qword [rbp - 0x168]
mov rsp, rbp
pop rbp
ret

Function at 0x14000be60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x160
mov qword [rbp - 0x140], rbx
mov qword [rbp - 0x138], rsi
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x130]
call fcn.14000ae90
mov rbx, qword [rbp - 0x130]
cmp rbx, 0xffffffffffffffff
jne 0x14000beb6
lea rsi, [rbp - 0x120]
jmp 0x14000beb9
mov rsi, rbx
mov rcx, rsi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
mov byte [rbp - 0x10], al
lea rcx, [rbp - 0x130]
call fcn.14000b2d0
mov al, byte [rbp - 0x10]
mov rbx, qword [rbp - 0x140]
mov rsi, qword [rbp - 0x138]
mov rsp, rbp
pop rbp
ret
Function at 0x1400154f0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov qword [rbp - 0xb8], rbx
mov qword [rbp - 0xb0], rsi
mov qword [rbp - 0xa8], rdi
mov qword [rbp - 0xa0], r12
mov qword [rbp - 0x98], r13
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov r12, rdx
mov rsi, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x28]
test cl, cl
je 0x14001561b
xor r10d, r10d
mov qword [rbp - 0xc0], r10
mov qword [rbp - 0xc8], 0x8000080
mov qword [rbp - 0xd0], 4
mov r9, r10
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
setne r10b
mov qword [rbp - 0xd0], r10
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp - 0x90], rax
mov qword [rbp - 0x88], rdx
lea r9, [rbp - 0x90]
mov r8, rsi
lea rcx, str.std_file.d
mov qword [rbp - 0x78], rcx
mov r10d, 0xa
mov qword [rbp - 0x80], r10
lea rdx, [rbp - 0x80]
mov ecx, 0x366
call fcn.14001e1a0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
setne r10b
mov qword [rbp - 0xd0], r10
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea r9, [rbp - 0x70]
mov r8, rsi
lea rcx, str.std_file.d
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], 0xa
lea rdx, [rbp - 0x60]
mov ecx, 0x367
call fcn.14001e1a0
jmp 0x140015696
xor ecx, ecx
mov qword [rbp - 0xc0], rcx
mov qword [rbp - 0xc8], 0x8000080
mov qword [rbp - 0xd0], 2
mov r9, rcx
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
call sub.KERNEL32.dll_CreateFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
setne r10b
mov qword [rbp - 0xd0], r10
mov rdx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea r9, [rbp - 0x50]
mov r8, rsi
lea rcx, str.std_file.d
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x40], 0xa
lea rdx, [rbp - 0x40]
mov ecx, 0x372
call fcn.14001e1a0
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rdi
xor edi, edi
mov r13, qword [r12]
test r13, r13
je 0x1400156f5
mov r9, r13
sub r9, rdi
mov r8d, 0x40000000
cmp r9, r8
jae 0x1400156bf
mov rsi, r9
jmp 0x1400156c2
mov rsi, r8
mov qword [rbp - 0xd0], 0
lea r9, [rbp - 0x30]
mov r8d, esi
mov rdx, qword [r12 + 8]
add rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_WriteFile
mov r10d, dword [rbp - 0x30]
cmp r10, rsi
jne 0x1400156f5
add rdi, r10
cmp rdi, r13
jne 0x1400156a9
cmp rdi, r13
jne 0x140015706
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
test eax, eax
jne 0x14001570b
xor r8d, r8d
jmp 0x140015711
mov r8d, 1
mov qword [rbp - 0xd0], r8
mov rdx, qword [rbp + 0x28]
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea r9, [rbp - 0x20]
mov r8, qword [rbp + 0x20]
lea rcx, str.std_file.d
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], 0xa
lea rdx, [rbp - 0x10]
mov ecx, 0x37f
call fcn.14001e1a0
mov rbx, qword [rbp - 0xb8]
mov rsi, qword [rbp - 0xb0]
mov rdi, qword [rbp - 0xa8]
mov r12, qword [rbp - 0xa0]
mov r13, qword [rbp - 0x98]
mov rsp, rbp
pop rbp
ret
Function at 0x1400161f0
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], rbx
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov dword [rbp - 8], 0
lea rdx, [rbp - 8]
mov rcx, qword [rbp + 0x18]
call sub.KERNEL32.dll_GetFileSize
cmp eax, 0xffffffff
setne r8b
mov byte [rbp - 4], r8b
je 0x140016241
mov edx, eax
mov ecx, dword [rbp - 8]
call fcn.14001e530
mov rbx, qword [rbp + 0x10]
mov qword [rbx], rax
mov al, byte [rbp - 4]
mov rbx, qword [rbp - 0x10]
mov rsp, rbp
pop rbp
ret

Function at 0x140016250
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r13
mov rbx, rcx
mov r12, rdx
mov r13, r8
xor esi, esi
test rbx, rbx
je 0x1400162e8
mov qword [rbp - 0x40], 0
lea r9, [rbp - 8]
mov qword [rbp - 0x10], r9
mov rdx, rbx
sub rdx, rsi
mov ecx, 0xffff0000
sub rsp, 0x20
call fcn.14001e550
add rsp, 0x20
mov edi, eax
mov r8d, edi
mov r9, qword [rbp - 0x10]
lea rdx, [r12 + rsi]
mov rcx, r13
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1400162c2
cmp dword [rbp - 8], edi
je 0x1400162dd
xor eax, eax
mov rbx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov r12, qword [rbp - 0x20]
mov r13, qword [rbp - 0x18]
mov rsp, rbp
pop rbp
ret
mov r9d, edi
add rsi, r9
cmp rsi, rbx
jne 0x14001627c
mov eax, 1
mov rbx, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov r12, qword [rbp - 0x20]
mov r13, qword [rbp - 0x18]
mov rsp, rbp
pop rbp
ret
Function at 0x140016d80
Capabilities:
Create thread
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp - 0x90], rbx
mov qword [rbp - 0x88], rsi
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x60], r15
mov qword [rbp + 0x10], rcx
mov al, byte [0x1400dc400]
mov byte [rbp - 0x50], al
mov byte [0x1400dc400], 1
mov rsi, rcx
add rsi, 0xb0
mov edi, dword [rcx + 0x40]
lea r12, [0x1400205b0]
mov r13, rcx
mov rbx, rcx
add rbx, 0x10
push rbx
push 4
mov r9, rcx
lea r8, [0x1400205b0]
mov edx, edi
xor ecx, ecx
sub rsp, 0x20
call fcn.14008d42c
add rsp, 0x30
mov qword [rsi], rax
mov r10, qword [rbp + 0x10]
cmp qword [r10 + 0xb0], 0
jne 0x140016e2e
lea rax, str.Error_creating_thread
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0x15
lea rcx, [rbp - 0x40]
sub rsp, 0x20
call fcn.1400207d0
lea rsi, [0x1400dc348]
lea rcx, [0x1400dc360]
sub rsp, 0x20
call sub.KERNEL32.dll_EnterCriticalSection
add rsp, 0x20
inc qword [0x1400dc3f8]
mov rdx, qword [0x1400dc3f8]
shl rdx, 3
mov rcx, qword [0x1400dc3f0]
sub rsp, 0x20
call fcn.14008af64
add rsp, 0x20
mov qword [0x1400dc3f0], rax
mov rbx, qword [rbp + 0x10]
mov rsi, qword [0x1400dc3f8]
lea rax, [rax + rsi*8]
mov qword [rax - 8], rbx
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rdx + 0xb0]
sub rsp, 0x20
call sub.KERNEL32.dll_ResumeThread
add rsp, 0x20
cmp eax, 0xffffffff
jne 0x140016ec6
lea rbx, str.Error_resuming_thread
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x30], 0x15
lea rcx, [rbp - 0x30]
sub rsp, 0x20
call fcn.1400207d0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x58], rax
sub rsp, 8
call fcn.140016f15
add rsp, 8
mov rax, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x90]
mov rsi, qword [rbp - 0x88]
mov rdi, qword [rbp - 0x80]
mov r12, qword [rbp - 0x78]
mov r13, qword [rbp - 0x70]
mov r14, qword [rbp - 0x68]
mov r15, qword [rbp - 0x60]
mov rsp, rbp
pop rbp
ret
Function at 0x140019130
Capabilities:
Create pipe

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x150
mov qword [rbp - 0x128], rbx
mov qword [rbp - 0x120], rsi
mov qword [rbp - 0x118], rdi
mov qword [rbp - 0x110], r12
mov qword [rbp - 0x108], r13
mov qword [rbp - 0x100], r14
mov qword [rbp - 0xf8], r15
mov qword [rbp + 0x10], rcx
xor eax, eax
mov qword [rbp - 0xf0], rax
mov qword [rbp - 0xe8], rax
xor r9d, r9d
mov r8, rax
lea rdx, [rbp - 0xe8]
lea rcx, [rbp - 0xf0]
call sub.KERNEL32.dll_CreatePipe
test eax, eax
jne 0x140019257
lea rcx, [0x1400bdab0]
call fcn.140010940
mov rsi, rax
lea rax, str.Error_creating_pipe__
mov qword [rbp - 0xd8], rax
mov qword [rbp - 0xe0], 0x15
call sub.KERNEL32.dll_GetLastError
mov r8d, eax
xor edx, edx
mov ecx, 1
call fcn.14001bc30
mov qword [rbp - 0xd0], rax
mov qword [rbp - 0xc8], rdx
lea rbx, [0x1400a7c70]
mov qword [rbp - 0xb8], rbx
mov qword [rbp - 0xc0], 1
lea rax, [rbp - 0xe0]
mov qword [rbp - 0xa8], rax
mov qword [rbp - 0xb0], 3
lea rdx, [rbp - 0xb0]
lea rcx, [0x1400ba4d0]
call fcn.14000fbf0
mov qword [rbp - 0xa0], rax
mov qword [rbp - 0x98], rdx
lea r8, [rbp - 0xa0]
xor edx, edx
mov rcx, rsi
call fcn.1400195c0
mov rcx, rax
call fcn.1400109f0
mov rax, qword [rbp + 0x10]
xor ebx, ebx
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov rdi, qword [rbp + 0x10]
mov r8, qword [rbp - 0xf0]
lea r9, [0x1400bd9f0]
mov qword [rbp - 0x68], r9
mov edx, 1
mov qword [rbp - 0x70], rdx
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp + 0x10]
sub rsp, 0x20
call fcn.14000dbb0
add rsp, 0x20
mov r8, qword [rbp + 0x10]
lea rsi, [r8 + 0x18]
mov r8, qword [rbp - 0xe8]
lea r9, [0x1400bda00]
mov qword [rbp - 0x58], r9
mov qword [rbp - 0x60], 1
lea rdx, [rbp - 0x60]
mov rcx, rsi
sub rsp, 0x20
call fcn.14000dbb0
add rsp, 0x20
mov rax, qword [rbp + 0x10]
mov rbx, qword [rbp - 0x128]
mov rsi, qword [rbp - 0x120]
mov rdi, qword [rbp - 0x118]
mov r12, qword [rbp - 0x110]
mov r13, qword [rbp - 0x108]
mov r14, qword [rbp - 0x100]
mov r15, qword [rbp - 0xf8]
mov rsp, rbp
pop rbp
ret
Function at 0x14001b3e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r14
mov rdi, rcx
call fcn.14002d230
test rax, rax
mov qword [rbp - 0x20], rax
jne 0x14001b414
mov rax, 0xffffffffffffffff
mov qword [rbp - 0x20], rax
mov r9d, dword [rbp - 0x20]
mov esi, dword [rbp - 0x1c]
mov qword [rbp - 8], rdi
mov qword [rbp - 0x10], 0x270
xor r11d, r11d
imul ecx, r9d, 0x9e3779bb
rol ecx, 5
lea ecx, [rcx + rcx*4]
mov rdx, qword [rbp - 8]
mov dword [rdx + r11*4], ecx
mov r8d, esi
xor r8d, r9d
mov r10d, r8d
shl r10d, 9
mov r12d, r9d
rol r12d, 0x1a
xor r12d, r8d
xor r10d, r12d
mov r9d, r10d
imul r14d, r10d, 0x9e3779bb
rol r14d, 5
lea r14d, [r14 + r14*4]
lea rcx, [r11 + 1]
mov dword [rdx + rcx*4], r14d
mov edx, r8d
rol edx, 0xd
xor edx, r10d
mov r8d, edx
shl edx, 9
rol r10d, 0x1a
xor r10d, r8d
xor edx, r10d
mov r9d, edx
mov esi, r8d
rol esi, 0xd
add r11, 2
cmp r11, 0x270
jb 0x14001b42a
mov qword [rdi + 0x9c8], 0x26f
mov rcx, rdi
call fcn.14002d2d0
mov rcx, rdi
call fcn.14002d2d0
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov r12, qword [rbp - 0x30]
mov r14, qword [rbp - 0x28]
mov rsp, rbp
pop rbp
ret
Function at 0x14001b880
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
mov r11d, 2
sub rsp, 0x1000
test dword [rsp], esp
dec r11d
jne 0x14001b88a
sub rsp, 0xe0
mov qword [rbp - 0x20b8], rbx
mov qword [rbp - 0x20b0], rsi
lea rdx, [rbp - 0x2090]
mov qword [rbp - 0x20a8], rdx
mov ecx, 0x1000
call fcn.14002d4d0
mov ecx, eax
mov rdx, qword [rbp - 0x20a8]
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r9d, eax
lea rax, [0x14001bab0]
mov qword [rbp - 0x78], rax
xor edx, edx
mov qword [rbp - 0x80], rdx
lea r8, [rbp - 0x80]
lea rcx, str.std_file.d
mov qword [rbp - 0x68], rcx
mov ebx, 0xa
mov qword [rbp - 0x70], rbx
lea rdx, [rbp - 0x70]
mov ecx, 0xd5d
call fcn.14002d4f0
mov dword [rbp - 0x90], eax
mov eax, eax
mov esi, 0x1000
cmp rax, rsi
jae 0x14001b959
mov edx, dword [rbp - 0x90]
mov qword [rbp - 0x60], rdx
lea rax, [rbp - 0x2090]
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x60]
sub rsp, 0x20
call fcn.14001b850
add rsp, 0x20
mov rbx, qword [rbp - 0x20b8]
mov rsi, qword [rbp - 0x20b0]
mov rsp, rbp
pop rbp
ret
mov ecx, dword [rbp - 0x90]
call fcn.14002d580
mov dword [rbp - 0x50], eax
mov edx, 2
lea rcx, [rbp - 0x50]
call fcn.14002d5b0
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x40]
call fcn.140011f50
mov rcx, rax
call fcn.14008af5c
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x50]
sub rsp, 0x20
call fcn.14002d5e0
add rsp, 0x20
mov rdx, qword [rbp - 0x48]
mov ecx, eax
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentDirectoryW
add rsp, 0x20
mov dword [rbp - 0x38], eax
test eax, eax
je 0x14001b9d1
mov edx, dword [rbp - 0x38]
lea rcx, [rbp - 0x50]
sub rsp, 0x20
call fcn.14002d5f0
add rsp, 0x20
test eax, eax
jg 0x14001b9d6
xor r9d, r9d
jmp 0x14001b9dc
mov r9d, 1
lea rax, [0x14001bab0]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
lea r8, [rbp - 0x30]
lea rdx, str.std_file.d
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rbx
lea rdx, [rbp - 0x20]
mov ecx, 0xd6a
sub rsp, 0x20
call fcn.14002d620
add rsp, 0x20
mov eax, dword [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp - 0x48]
mov qword [rbp - 8], rbx
lea rcx, [rbp - 0x10]
sub rsp, 0x20
call fcn.14001b850
add rsp, 0x20
mov qword [rbp - 0x20a0], rax
mov qword [rbp - 0x2098], rdx
sub rsp, 8
call fcn.14001ba83
add rsp, 8
mov rdx, qword [rbp - 0x2098]
mov rax, qword [rbp - 0x20a0]
mov rbx, qword [rbp - 0x20b8]
mov rsi, qword [rbp - 0x20b0]
mov rsp, rbp
pop rbp
ret