joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400619b0
Capabilities:
Delete directory

Disassembly:
push rbp
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.string_to_wide
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call rax
mov byte [rbp + 0xbf], al
cmp byte [rbp + 0xbf], 0
jne 0x140061b5b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp + 0x80]
mov rcx, rax
call sym.os__get_error_msg
pxor xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
lea rax, str.Failed_to_remove__
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x12
mov dword [rbp - 4], 1
mov dword [rbp], 0xfe10
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rdx
lea rax, [0x14008a201]
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x20], 3
mov dword [rbp + 0x24], 1
lea rax, [rbp + 0x90]
lea rdx, [rbp - 0x10]
mov r8, rdx
mov edx, 2
mov rcx, rax
call sym.str_intp
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x98]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x30]
mov r8, rdx
mov rdx, rax
call sym.string__plus
mov dword [rbp + 0x50], 0x7efefefe
lea rcx, [rbp + 0xa0]
mov rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
mov rdx, rax
call sym.os__error_win32
mov rax, qword [rbp + 0xe0]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0xe0]
mov byte [rax], 1
mov rcx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0xa8]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x140061b6d
mov rax, qword [rbp + 0xe0]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0xe0]
add rsp, 0x148
pop rbx
pop rbp
ret
Function at 0x140061c92
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp - 8], 0x100
mov eax, dword [rbp - 8]
add eax, eax
cdqe
mov rcx, rax
call sym.malloc_noscan
mov qword [rbp - 0x10], rax
mov ecx, 0xfffffff6
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x28], 0
mov ecx, 0
call sym.os__is_atty
test eax, eax
jle 0x140061d79
mov eax, dword [rbp - 8]
add eax, eax
mov r8d, eax
lea rcx, [rbp - 0x28]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadConsoleW]
call rax
mov byte [rbp - 0x22], al
cmp byte [rbp - 0x22], 0
jne 0x140061d49
lea rax, [rbp - 0x60]
mov rdx, qword [rbp - 0x10]
mov r8d, 0
mov rcx, rax
call sym.tos
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
jmp 0x140061e45
mov eax, dword [rbp - 0x28]
mov ecx, eax
lea rax, [rbp - 0x50]
mov rdx, qword [rbp - 0x10]
mov r8d, ecx
mov rcx, rax
call sym.string_from_wide2
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
jmp 0x140061e45
mov dword [rbp - 4], 0
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov byte [rbp - 0x21], al
cmp byte [rbp - 0x21], 0
jne 0x140061df5
cmp dword [rbp - 4], 0
jne 0x140061df5
lea rax, [rbp - 0x70]
mov rdx, qword [rbp - 0x10]
mov r8d, 0
mov rcx, rax
call sym.tos
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
jmp 0x140061e45
cmp byte [rbp - 0x21], 0
je 0x140061e1c
mov eax, dword [rbp - 0x28]
test eax, eax
je 0x140061e1c
mov rax, qword [rbp - 0x20]
movzx eax, byte [rax]
cmp al, 0xa
jne 0x140061e13
add dword [rbp - 4], 1
jmp 0x140061e1c
add dword [rbp - 4], 1
jmp 0x140061d80
lea rax, [rbp - 0x40]
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp - 0x10]
mov r8d, ecx
mov rcx, rax
call sym.u8_vstring_with_len
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [rbp + 0x10]
add rsp, 0xa0
pop rbp
ret
Function at 0x140061e52
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x18], 0x200
mov eax, dword [rbp - 0x18]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 0x18]
cdqe
mov rcx, rax
call sym.malloc_noscan
mov qword [rbp - 0x10], rax
mov ecx, 0xfffffff6
mov rax, qword [sym.imp.KERNEL32.dll_GetStdHandle]
call rax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x34], 0
mov dword [rbp - 0x14], 0
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov ecx, dword [rbp - 0x18]
lea r8, [rbp - 0x34]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov byte [rbp - 0x29], al
mov eax, dword [rbp - 0x34]
add dword [rbp - 0x14], eax
cmp byte [rbp - 0x29], 0
je 0x140061f24
mov edx, dword [rbp - 0x14]
mov eax, dword [rbp - 0x18]
lea ecx, [rdx + rax]
mov eax, dword [rbp - 0x34]
mov edx, dword [rbp - 0x18]
sub edx, eax
lea eax, [rcx + rdx]
mov dword [rbp - 0x30], eax
mov ecx, dword [rbp - 0x30]
mov edx, dword [rbp - 4]
mov rax, qword [rbp - 0x10]
mov r8d, ecx
mov rcx, rax
call sym.realloc_data
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp - 4], eax
jmp 0x140061e9f
nop
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], 0
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x54], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x4c], 0
mov dword [rbp - 0x48], 1
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
mov rax, qword [rbp + 0x10]
add rsp, 0x90
pop rbp
ret
Function at 0x14006a317
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov rbx, rcx
mov rcx, qword [rbx]
mov rbx, qword [rbx + 8]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rbx
lea rax, [0x140089fb7]
mov r10, rdx
movabs rcx, 0xffffffff00000000
and rcx, r10
or rcx, 1
mov rdx, rcx
mov rcx, rdx
mov r10d, ecx
movabs rcx, 0x100000000
or rcx, r10
mov rdx, rcx
lea r8, [0x140089816]
mov r10, r9
movabs rcx, 0xffffffff00000000
and rcx, r10
or rcx, 1
mov r9, rcx
mov rcx, r9
mov r10d, ecx
movabs rcx, 0x100000000
or rcx, r10
mov r9, rcx
lea r10, [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x28]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, r10
call sym.string_replace
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.string_to_wide
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x14006a41b
mov ecx, 0
jmp 0x14006a431
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
je 0x14006a42c
mov ecx, 1
jmp 0x14006a431
mov ecx, 0
mov eax, ecx
add rsp, 0x88
pop rbx
pop rbp
ret

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

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov rbx, rcx
mov rcx, qword [rbx]
mov rbx, qword [rbx + 8]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rbx
lea rax, [0x140089fb7]
mov r10, rdx
movabs rcx, 0xffffffff00000000
and rcx, r10
or rcx, 1
mov rdx, rcx
mov rcx, rdx
mov r10d, ecx
movabs rcx, 0x100000000
or rcx, r10
mov rdx, rcx
lea r8, [0x140089816]
mov r10, r9
movabs rcx, 0xffffffff00000000
and rcx, r10
or rcx, 1
mov r9, rcx
mov rcx, r9
mov r10d, ecx
movabs rcx, 0x100000000
or rcx, r10
mov r9, rcx
lea r10, [rbp - 0x20]
mov rcx, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x28]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x50], r8
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x50]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, r10
call sym.string_replace
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.string_to_wide
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x14006a54d
mov eax, dword [rbp - 4]
and eax, 0x400
test eax, eax
je 0x14006a54d
mov eax, 1
jmp 0x14006a552
mov eax, 0
mov byte [rbp - 5], al
movzx ecx, byte [rbp - 5]
mov eax, ecx
add rsp, 0x88
pop rbx
pop rbp
ret
Function at 0x14006a565
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov byte [rbp - 7], 0
mov byte [rbp - 6], 0
mov byte [rbp - 5], 0
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.string_to_wide
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x14006a5f1
mov eax, dword [rbp - 4]
and eax, 0x80
test eax, eax
je 0x14006a5d3
mov byte [rbp - 7], 1
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
je 0x14006a5e1
mov byte [rbp - 6], 1
mov eax, dword [rbp - 4]
and eax, 0x400
test eax, eax
je 0x14006a5f1
mov byte [rbp - 5], 1
mov rax, qword [rbp + 0x20]
movzx edx, word [rbp - 7]
mov word [rax], dx
movzx edx, byte [rbp - 5]
mov byte [rax + 2], dl
mov rax, qword [rbp + 0x20]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x14006b55d
Capabilities:
Create directory

