joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d34
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp - 0x19], 0
mov rsi, rdx
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140002e6a
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140002e6a
and qword [rbp - 1], 0
lea rax, [rbp - 1]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rbp - 0x19]
test eax, eax
jne 0x140002db3
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc000010a
jmp 0x140002e6f
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rcx, qword [rbp - 0x19]
lea rdx, [rbp + 7]
xorps xmm0, xmm0
test rax, rax
movups xmmword [rbp + 7], xmm0
setne dil
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x19]
mov dl, dil
call fcn.1400052f4
test rax, rax
je 0x140002e19
and qword [rbp - 0x11], 0
lea rcx, [rbp - 9]
and qword [rbp - 9], 0
lea r9, [rbp - 0x11]
mov qword [rsp + 0x20], rcx
mov r8b, dil
mov rcx, rsi
mov rdx, rax
call fcn.140002e94
test eax, eax
jns 0x140002e1e
mov ebx, eax
lfence
jmp 0x140002e52
lfence
mov r9, qword [rbp - 9]
mov dl, dil
mov r8, qword [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
call section..text
mov ebx, eax
test eax, eax
jns 0x140002e52
mov r9d, 0x10000
lea rdx, [rbp - 0x11]
xor r8d, r8d
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140002e72
mov eax, 0xc0000225
lfence
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140005640
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002e94
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x30], 0
mov r15, r9
mov r12b, r8b
mov dword [rax - 0x60], 0x40
mov rsi, rdx
mov qword [rbp - 0x20], 0x1000
mov r13, rcx
mov dword [rax - 0x68], 0x3000
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [rbp - 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edi, eax
lfence
test eax, eax
js 0x140002fcc
mov rcx, qword [rbp - 0x30]
lea rdx, [0x1400067c8]
mov al, r12b
xorps xmm0, xmm0
neg al
movzx eax, word [r13]
sbb r14, r14
and qword [rbp - 0x28], 0
mov word [rbp - 0x26], ax
and r14, 0xfffffffffffffff4
mov word [rbp - 0x28], ax
add r14, 0x23
movups xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x16], ax
mov r8, r14
mov word [rbp - 0x18], ax
lea rax, [rcx + 0x10]
add rax, r14
mov qword [rbp - 0x10], rax
lea eax, [rcx + 8]
add eax, r14d
mov dword [rbp - 0x24], eax
mov al, r12b
neg al
lea rax, [0x1400067b0]
sbb rbx, rbx
and rbx, 0xfffffffffffffff8
add rbx, 0x10
test r12b, r12b
cmovne rdx, rax
call fcn.140005780
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x18]
test r12b, r12b
lea rdx, [rbp - 0x28]
mov r8, rbx
cmove rdx, rax
add rcx, r14
call fcn.140005780
movzx r8d, word [r13]
lea rcx, [rbx + r14]
add rcx, qword [rbp - 0x30]
mov rdx, qword [r13 + 8]
call fcn.140005780
mov rax, qword [rbp - 0x30]
test r12b, r12b
je 0x140002fb4
mov dword [rax + 1], esi
jmp 0x140002fb8
mov qword [rax + 2], rsi
mov rax, qword [rbp - 0x30]
mov qword [r15], rax
lea rcx, [r14 + rax]
mov rax, qword [rbp + 0x50]
mov qword [rax], rcx
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400053c8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r9, rdx
mov rsi, rcx
mov eax, 0x5a4d
xor ebx, ebx
cmp word [rcx], ax
jne 0x140005527
mov eax, dword [rcx + 0x3c]
test eax, eax
je 0x140005527
add rax, rcx
je 0x140005527
cmp dword [rax], 0x4550
jne 0x140005527
movzx ecx, word [rax + 0x18]
mov edx, 0x20b
cmp cx, dx
jne 0x140005427
mov ecx, 0x88
jmp 0x14000543a
mov edx, 0x10b
cmp cx, dx
jne 0x140005527
mov ecx, 0x78
mov edx, dword [rcx + rax + 4]
mov dword [rsp + 0x80], edx
mov edx, dword [rcx + rax]
test edx, edx
je 0x140005527
mov edi, edx
add rdi, rsi
je 0x140005527
mov eax, dword [rdi + 0x20]
test eax, eax
mov r15, rbx
je 0x140005469
lea r15, [rsi + rax]
mov eax, dword [rdi + 0x1c]
test eax, eax
mov r12, rbx
je 0x140005477
lea r12, [rsi + rax]
mov eax, dword [rdi + 0x24]
test eax, eax
mov r13, rbx
je 0x140005485
lea r13, [rsi + rax]
test r15, r15
je 0x140005527
test r12, r12
je 0x140005527
test r13, r13
je 0x140005527
mov r14d, ebx
mov dword [rsp + 0x20], ebx
cmp r14d, dword [rdi + 0x18]
jae 0x140005527
mov eax, r14d
mov qword [rsp + 0x88], rax
mov ecx, dword [r15 + rax*4]
test ecx, ecx
je 0x14000551d
mov edx, ecx
add rdx, rsi
je 0x14000551d
mov r8d, 0x100
mov rcx, r9
call sub.ntoskrnl.exe_strncmp
test eax, eax
jne 0x140005518
mov rax, qword [rsp + 0x88]
movzx ecx, word [r13 + rax*2]
cmp ecx, dword [rdi + 0x14]
jae 0x140005527
lfence
mov ecx, dword [r12 + rcx*4]
test ecx, ecx
jne 0x1400054fc
mov rcx, rbx
jmp 0x1400054ff
add rcx, rsi
cmp rcx, rdi
jb 0x140005513
mov eax, dword [rsp + 0x80]
add rax, rdi
cmp rcx, rax
jbe 0x140005527
mov rbx, rcx
jmp 0x140005527
mov r9, qword [rsp + 0x78]
inc r14d
mov dword [rsp + 0x20], r14d
jmp 0x1400054a7
mov rax, rbx
jmp 0x14000552e
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x2fc4ce340
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cf420
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ced42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4cedda
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4cedbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cedb2
cmp qword [rbp - 0x10], 0
je 0x2fc4cedb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4ced78
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ceddb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ceee0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cef08
mov eax, 0
jmp 0x2fc4cef56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cef31
mov eax, 0
jmp 0x2fc4cef56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cef51
mov eax, 0
jmp 0x2fc4cef56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cef5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cefda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cefd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cefd1
mov rax, qword [rbp - 8]
jmp 0x2fc4cefef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cefa4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005a30
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x48
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140005b3a
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140005b2f
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140005b24
mov r8d, 0x7fff
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140005b19
mov edx, 0x7fff
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140005b19
mov r9, qword [rsp + 0x28]
lea r8, str._scmd.exe
mov edx, 0x7fff
mov rcx, qword [rsp + 0x30]
call fcn.140023d1c
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005b19
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
jmp 0x140005b3c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x48
ret

Function at 0x14000ab30
Capabilities:
Persist via run registry key

Disassembly:
sub rsp, 0x68
lea rdx, [rsp + 0x30]
lea rcx, [0x14005d480]
call fcn.14000ae40
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000ac8f
mov edx, 0xfffe
mov ecx, 0x40
call qword [0x140063768]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000ac84
lea rax, str.A2FFDEE3_3717_43B2_A215_EBEF5E167A5E
mov qword [rsp + 0x28], rax
lea rax, str.USOPlayer
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x38]
lea r8, str._s_s__s
mov edx, 0x7fff
mov rcx, qword [rsp + 0x40]
call qword [0x140063e90]
mov dword [rsp + 0x50], eax
cmp dword [0x14005f130], 1
jne 0x14000ac14
lea r8, [rsp + 0x48]
lea rdx, [0x1400345d0]
mov rcx, 0xffffffff80000001
call qword [0x140063cf8]
test eax, eax
jne 0x14000ac14
mov eax, dword [rsp + 0x50]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14005f2b4]
mov rcx, qword [rsp + 0x48]
call qword [0x140063cf0]
mov rcx, qword [rsp + 0x48]
call qword [0x140063d00]
cmp dword [0x14005f12c], 1
jne 0x14000ac79
lea r8, [rsp + 0x48]
lea rdx, [0x140034630]
mov rcx, 0xffffffff80000002
call qword [0x140063cf8]
test eax, eax
jne 0x14000ac79
mov eax, dword [rsp + 0x50]
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14005f302]
mov rcx, qword [rsp + 0x48]
call qword [0x140063cf0]
mov rcx, qword [rsp + 0x48]
call qword [0x140063d00]
mov rcx, qword [rsp + 0x40]
call qword [0x140063780]
mov rcx, qword [rsp + 0x38]
call qword [0x140063780]
mov eax, 1
add rsp, 0x68
ret
Function at 0x14001dc00
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x3f0
lea rcx, str.UNLOAD.TXT
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14001dc90
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [0x140063788]
mov qword [0x1400634e0], rax
cmp qword [0x1400634e0], 0
je 0x14001dc90
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140005660]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400634e8], rax
cmp qword [0x1400634e8], 0
je 0x14001dc78
jmp 0x14001dc90
mov rcx, qword [0x1400634e0]
call qword [0x140063780]
mov qword [0x1400634e0], 0
cmp dword [0x14005f140], 1
jne 0x14001dd7c
call fcn.1400197b0
cmp eax, 1
jne 0x14001dd7c
mov qword [rsp + 0x1d8], 0
mov dword [rsp + 0x1d0], 0
lea rdx, [rsp + 0x1d0]
lea rcx, [0x14005d480]
call fcn.14000ae40
mov qword [rsp + 0x1d8], rax
cmp qword [rsp + 0x1d8], 0
je 0x14001dd7c
xor eax, eax
mov word [rsp + 0x1e0], ax
lea rax, [rsp + 0x1e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, str.USOPlayer
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1d8]
lea r8, str.__s_s_
mov edx, 0x104
lea rcx, [rsp + 0x1e0]
call fcn.140023d1c
mov eax, dword [0x14005f1e4]
mov dword [rsp + 0x28], eax
mov eax, dword [0x14005f1e0]
mov dword [rsp + 0x20], eax
lea r9, str.Intel_Corporation
lea r8, str.InteI_PTT_EK_Recertification
lea rdx, str.A2FFDEE3_3717_43B2_A215_EBEF5E167A5E
lea rcx, [rsp + 0x1e0]
call fcn.140002e90
mov rcx, qword [rsp + 0x1d8]
call qword [0x140063780]
cmp dword [0x14005f134], 0
jne 0x14001dd8a
call fcn.14000ab30
cmp dword [0x14005f138], 1
jne 0x14001dd98
call fcn.14000a7b0
cmp dword [0x14005f134], 1
jne 0x14001dda6
call fcn.140014b60
mov ecx, 0x15
call fcn.140010fc0
cmp dword [0x14005da70], 1
jne 0x14001de22
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400634f8], rax
cmp qword [0x1400634f8], 0
je 0x14001de22
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400095d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140063500], rax
cmp qword [0x140063500], 0
je 0x14001de15
jmp 0x14001de22
mov rcx, qword [0x1400634f8]
call qword [0x140063758]
lea rdx, [rsp + 0x30]
mov cx, 2
call qword [0x140064020]
test eax, eax
jne 0x14001dead
cmp dword [0x14005d33c], 1
jne 0x14001de6a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140018cb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400643f0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140021700]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400648e0], rax
cmp qword [0x1400648e0], 0
je 0x14001dea7
mov eax, 1
jmp 0x14001deb2
call qword [0x140064028]
mov eax, 1
add rsp, 0x3f0
pop rdi
ret
Function at 0x2fc4d0dc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1ea0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d17c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d185a
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d183e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1832
cmp qword [rbp - 0x10], 0
je 0x2fc4d1832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d17f8
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d185b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1960
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1988
mov eax, 0
jmp 0x2fc4d19d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d19b1
mov eax, 0
jmp 0x2fc4d19d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d19d1
mov eax, 0
jmp 0x2fc4d19d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d19dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d1a5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1a51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1a51
mov rax, qword [rbp - 8]
jmp 0x2fc4d1a6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1a24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x411b40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411ccb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042d7e0
xorps xmm15, xmm15
mov r14, qword [0x00546220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x411ba5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x411bb4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x411bd3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x411be3
cmp rbx, 0x1000
jae 0x411bab
jmp 0x411c4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x411bf5
xor edx, edx
jmp 0x411c44
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042d7e0
xorps xmm15, xmm15
mov r14, qword [0x00546220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x411bd9
jmp 0x411bc8
call fcn.0045aa00
xorps xmm15, xmm15
mov r14, qword [0x00546220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00431b40
lea rax, [0x00480227]
mov ebx, 0x18
nop dword [rax]
call fcn.004323c0
mov rax, qword [rsp + 0x38]
call fcn.00432100
lea rax, [0x004804ed]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004323c0
mov rax, qword [rsp + 0x30]
call fcn.00432100
call fcn.00431d80
call fcn.00431ba0
lea rax, [0x00481d05]
mov ebx, 0x21
call fcn.004301a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00457360
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00411b40
Function at 0x411d00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411f26
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042d860
xorps xmm15, xmm15
mov r14, qword [0x00546220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x411d73
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x411d82
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x411da5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x411db5
cmp rbx, 0x1000
jae 0x411d79
nop
jmp 0x411e38
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x411dcd
xor esi, esi
jmp 0x411e2a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042d860
xorps xmm15, xmm15
mov r14, qword [0x00546220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x411dab
jmp 0x411d96
call fcn.0045aa00
xorps xmm15, xmm15
mov r14, qword [0x00546220]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x411ec0
nop dword [rax + rax]
call fcn.00431b40
lea rax, [0x00480506]
mov ebx, 0x19
call fcn.004323c0
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00432100
lea rax, [0x004804ed]
mov ebx, 0x19
call fcn.004323c0
mov eax, dword [rsp + 0x34]
call fcn.00432100
nop
call fcn.00431d80
call fcn.00431ba0
lea rax, [0x0047e03e]
mov ebx, 0xd
call fcn.004301a0
nop dword [rax + rax]
cmp eax, 0x5af
je 0x411e60
call fcn.00431b40
lea rax, [0x00480506]
mov ebx, 0x19
call fcn.004323c0
mov rax, qword [rsp + 0x38]
call fcn.00432100
lea rax, [0x004804ed]
mov ebx, 0x19
call fcn.004323c0
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00432100
call fcn.00431d80
call fcn.00431ba0
lea rax, [0x00481727]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.004301a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00457360
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00411d00