joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bd80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0
cmp qword [rbp + 0x1e0], 0
jne 0x14001bdc2
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x14001c00a
mov rax, qword [rbp + 0x1e0]
movzx eax, word [rax]
test ax, ax
jne 0x14001bde6
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x14001c00a
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp + 0x1bc], eax
cmp dword [rbp + 0x1bc], 0xffffffff
jne 0x14001be1d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 2
mov eax, 0
jmp 0x14001c00a
mov eax, dword [rbp + 0x1bc]
and eax, 0x10
test eax, eax
jne 0x14001be3f
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x14001c00a
mov rdx, qword [rbp + 0x1e0]
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbx, rax
lea rax, [0x1400efec0]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add rbx, rax
lea rax, [0x1400efec4]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add rax, rbx
add rax, 0x229
add rax, rax
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp + 0x1b0], rax
cmp qword [rbp + 0x1b0], 0
jne 0x14001bec2
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x14001c00a
mov rax, qword [rbp + 0x1b0]
lea rcx, [rax + 0x44c]
lea rax, [rbp - 0x60]
mov rdx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy
mov rax, qword [rbp + 0x1b0]
movzx eax, word [rax + 0x44c]
test ax, ax
je 0x14001bf73
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x1b0]
add rdx, 0x220
movzx eax, word [rax + rdx*2 + 0xc]
cmp ax, 0x2f
je 0x14001bf73
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x1b0]
add rdx, 0x220
movzx eax, word [rax + rdx*2 + 0xc]
cmp ax, 0x5c
je 0x14001bf73
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
lea rdx, [0x1400efec0]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
lea rdx, [0x1400efec4]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat
mov rax, qword [rbp + 0x1b0]
mov qword [rax + 0x440], 0xffffffffffffffff
mov rax, qword [rbp + 0x1b0]
mov dword [rax + 0x448], 0
mov rax, qword [rbp + 0x1b0]
mov dword [rax + 0x230], 0
mov rax, qword [rbp + 0x1b0]
mov word [rax + 0x234], 0
mov rax, qword [rbp + 0x1b0]
mov word [rax + 0x236], 0
mov rax, qword [rbp + 0x1b0]
add rax, 0x238
mov r8d, 0x208
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rbp + 0x1b0]
add rsp, 0x248
pop rbx
pop rbp
ret
Function at 0x14001c550
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rdx, [rbp - 0x38]
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x14001c594
mov ecx, 9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_errno
mov eax, 0xffffffff
jmp 0x14001c758
mov rax, qword [rbp - 0x38]
cmp rax, qword [rbp + 0x18]
jb 0x14001c5a8
mov eax, 0
jmp 0x14001c758
lea rdx, [rbp - 0x70]
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
call rax
test eax, eax
jne 0x14001c5d4
mov ecx, 0x16
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_errno
mov eax, 0xffffffff
jmp 0x14001c758
mov edx, 2
mov ecx, 0x33
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rbp - 0x18], rax
mov edx, 2
mov ecx, 0x106
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x18], 0
je 0x14001c608
cmp qword [rbp - 0x20], 0
jne 0x14001c61c
mov ecx, 9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_errno
mov eax, 0xffffffff
jmp 0x14001c758
mov qword [rbp - 8], 0
mov rax, qword [rbp - 0x18]
mov edx, 0x32
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
call rax
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x3c]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, 0x105
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
call rax
mov dword [rbp - 0xc], eax
mov edx, dword [rbp - 0x54]
mov eax, dword [rbp - 0x3c]
cmp edx, eax
jne 0x14001c698
mov rax, qword [rbp - 0x18]
mov qword [rbp - 8], rax
jmp 0x14001c6b6
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x28]
mov r8d, 0x32
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call rax
test eax, eax
jne 0x14001c63d
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindVolumeClose]
call rax
cmp qword [rbp - 8], 0
jne 0x14001c6d9
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.140026c60
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.140026c60
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.140026c60
cmp dword [rbp - 0xc], 0
jne 0x14001c72b
mov ecx, 0x1b
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_errno
mov eax, 0xffffffff
jmp 0x14001c758
mov rax, qword [rbp - 0x38]
mov rdx, rax
mov rax, qword [rbp + 0x18]
sub rax, rdx
mov rdx, qword [rbp - 0x30]
cmp rdx, rax
jae 0x14001c753
mov ecx, 0x1b
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_errno
mov eax, 0xffffffff
jmp 0x14001c758
mov eax, 0
add rsp, 0xb0
pop rbp
ret
Function at 0x140028320
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
test eax, eax
jne 0x140028360
call fcn.1400c43a0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x140028380
call fcn.1400c43b0
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
jmp 0x14002834e
mov rdx, rbx
mov rcx, rsi
call fcn.140096170
cmp al, 2
jne 0x14002836d
xor eax, eax
jmp 0x14002834e

Function at 0x140095f40
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call fcn.1400919d0
test al, al
je 0x140095f8e
cmp al, 0xff
je 0x140095fa0
mov rdx, rbx
mov rcx, rsi
call fcn.140096170
cmp al, 2
je 0x140095fb8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140095fc5
mov eax, dword [rbx]
test eax, eax
jne 0x140095f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1400c43a0
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400c43a0
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x140095f8e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140095f68
call fcn.1400c43a0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140096030
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rbp, rcx
mov rdx, r8
mov rbx, r8
mov rcx, rsi
call fcn.140096170
mov rdi, rax
cmp al, 0xff
je 0x140096090
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140096083
test al, al
jne 0x1400960a8
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400960f0
call fcn.1400c43a0
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400c43a0
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x14009605d
mov rdx, rbx
mov rcx, rbp
call fcn.140096170
mov edx, dword [rbx]
test edx, edx
jne 0x140096083
cmp dil, 2
je 0x1400960d8
cmp al, 2
jne 0x14009605d
call fcn.1400c43b0
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140096083
cmp al, 2
je 0x14009605d
call fcn.1400c43b0
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x140096083
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp eax, 5
je 0x140096125
call rdi
mov dword [rax], 5
call fcn.1400c43b0
mov rsi, rax
call rdi
mov eax, dword [rax]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rdi
mov dword [rax], 0xd
jmp 0x14009610a
Function at 0x14009eae0
Capabilities:
Get disk size

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [rsp + 0x90]
mov rdi, rdx
mov rbp, r8
mov rsi, r9
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14009eb78
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14009eb3a
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14009eb48
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14009eb70
call fcn.1400c43a0
xor esi, esi
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov qword [rsi], rax
jmp 0x14009eb52
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.1400c43a0
mov dword [rbx], esi
mov qword [rbx + 8], rax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400a40d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1400a4118
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400a40ea
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b7360
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x1400b7390
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop word cs:[rax + rax]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
test eax, eax
jle 0x1400b73e0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400b73b0
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 0xffffffff
jne 0x1400b7400
call rbp
mov r12, rbp
cmp dword [rax], 4
je 0x1400b73b0
call r12
lea rdx, str.random_device_could_not_be_read
mov ecx, dword [rax]
call fcn.1400e1f60
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x1400b73ef
Function at 0x1400c3d20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x1400c3db2
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x24]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x1400c3d99
mov eax, 0x9908b0df
jmp 0x1400c3d9e
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x1400c3d44
mov qword [rbp - 0x10], 0xe3
jmp 0x1400c3e34
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x20]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x1400c3e1b
mov eax, 0x9908b0df
jmp 0x1400c3e20
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x1400c3dc6
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x630]
mov edx, dword [rbp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x1400c3e81
mov eax, 0x9908b0df
jmp 0x1400c3e86
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400c3eb0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400d4cf0
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x1400c3f28
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400d4d10
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400d4cf0
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x1400c3ed9
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400c3f80
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x1400c3fab
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400c3d20
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x1400cc4b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rcx, 0x3fffffffffffffff
mov rax, qword [rdx]
cmp rcx, rax
jb 0x1400cc50b
lea r9, [rax + 1]
cmp r8, rax
jae 0x1400cc4e9
add r8, r8
cmp rax, r8
jae 0x1400cc4e9
cmp rcx, r8
jae 0x1400cc4f8
movabs r9, 0x4000000000000000
mov qword [rdx], rcx
mov rcx, r9
add rsp, 0x28
jmp fcn.1400dfda0
lea r9, [r8 + 1]
mov qword [rdx], r8
mov rcx, r9
add rsp, 0x28
jmp fcn.1400dfda0
lea rcx, [0x1400eb770]
call fcn.1400e19b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov qword [rcx + 8], rdx
ret

Function at 0x1400d0070
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rax, 0x1fffffffffffffff
mov rcx, qword [rdx]
cmp rax, rcx
jb 0x1400d00d1
cmp r8, rcx
jae 0x1400d0093
add r8, r8
cmp rcx, r8
jb 0x1400d00a8
add rcx, 1
add rcx, rcx
add rsp, 0x28
jmp fcn.1400dfda0
cmp rax, r8
jae 0x1400d00c8
movabs rcx, 0x4000000000000000
mov qword [rdx], rax
add rsp, 0x28
jmp fcn.1400dfda0
mov qword [rdx], r8
lea rcx, [r8 + 1]
jmp 0x1400d0097
lea rcx, str.basic_string::_M_create
call fcn.1400e19b0
nop
nop
nop
mov qword [rcx + 8], rdx
ret
Function at 0x1400d8240
Capabilities:
Encode data using xor

Disassembly:
mov r11, rdx
mov rax, rcx
mov r10, rdx
and r11, 0xfffffffffffffff8
add r11, rcx
movabs rcx, 0xc6a4a7935bd1e995
imul r10, rcx
xor r10, r8
cmp rax, r11
je 0x1400d82a8
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop dword [rax]
mov r9, qword [rax]
add rax, 8
imul r9, rcx
mov r8, r9
shr r8, 0x2f
xor r8, r9
imul r8, rcx
xor r8, r10
mov r10, r8
imul r10, rcx
cmp r11, rax
jne 0x1400d8280
and edx, 7
je 0x1400d82e5
sub edx, 1
movsxd rax, edx
xor edx, edx
nop word cs:[rax + rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1400d82c0
xor rdx, r10
movabs r10, 0xc6a4a7935bd1e995
imul r10, rdx
movabs rax, 0xc6a4a7935bd1e995
mov rdx, r10
shr rdx, 0x2f
xor rdx, r10
imul rdx, rax
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
ret

Function at 0x1400dfda0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 1
test rcx, rcx
cmovne rax, rcx
mov rbx, rax
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
je 0x1400dfdc7
add rsp, 0x20
pop rbx
ret
call fcn.1400d97a0
test rax, rax
je 0x1400e0a00
call rax
jmp 0x1400dfdb4

Function at 0x1400e0360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
call fcn.1400e00e0
mov rcx, qword [rax]
add dword [rax + 8], 1
test rcx, rcx
je 0x1400e09f0
movabs rdx, 0xb8b1aabcbcd4d500
add rdx, qword [rcx + 0x50]
cmp rdx, 1
jbe 0x1400e03ad
xor edx, edx
mov qword [rax], rdx
lea rbx, [rcx + 0x50]
mov rcx, rbx
call fcn.1400174a0
mov rcx, rbx
call fcn.1400dfee0
nop
jmp 0x1400e09f0
neg dword [rcx + 0x28]
jmp 0x1400e0393
Function at 0x1400e0680
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0xa0]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
je 0x1400dfec4
lea rdi, [rax + 8]
mov qword [rax], 0
lea rdx, [rax + 0xa0]
mov qword [rax + 0x98], 0
and rdi, 0xfffffffffffffff8
sub rax, rdi
lea ecx, [rax + 0xa0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, rdx
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call fcn.1400285a0
test rax, rax
je 0x1400e0660
jmp 0x1400dfe89
call fcn.1400e09b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1400e09b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400e6a20]
movabs rsi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call fcn.140006e98
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400e6a38], 0
movups xmmword [0x1400e6a28], xmm0
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400e0735
jmp 0x1400e07df
mov rcx, rbx
mov edx, 0x3a
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov rbx, rax
test rax, rax
je 0x1400e0790
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x1400e0720
cmp qword [rbx + 7], r12
jne 0x1400e0720
cmp byte [rbx + 0xf], 0x2e
jne 0x1400e0720
add rbx, 0x10
lea rdi, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rbp, qword [rdi]
test rbp, rbp
je 0x1400e077a
mov rcx, qword [rdi + 8]
mov r8, rbp
mov rdx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x1400e0784
cmp byte [rbx + rbp], 0x3d
je 0x1400e0815
add rdi, 0x18
cmp r13, rdi
jne 0x1400e075f
jmp 0x1400e0720
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400e6a38], rbx
jne 0x1400e07ef
lea rcx, [0x1400e0580]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140001583
mov qword [0x1400e6a38], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [0x1400e6a30], rax
test rax, rax
je 0x1400e084c
xor edx, edx
mov qword [0x1400e6a28], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400e07c7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rbp + 1]
xor r8d, r8d
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400e083c
test dl, dl
jne 0x1400e0720
test eax, eax
js 0x1400e0720
mov dword [rdi + 0x10], eax
jmp 0x1400e0720
xor ecx, ecx
mov qword [0x1400e6a38], rcx
jmp 0x1400e07c7
Function at 0x1400e09d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400f0480]
mov rcx, qword [rax]
call fcn.140027ac0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1400e09b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400dfe70
lea r8, [fcn.1400d6de0]
lea rdx, [0x1400f3fb0]
mov rcx, rax
mov rax, qword [0x1400f0fa0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400e03c0
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400e0aac
call fcn.1400dfee0
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call fcn.1400dffd0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rdi
call fcn.140026c60
call fcn.1400e0360
call fcn.1400dfee0
call fcn.1400dffd0
jmp 0x1400e0a9a

Function at 0x1400e09f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400f0480]
mov rcx, qword [rax]
call fcn.140027ac0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1400e09b0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400dfe70
lea r8, [fcn.1400d6de0]
lea rdx, [0x1400f3fb0]
mov rcx, rax
mov rax, qword [0x1400f0fa0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400e03c0
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400e0aac
call fcn.1400dfee0
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call fcn.1400dffd0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rdi
call fcn.140026c60
call fcn.1400e0360
call fcn.1400dfee0
call fcn.1400dffd0
jmp 0x1400e0a9a