Disassembly:
push rbp
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov rbx, rdx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov dword [rbp + 0xc0], r8d
mov eax, dword [rbp - 0x38]
cmp eax, 1
jne 0x14006b5cd
mov eax, dword [rbp - 0x38]
movsxd rdx, eax
mov rax, qword [rbp - 0x40]
mov r8, rdx
lea rdx, [0x140089752]
mov rcx, rax
call sym.vmemcmp
test eax, eax
jne 0x14006b5cd
mov rax, qword [rbp + 0xb0]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
jmp 0x14006b759
lea rcx, [rbp + 0x40]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rax, [rbp - 0x50]
mov rdx, rax
call sym.os__real_path
mov rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.string_to_wide
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call rax
test eax, eax
jne 0x14006b747
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.os__get_error_msg
pxor xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
lea rax, str.mkdir_failed_for__
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], 0x12
mov dword [rbp - 0x24], 1
mov dword [rbp - 0x20], 0xfe10
mov rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
lea rax, str.___because_CreateDirectory_returned:
mov qword [rbp - 8], rax
mov dword [rbp], 0x25
mov dword [rbp + 4], 1
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov r8, rdx
mov edx, 2
mov rcx, rax
call sym.str_intp
lea rcx, [rbp + 0x70]
mov rax, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x68]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x50]
mov r8, rdx
mov rdx, rax
call sym.string__plus
lea rcx, [rbp + 0x80]
mov rax, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x78]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
lea rax, [rbp - 0x50]
mov rdx, rax
call sym._v_error
mov rax, qword [rbp + 0xb0]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0xb0]
mov byte [rax], 1
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x14006b759
mov rax, qword [rbp + 0xb0]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rax, qword [rbp + 0xb0]
add rsp, 0x118
pop rbx
pop rbp
ret
Function at 0x14006d1ed
Capabilities:
Get hostname

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x2d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x270], rcx
lea rdx, [rbp + 0x20]
mov eax, 0
mov ecx, 0x3f
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov word [rdx], ax
add rdx, 2
mov dword [rbp + 0x1c], 0xff
lea rdx, [rbp + 0x1c]
lea rax, [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetComputerNameW]
call rax
mov byte [rbp + 0x24f], al
cmp byte [rbp + 0x24f], 0
jne 0x14006d2db
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp + 0x220]
mov rcx, rax
call sym.os__get_error_msg
lea rcx, [rbp + 0x230]
mov rax, qword [rbp + 0x220]
mov rdx, qword [rbp + 0x228]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rax, [rbp - 0x60]
mov rdx, rax
call sym._v_error
mov rax, qword [rbp + 0x270]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movq qword [rax + 0x20], xmm0
mov rax, qword [rbp + 0x270]
mov byte [rax], 1
mov rcx, qword [rbp + 0x270]
mov rax, qword [rbp + 0x230]
mov rdx, qword [rbp + 0x238]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x14006d32f
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0x20]
mov rcx, rax
call sym.string_from_wide
lea rdx, [rbp - 0x10]
lea rax, [rbp - 0x20]
mov r8d, 0x10
mov rcx, rax
call sym._result_ok
mov rax, qword [rbp + 0x270]
mov rcx, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov rcx, qword [rbp]
mov rbx, qword [rbp + 8]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbx
mov rdx, qword [rbp + 0x10]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp + 0x270]
add rsp, 0x2d0
pop rbx
pop rdi
pop rbp
ret
Function at 0x14006d341
Capabilities:
Get session user name

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x2d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x270], rcx
lea rdx, [rbp + 0x20]
mov eax, 0
mov ecx, 0x3f
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov word [rdx], ax
add rdx, 2
mov dword [rbp + 0x1c], 0xff
lea rdx, [rbp + 0x1c]
lea rax, [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call rax
mov byte [rbp + 0x24f], al
cmp byte [rbp + 0x24f], 0
jne 0x14006d42f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, [rbp + 0x220]
mov rcx, rax
call sym.os__get_error_msg
lea rcx, [rbp + 0x230]
mov rax, qword [rbp + 0x220]
mov rdx, qword [rbp + 0x228]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rax, [rbp - 0x60]
mov rdx, rax
call sym._v_error
mov rax, qword [rbp + 0x270]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movq qword [rax + 0x20], xmm0
mov rax, qword [rbp + 0x270]
mov byte [rax], 1
mov rcx, qword [rbp + 0x270]
mov rax, qword [rbp + 0x230]
mov rdx, qword [rbp + 0x238]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
jmp 0x14006d483
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0x20]
mov rcx, rax
call sym.string_from_wide
lea rdx, [rbp - 0x10]
lea rax, [rbp - 0x20]
mov r8d, 0x10
mov rcx, rax
call sym._result_ok
mov rax, qword [rbp + 0x270]
mov rcx, qword [rbp - 0x10]
mov rbx, qword [rbp - 8]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov rcx, qword [rbp]
mov rbx, qword [rbp + 8]
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbx
mov rdx, qword [rbp + 0x10]
mov qword [rax + 0x20], rdx
mov rax, qword [rbp + 0x270]
add rsp, 0x2d0
pop rbx
pop rdi
pop rbp
ret

Function at 0x14006ddaf
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
pxor xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x90
pop rbp
ret
Function at 0x14006fe18
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x98]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov edx, 3
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14006fe71
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x98]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x10]
mov edx, eax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
call rax
mov ecx, 0x14
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov edx, 3
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14007040e
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
mov eax, 0x1088
call fcn.140072b30
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0x1028], rdx
mov dword [rbp + 0x1030], r8d
mov rax, qword [rbp + 0x1028]
mov rax, qword [rax + 0x98]
mov qword [rbp + 0xff0], rax
cmp qword [rbp + 0xff0], 0
jne 0x14007048b
mov rax, qword [rbp + 0x1020]
lea rdx, [0x140088256]
mov qword [rax], rdx
mov rax, qword [rbp + 0x1020]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x1020]
mov dword [rax + 0xc], 1
jmp 0x1400705dc
mov qword [rbp + 0xff8], 0
cmp dword [rbp + 0x1030], 1
jne 0x1400704b4
mov rax, qword [rbp + 0xff0]
mov rax, qword [rax + 0x10020]
mov qword [rbp + 0xff8], rax
cmp dword [rbp + 0x1030], 2
jne 0x1400704d2
mov rax, qword [rbp + 0xff0]
mov rax, qword [rax + 0x10030]
mov qword [rbp + 0xff8], rax
cmp qword [rbp + 0xff8], 0
jne 0x14007050e
mov rax, qword [rbp + 0x1020]
lea rdx, [0x140088256]
mov qword [rax], rdx
mov rax, qword [rbp + 0x1020]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x1020]
mov dword [rax + 0xc], 1
jmp 0x1400705dc
mov dword [rbp + 0xfe8], 0
lea rdx, [rbp - 0x20]
mov eax, 0
mov ecx, 0x200
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp - 0x40]
mov edx, 0x400
mov rcx, rax
call sym.strings__new_builder
mov byte [rbp + 0xfef], 0
lea rcx, [rbp + 0xfe8]
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0xff8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x3e8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov byte [rbp + 0xfef], al
mov eax, dword [rbp + 0xfe8]
mov ecx, eax
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x40]
mov r8d, ecx
mov rcx, rax
call sym.strings__Builder_write_ptr
cmp byte [rbp + 0xfef], 0
je 0x1400705aa
mov eax, dword [rbp + 0xfe8]
test eax, eax
je 0x1400705aa
jmp 0x14007053d
lea rax, [rbp - 0x50]
lea rdx, [rbp - 0x40]
mov rcx, rax
call sym.strings__Builder_str
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.strings__Builder_free
mov rcx, qword [rbp + 0x1020]
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [rbp + 0x1020]
add rsp, 0x1088
pop rdi
pop rbp
ret

Function at 0x140071d70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140071de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400c9034]
mov rbx, rcx
test esi, esi
jle 0x140071f10
mov rax, qword [0x1400c9038]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140071e2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140071eb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140071e10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140071f32
mov rax, qword [0x1400c9038]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400c9038]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140071f17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140071eae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140071ec0
add dword [0x1400c9034], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400c9038]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140071eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140071e38
mov rax, qword [0x1400c9038]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400724c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400c90a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400c9080]
test rbx, rbx
je 0x14007251c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140072513
test eax, eax
jne 0x140072513
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400724f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140072730
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140072748
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140072750
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret