joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18015b980
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x18015b9c1
mov dword [rsp + 0x20], edx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 2]
call fcn.18015ea20
xor al, al
jmp 0x18015bb6d
call fcn.18015b030
mov qword [rdi + 8], 0xffffffffffffffff
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call fcn.180160290
mov rcx, rbx
call fcn.1801605f8
movsxd rsi, eax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180160290
test esi, esi
jne 0x18015ba14
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0xd]
mov rcx, rdi
call fcn.18015ea20
xor al, al
jmp 0x18015bb6d
lea r15, [0x180278200]
mov qword [rsp + 0x88], r15
mov r14, rsi
mov rdx, rsi
lea rcx, [rsp + 0x88]
call fcn.18015a7c0
lea eax, [rsi + 1]
movsxd rcx, eax
call fcn.1800b543c
mov rsi, rax
mov byte [rax], 0
mov r9, rbx
mov r8d, 1
mov rdx, r14
mov rcx, rax
call fcn.18016011c
cmp rax, 1
je 0x18015ba80
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov rcx, rdi
call fcn.18015ea20
jmp 0x18015bb52
mov rdx, rsi
mov rbx, rsi
mov byte [r14 + rsi], 0
cmp byte [rsi], 0
je 0x18015bb14
movzx eax, byte [rbx]
cmp al, 0xa
jne 0x18015bab9
mov r8, rbx
sub r8, rdx
inc r8
lea rcx, [rsp + 0x88]
call fcn.18015a660
inc rbx
mov rdx, rbx
jmp 0x18015bb0f
cmp al, 0xd
jne 0x18015bb0c
mov r8, rbx
sub r8, rdx
test r8, r8
jle 0x18015bad5
lea rcx, [rsp + 0x88]
call fcn.18015a660
mov byte [rsp + 0x78], 0xa
mov r8d, 1
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x88]
call fcn.18015a660
lea rax, [rbx + 1]
cmp byte [rax], 0xa
jne 0x18015bb04
add rbx, 2
mov rdx, rbx
jmp 0x18015bb0f
mov rbx, rax
mov rdx, rax
jmp 0x18015bb0f
inc rbx
cmp byte [rbx], 0
jne 0x18015ba94
sub rbx, rdx
je 0x18015bb29
mov r8, rbx
lea rcx, [rsp + 0x88]
call fcn.18015a660
mov rcx, rsi
call fcn.1800b5354
mov rax, qword [rdi]
mov rdx, qword [rsp + 0x88]
add rdx, 0x10
mov r9d, ebp
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x10]
cmp byte [rdi + 0x50], 0
je 0x18015bb56
xor bl, bl
jmp 0x18015bb58
mov bl, 1
mov rcx, qword [rsp + 0x88]
cmp rcx, r15
je 0x18015bb6a
call fcn.1800b5354
movzx eax, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011320
Capabilities:
Timestomp file

Disassembly:
jmp 0x140014290
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400290f5]
call fcn.1400115e1
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, 7
mov word [rbp + 0xe], ax
mov eax, 0xc
mov word [rbp + 0xa], ax
mov eax, 0x7e3
mov word [rbp + 8], ax
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x100
lea rcx, str.C:WindowsSystem32mcm.dll
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x58], rax
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x38]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x40]
lea rdx, [0x14001efd0]
call fcn.140011500
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.1400112e4
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140011357
Capabilities:
Terminate process

Disassembly:
jmp 0x1400176e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001142e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018a30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018a50
xor al, al
jmp 0x140018ad1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018a63
xor al, al
jmp 0x140018ad1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140018a8d
xor al, al
jmp 0x140018ad1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018aa1
xor al, al
jmp 0x140018ad1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018ab3
xor al, al
jmp 0x140018ad1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018acf
xor al, al
jmp 0x140018ad1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011645
Capabilities:
Create process on windows

Disassembly:
jmp 0x140015d10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1400290f5]
call fcn.1400115e1
lea r8, [0x14001f904]
xor edx, edx
mov rcx, qword [rbp + 0x1d0]
call fcn.140011050
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x70
mov dword [rbp + 0x14], 0x40
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
lea rax, str.cmd.exe
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x1d0]
call fcn.140011091
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140015dfa
mov dword [rbp + 0x174], 0xffffffff
mov rcx, qword [rbp + 0x1d0]
call fcn.14001111d
mov eax, dword [rbp + 0x174]
jmp 0x140015e42
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rbp + 0x94]
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x94]
mov dword [rbp + 0x194], eax
mov rcx, qword [rbp + 0x1d0]
call fcn.14001111d
mov eax, dword [rbp + 0x194]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ee40]
call fcn.140011500
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400112e4
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140001827
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x1b0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x120], 0
mov dword [rbp - 0x10], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x128], rax
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
sete al
test al, al
je 0x1400019c4
jmp 0x1400019a3
mov rax, qword [rbp + 0x140]
lea rdx, [rbp - 0x10]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x1400019a3
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov ecx, eax
lea rax, [rbp - 0x14]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
call rax
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.140001701
mov edx, eax
mov eax, dword [rbp - 0x14]
cmp edx, eax
sete al
test al, al
je 0x1400019a3
mov qword [rbp - 0x28], 0
mov eax, dword [rbp - 8]
mov ecx, eax
call fcn.1400014a4
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov r10, qword [0x14012b080]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x120]
mov r9, rcx
mov r8, rdx
mov edx, 0x1fffff
mov rcx, rax
call r10
mov rax, qword [rbp + 0x120]
test rax, rax
je 0x140001987
mov rax, qword [rbp + 0x120]
cmp rax, 0xffffffffffffffff
je 0x140001987
mov rdx, qword [0x14012b078]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x120]
jmp 0x1400019de
mov rdx, qword [0x14012b078]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
jmp 0x1400019de
lea rdx, [rbp - 0x10]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
sete al
test al, al
jne 0x14000188c
mov rdx, qword [0x14012b078]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call rdx
mov rax, 0xffffffffffffffff
add rsp, 0x1b0
pop rbp
ret
Function at 0x1400019e7
Capabilities:
Create process on windows
Create process suspended
Protect spawned processes with mitigation policies
Spoof parent pid

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xd0
lea rbp, [rsp + 0xd0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0x20]
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movq qword [rax + 0x10], xmm0
lea rax, [rbp - 0x78]
mov r9, rax
mov r8d, 0
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp - 0x78]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x78]
mov r9, rdx
mov r8d, 0
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
movabs rax, 0x100000000000
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20007
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov rax, qword [rbp - 8]
lea rdx, [rbp + 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x34], 0x80001
mov word [rbp - 0x30], 0
mov rax, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x808000c
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call rax
nop
mov rax, qword [rbp + 0x20]
add rsp, 0xd0
pop rbx
pop rdi
pop rbp
ret
Function at 0x1400136e0
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 fcn.14001dbc0
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.14001dbc0
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 0x140013750
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14012b144]
mov rbx, rcx
test esi, esi
jle 0x140013880
mov rax, qword [0x14012b148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001379b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013825
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013780
mov rcx, rbx
call fcn.1400141a0
mov rdi, rax
test rax, rax
je 0x1400138a2
mov rax, qword [0x14012b148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400142e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14012b148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013887
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001381e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013830
add dword [0x14012b144], 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 [0x14012b148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001381e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400136e0
nop dword [rax]
xor esi, esi
jmp 0x1400137a8
mov rax, qword [0x14012b148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400136e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400136e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140013e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14012b1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14012b180]
test rbx, rbx
je 0x140013e6c
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 0x140013e63
test rsi, rsi
je 0x140013e63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013e48
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 0x1400141a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401056c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400141c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400141c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400141c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001421d
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 0x140014214
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400141c0
add rax, 0x28
cmp rax, r9
jne 0x140014200
xor eax, eax
ret

Function at 0x140014220
Capabilities:
Parse pe header

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

Function at 0x1400142e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401056c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400142ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014308
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140081bb0
Capabilities:
Read file on windows

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

Function at 0x1400bc6b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400fe760]
jmp 0x140014ff0

Function at 0x1400bc6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400fe760]
jmp 0x140014ff0
Function at 0x1400016e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400051f0], rbx
je 0x14000172c
cmp rax, rbx
jne 0x14000171f
mov ebx, 1
mov esi, ebx
jmp 0x140001731
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001704
mov ebx, 1
mov eax, dword [0x1400051f8]
cmp eax, ebx
jne 0x140001747
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400017ac
mov eax, dword [0x1400051f8]
test eax, eax
jne 0x1400017a6
mov dword [0x1400051f8], ebx
lea r15, [0x140002310]
lea rdi, [0x1400022f8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001798
test eax, eax
jne 0x14000179c
cmp qword [rdi], 0
je 0x14000178d
mov rax, qword [rdi]
mov rcx, qword [0x1400022d8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000176e
test eax, eax
je 0x1400017ac
mov eax, 0xff
jmp 0x140001888
mov dword [0x140003024], ebx
mov eax, dword [0x1400051f8]
cmp eax, ebx
jne 0x1400017d3
lea rdx, [0x1400022f0]
lea rcx, [0x1400022e0]
call sub.msvcrt.dll__initterm
mov dword [0x1400051f8], 2
test esi, esi
jne 0x1400017e0
xor eax, eax
xchg qword [0x1400051f0], rax
cmp qword [0x140005200], 0
je 0x140001814
lea rcx, [0x140005200]
call fcn.140001a90
test eax, eax
je 0x140001814
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140005200]
mov r9, qword [0x1400022d8]
call r9
mov r8, qword [0x140003038]
mov rdx, qword [0x140003030]
mov ecx, dword [0x140003028]
call fcn.140001008
mov dword [0x140003020], eax
cmp dword [0x140003040], 0
jne 0x140001844
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003024], 0
jne 0x140001859
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003020]
jmp 0x140001888
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140095000
add rsp, 0x28
jmp 0x1400016e0

Function at 0x14000197c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400019c8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400019c0
cmp dword [rcx + 0x3c], edx
jl 0x1400019c0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400019c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400019c8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003c20
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140003c43
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x39]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140003c30
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x140003c50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003c84
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003c70
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003cb9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006a00
nop
cmp byte [rbx + 0xa], 0
je 0x140003ce3
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x39]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 9
jb 0x140003cd0
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003d18
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006a00
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140008ca0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003d6c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a937c
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003dac
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003da7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003da7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a937c
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003dc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140003df4
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140003de0
mov byte [r8 + 7], sil
lea rax, [r8 + 6]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003e29
mov r8d, 6
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006a00
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003e37
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140009b50
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003eac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ea7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ea7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a937c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003ec0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 0xa], sil
je 0x140003ef4
mov ecx, esi
lea eax, [rcx - 0x39]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 9
jb 0x140003ee0
mov byte [r8 + 0xa], sil
lea rax, [r8 + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003f29
mov r8d, 9
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006a00
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003f37
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140009b50
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003fac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fa7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a937c
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003fc0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x140003fe8
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x39]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x135
jb 0x140003fd0
mov byte [rcx + 0x136], 0
mov rax, rcx
ret