joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ea60
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.msvcrt.dll__errno
mov dword [rax], 0
cmp qword [rbp + 0x1e0], 0
jne 0x14000eaa2
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
mov eax, 0
jmp 0x14000ece7
mov rax, qword [rbp + 0x1e0]
movzx eax, word [rax]
test ax, ax
jne 0x14000eac6
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x14000ece7
mov rcx, qword [rbp + 0x1e0]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp + 0x1bc], eax
cmp dword [rbp + 0x1bc], 0xffffffff
jne 0x14000eafa
call sub.msvcrt.dll__errno
mov dword [rax], 2
mov eax, 0
jmp 0x14000ece7
mov eax, dword [rbp + 0x1bc]
and eax, 0x10
test eax, eax
jne 0x14000eb1c
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov eax, 0
jmp 0x14000ece7
lea rax, [rbp - 0x60]
mov r8d, 0x104
mov rdx, qword [rbp + 0x1e0]
mov rcx, rax
call sub.msvcrt.dll__wfullpath
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_wcslen
mov rbx, rax
lea rax, [0x1400d8ac0]
mov rcx, rax
call sub.msvcrt.dll_wcslen
add rbx, rax
lea rax, [0x1400d8ac4]
mov rcx, rax
call sub.msvcrt.dll_wcslen
add rax, rbx
add rax, 0x229
add rax, rax
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x1b0], rax
cmp qword [rbp + 0x1b0], 0
jne 0x14000eb9f
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
mov eax, 0
jmp 0x14000ece7
mov rax, qword [rbp + 0x1b0]
lea rcx, [rax + 0x44c]
lea rax, [rbp - 0x60]
mov rdx, rax
call sub.msvcrt.dll_wcscpy
mov rax, qword [rbp + 0x1b0]
movzx eax, word [rax + 0x44c]
test ax, ax
je 0x14000ec50
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
mov rcx, rax
call sub.msvcrt.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 0x14000ec50
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
mov rcx, rax
call sub.msvcrt.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 0x14000ec50
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
lea rdx, [0x1400d8ac0]
mov rcx, rax
call sub.msvcrt.dll_wcscat
mov rax, qword [rbp + 0x1b0]
add rax, 0x44c
lea rdx, [0x1400d8ac4]
mov rcx, rax
call sub.msvcrt.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.msvcrt.dll_memset
mov rax, qword [rbp + 0x1b0]
add rsp, 0x248
pop rbx
pop rbp
ret
Function at 0x14000f410
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 rax, [rbp - 0x38]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x14000f454
mov ecx, 9
call fcn.14000e080
mov eax, 0xffffffff
jmp 0x14000f61b
mov rax, qword [rbp - 0x38]
cmp qword [rbp + 0x18], rax
ja 0x14000f468
mov eax, 0
jmp 0x14000f61b
lea rax, [rbp - 0x70]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
call rax
test eax, eax
jne 0x14000f494
mov ecx, 0x16
call fcn.14000e080
mov eax, 0xffffffff
jmp 0x14000f61b
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x18], rax
mov edx, 2
mov ecx, 0x106
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x18], 0
je 0x14000f4c8
cmp qword [rbp - 0x20], 0
jne 0x14000f4dc
mov ecx, 9
call fcn.14000e080
mov eax, 0xffffffff
jmp 0x14000f61b
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 0x14000f558
mov rax, qword [rbp - 0x18]
mov qword [rbp - 8], rax
jmp 0x14000f576
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 0x14000f4fd
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindVolumeClose]
call rax
cmp qword [rbp - 8], 0
jne 0x14000f599
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.14001a418
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001a418
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.14001a418
cmp dword [rbp - 0xc], 0
jne 0x14000f5eb
mov ecx, 0x1b
call fcn.14000e080
mov eax, 0xffffffff
jmp 0x14000f61b
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [rbp + 0x18]
sub rax, rcx
mov rdx, rax
mov rax, qword [rbp - 0x30]
cmp rdx, rax
jbe 0x14000f616
mov ecx, 0x1b
call fcn.14000e080
mov eax, 0xffffffff
jmp 0x14000f61b
mov eax, 0
add rsp, 0xb0
pop rbp
ret
Function at 0x14001ce70
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001cf82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001cf5a
add rax, 1
cmp rax, 0x6b
je 0x14001cf77
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14001cf50
cmp edx, 0x6a
je 0x14001cf77
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001cf6b

Function at 0x14001d320
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140104d00]
mov rcx, rsi
call fcn.14001cbe0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.14001c3f0
mov ebx, dword [0x140104d00]
test ebx, ebx
jne 0x14001d390
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d1188], eax
cmp eax, 0xffffffff
je 0x1400d01d6
mov dword [0x140104d00], 1
mov rcx, r13
call fcn.14001c710
test r12, r12
je 0x14001d3c2
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.14001cfa0
cmp ebx, 1
je 0x14001d371
mov ecx, 2
call qword [fcn.14001ac40]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14001cbb0
mov rcx, r13
call fcn.14001c710
test r12, r12
jne 0x14001d37e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x140021840
Capabilities:
Create directory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x140021880
call fcn.1400b1450
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call qword [sym.imp.msvcrt.dll__errno]
mov esi, dword [rax]
cmp esi, 0x11
je 0x1400218a8
call fcn.1400b1460
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, rbx
mov rcx, r12
call fcn.140083490
cmp al, 2
jne 0x14002188d
xor eax, eax
jmp 0x14002186f
Function at 0x140083140
Capabilities:
Delete directory
Delete file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call fcn.14007f350
test al, al
je 0x1400831a7
cmp al, 0xff
je 0x140083198
mov rdx, rbx
mov rcx, rsi
call fcn.140083490
cmp al, 2
je 0x1400831b0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400831bd
mov eax, dword [rbx]
test eax, eax
jne 0x1400831a7
call fcn.1400b1450
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbx + 8], rsi
mov dword [rbx], eax
xor eax, eax
jmp 0x1400831a9
call fcn.1400b1450
mov dword [rbx], 0
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x140083168
call fcn.1400b1450
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400832b0
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.140083490
mov rdi, rax
cmp al, 0xff
je 0x140083350
mov ecx, dword [rbx]
test ecx, ecx
jne 0x140083328
test al, al
jne 0x140083368
mov rdx, qword [rsi]
mov rcx, qword [rbp]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140083338
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x1400833a0
call rdi
mov dword [rax], 5
call fcn.1400b1460
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 fcn.1400b1450
mov dword [rbx], 0
mov qword [rbx + 8], rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.1400b1450
mov dword [rbx], 0
mov qword [rbx + 8], rax
jmp 0x1400832e1
mov rdx, rbx
mov rcx, rbp
call fcn.140083490
mov edx, dword [rbx]
test edx, edx
jne 0x140083328
cmp dil, 2
je 0x1400833b0
cmp al, 2
jne 0x1400832e1
call fcn.1400b1460
mov dword [rbx], 0x14
mov qword [rbx + 8], rax
jmp 0x140083328
call rdi
mov dword [rax], 0xd
jmp 0x140083316
cmp al, 2
je 0x1400832e1
call fcn.1400b1460
mov dword [rbx], 0x15
mov qword [rbx + 8], rax
jmp 0x140083328

Function at 0x14008aca0
Capabilities:
Get disk size

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov r12, rdx
mov rbp, r8
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rdi, r9
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
call fcn.1400b1450
mov rbx, rax
test esi, esi
je 0x14008ad48
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14008ad09
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14008ad17
mov qword [rbp], rax
mov rax, qword [rsp + 0x28]
test rax, rax
jne 0x14008ad40
xor eax, eax
mov dword [r13], eax
mov qword [r13 + 8], rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rdi], rax
jmp 0x14008ad21
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14008ad23
Function at 0x140090610
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140090637
call rbp
cmp dword [rax], 4
jne 0x140090654
mov rcx, rdi
call fcn.140090440
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140090630
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400c6250
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 0x1400c62a8
nop word cs:[rax + 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 0x1400c6280
and edx, 7
je 0x1400c62dd
sub edx, 1
movsxd rax, edx
xor edx, edx
nop dword [rax]
movzx ecx, byte [r11 + rax]
shl rdx, 8
sub rax, 1
add rdx, rcx
test eax, eax
jns 0x1400c62b8
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140009440]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140009450]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000c008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400093a0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400066a0
mov rcx, qword [0x1400094d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140009430]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400064b0
mov ebx, dword [0x14000c028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x14000c020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000c020], rbp
call fcn.1400062b0
mov rax, qword [0x1400093c0]
mov r8, qword [0x14000c018]
mov ecx, dword [0x14000c028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000c020]
call fcn.1400051e0
mov ecx, dword [0x14000c00c]
mov dword [0x14000c010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000c008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140009450]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140007460
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140009470]
mov rcx, qword [0x140009460]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000c010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140009490]
mov rcx, qword [0x140009480]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1400093e0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x1400064c0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400072d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140006530
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
mov rbx, rcx
test esi, esi
jle 0x140006660
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000657b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140006605
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140006560
mov rcx, rbx
call fcn.140006f80
mov rdi, rax
test rax, rax
je 0x140006682
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400070c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140006667
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400065fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140006610
add dword [0x14000c094], 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 [0x14000c098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400065fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400064c0
nop dword [rax]
xor esi, esi
jmp 0x140006588
mov rax, qword [0x14000c098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400064c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400064c0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140006bf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140006c4c
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 eax, eax
jne 0x140006c43
test rsi, rsi
je 0x140006c43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006c28
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 0x140006f80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400093b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006fa0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006fa8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006fa0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140006ffd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140006ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006fa0
add rax, 0x28
cmp rax, r9
jne 0x140006fe0
xor eax, eax
ret

Function at 0x140007000
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400093b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000701f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140007028
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000701f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400070c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400093b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400070df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400070e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140485a94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
shl bx, cl
clc
mov qword [rsp + 0x10], rdi
sbb r10b, 0x23
movsx r9w, r15b
add r11, rcx
sub edi, edi
not r11w
mov r9d, 0xe903897
movzx ebx, r8b
mov r11, rcx
movzx r9, dx
mov r8b, r13b
movsxd r9, r12d
mov r8, rdi
mov r9, r15
nop
movzx r9w, sil
movzx r9d, byte [r11]
movsxd r10, eax
movzx r10d, byte [rdx]
jmp 0x140485ae7
inc r11
jmp 0x140485aef
inc rdx
test bl, bl
je 0x140485b1a
mov ecx, r8d
mov eax, 0x9e259628
rol eax, cl
test di, cx
add al, r8b
test r11b, 0x27
xor r9b, al
inc r8
cmp r9w, 0xb18f
test r9b, r9b
jmp 0x140485b22
je 0x140485b36
cmp r9b, r10b
jmp 0x140485b30
je 0x140485ad7
cmp r9b, r10b
jmp 0x140485b3e
jae 0x140485b65
or eax, 0xffffffff
xchg bl, dil
jmp 0x140485b52
mov rbx, qword [rsp + 8]
not dil
mov rdi, qword [rsp + 0x10]
jmp 0x140485b64
ret
mov rbx, qword [rsp + 8]
cwde
xchg dil, dil
seta dil
movsx ax, spl
mov eax, edi
mov dil, 0x13
movsx rdi, di
cmovne di, bx
mov rdi, qword [rsp + 0x10]
jmp 0x140485b8e
ret
Function at 0x4081a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x005520a8], 0
je 0x408258
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.0040f510
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x005320c8]
call fcn.0040f510
mov rcx, rsi
mov rdx, qword [0x005320c8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.0040f510
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40826b
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret