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

Disassembly:
push rbp
push r12
push r14
push r15
lea rbp, [rsp - 0x568]
sub rsp, 0x668
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x550], rax
mov r15, rcx
lea rax, [rsp + 0x40]
xor r12d, r12d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], r12
mov r9d, 0xf003f
lea rdx, str.SoftwareIntelProunstlDins
xor r8d, r8d
mov r14d, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400125b2
mov qword [rsp + 0x698], rbx
lea rcx, [rbp + 0x150]
xor edx, edx
mov qword [rsp + 0x660], rdi
mov r8d, 0x400
call fcn.140017670
xor edx, edx
mov dword [rsp + 0x4c], 0x200
mov r8d, 0x200
lea rcx, [rsp + 0x50]
mov ebx, r12d
mov edi, r12d
call fcn.140017670
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x200
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x150]
mov qword [rsp + 0x28], r12
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140012597
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x4c], 0x400
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x150]
inc ebx
mov qword [rsp + 0x28], r12
mov edx, ebx
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x48], 0x200
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140012460
test ebx, ebx
je 0x140012597
mov ecx, ebx
mov eax, 0x500
mul rcx
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x6a0], rsi
cmovo rax, rcx
mov rcx, rax
call fcn.1400157b4
mov r14, rax
mov dword [rsp + 0x4c], 0x80
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x48], 0x200
mov r8, r14
xor edx, edx
lea rcx, [rax + 0x100]
mov esi, r12d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14001258c
nop dword [rax]
inc esi
cmp edi, ebx
jae 0x14001258c
lfence
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x4c], 0x80
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
inc edi
mov edx, esi
mov dword [rsp + 0x48], 0x200
lea r8, [rdi + rdi*4]
shl r8, 8
add r8, r14
lea rax, [r8 + 0x100]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140012530
mov rsi, qword [rsp + 0x6a0]
mov dword [r15], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x660]
mov rbx, qword [rsp + 0x698]
mov rax, r14
mov rcx, qword [rbp + 0x550]
xor rcx, rsp
call fcn.140015690
add rsp, 0x668
pop r15
pop r14
pop r12
pop rbp
ret
Function at 0x140013bd0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, rcx
mov rbx, r8
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_SetDefaultDllDirectories]
xor edx, edx
mov qword [0x140048830], rdi
lea rcx, [0x140048c60]
call fcn.140008a80
lea rdx, str._nogui
mov rcx, rbx
call fcn.14001dd4c
movzx ecx, byte [0x140048429]
lea rdx, str._precheckonly
test eax, eax
mov esi, 1
cmove ecx, esi
mov byte [0x140048429], cl
mov rcx, rbx
call fcn.14001dd4c
test eax, eax
jne 0x140013c61
mov byte [0x140048428], sil
mov byte [0x140048429], sil
mov rcx, qword [0x140048830]
lea r8, [0x140048840]
mov r9d, 0x200
mov edx, esi
call qword [sym.imp.USER32.dll_LoadStringW]
call fcn.140015230
test al, al
jne 0x140013cce
mov rcx, qword [0x140048830]
lea r8, [rsp + 0x70]
mov r9d, 0x200
lea edx, [r9 + 0x38]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x30
lea r8, [0x140048840]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 2
jmp 0x140013e27
cmp byte [0x140048428], 0
je 0x140013d55
call fcn.140014940
mov dword [rsp + 0x38], eax
lea rdx, str.SOFTWAREIntelProunstl
lea rax, [rsp + 0x30]
mov r9d, 0x2001b
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013d43
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.PrecheckResult
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 2
jmp 0x140013e27
xor r8d, r8d
lea r9, [0x1400126b0]
mov rcx, rdi
lea edx, [r8 + 0x67]
call fcn.140015030
mov qword [0x140048420], rax
test rax, rax
je 0x140013e27
cmp byte [0x140048429], 0
je 0x140013da9
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140048420]
xor r9d, r9d
mov r8, rsi
mov edx, 0x111
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x140013dc0
call fcn.1400125e0
mov rcx, qword [0x140048420]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140013e23
nop word [rax + rax]
mov rcx, qword [0x140048420]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140013e0c
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140013de0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140015690
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400144f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x478
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
mov rsi, r9
call fcn.140017670
lea r8, str.SYSTEMCurrentControlSetControlClass
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14001df44
lea r8, [0x14002eb08]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14001dec4
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.14001dec4
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400145e8
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x250]
mov dword [rsp + 0x38], 0x104
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400145dd
lea r8, [rsp + 0x250]
mov rdx, rsi
mov rcx, rdi
call fcn.14001df44
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140015690
add rsp, 0x478
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400150a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
movzx r9d, r8w
mov rbx, rcx
movzx r8d, dx
mov edx, 5
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1400150e1
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400150e1
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LockResource]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140015260
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400152a9
xor al, al
jmp 0x140015363
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x490], rsi
lea r8, [rsp + 0x60]
xor esi, esi
mov dword [rsp + 0x48], 0x200
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001533f
nop
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.140015260
mov rcx, qword [rsp + 0x40]
test al, al
je 0x140015384
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x400
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400152f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete al
mov rsi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140015690
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14001535b

Function at 0x140016324
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001636e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001636e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001636e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001636e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001636e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140016370
xor al, al
add rsp, 0x28
ret
Function at 0x1400034f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x30], rax
lea r8, str.EnableDebuggerBreakForTaskHang
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 0x10]
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSchedule
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140008af6
mov rcx, qword [0x140014018]
lea rdx, [0x140014018]
cmp rcx, rdx
je 0x140003567
test byte [rcx + 0x1c], 1
jne 0x140008ad8
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000f5f0]
mov edx, 0xd
mov r9d, eax
call fcn.140009bb4
nop
jmp 0x140003567
cmp dword [rsp + 0x50], ebx
setne bl
mov eax, ebx
jmp 0x140003569

Function at 0x140004df0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor r9d, r9d
mov rsi, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
xor ebp, ebp
mov qword [rsi + 0x38], rax
test rax, rax
je 0x14000952c
xor r9d, r9d
lea edx, [rbp + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rsi + 0x28], rax
lea rbx, [rsi + 0x28]
test rax, rax
je 0x140009550
mov qword [rsp + 0x28], rbp
lea r8, [0x140001260]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140009550
mov rcx, qword [rbx]
mov edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
mov edi, dword [rsi + 0x20]
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004eb9
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbx], rbp
test edi, edi
js 0x140009574
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140009547
movzx edi, ax
or edi, 0x80070000
lea rbx, [rsi + 0x28]
jmp 0x140004e9d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140004e9d
movzx edi, ax
or edi, 0x80070000
jmp 0x140004e9d
cmp qword [rsi + 0x30], rbp
je 0x14000959a
mov rcx, qword [rsi]
mov rax, qword [rcx + 0x30]
movabs r10, 0xd60596653ed35070
mov rcx, rsi
call qword [case.0x14000b1f5.0]
nop
jmp 0x140004ec1
mov rcx, qword [rsi + 0x38]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140004ec1
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsi + 0x38], rbp
jmp 0x140004ec1
Function at 0x1400056a0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014898], rbx
je 0x140005707
cmp rax, rbx
jne 0x1400056fa
mov edi, 1
mov esi, edi
jmp 0x14000570c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400056df
mov edi, 1
mov eax, dword [0x1400148a0]
cmp eax, edi
jne 0x140005724
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000579a
mov eax, dword [0x1400148a0]
test eax, eax
jne 0x14000578f
mov dword [0x1400148a0], edi
lea r15, [0x14000d870]
lea rbx, [0x14000d858]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140005781
test eax, eax
jne 0x140005785
cmp qword [rbx], r14
je 0x140005776
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [case.0x14000b1f5.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000574e
test eax, eax
je 0x140005795
mov eax, 0xff
jmp 0x1400058fb
mov dword [0x140014224], edi
mov ebx, 0x1f
mov eax, dword [0x1400148a0]
cmp eax, edi
jne 0x1400057c1
lea rdx, [0x14000d850]
lea rcx, [0x14000d808]
call sub.msvcrt.dll__initterm
mov dword [0x1400148a0], 2
test esi, esi
jne 0x1400057cf
mov rax, r14
xchg qword [0x140014898], rax
cmp qword [0x1400148a8], r14
je 0x14000580c
lea rcx, [0x1400148a8]
call fcn.140005b20
test eax, eax
je 0x14000580c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400148a8]
mov r9, qword [case.0x14000b1f5.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140005825
mov eax, 0xff
jmp 0x1400058fb
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400058ac
test ax, ax
je 0x140005840
test edx, edx
jne 0x1400058ac
sub ax, di
cmp ax, bx
ja 0x140005856
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140005840
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019a0
mov dword [0x140014220], eax
cmp dword [0x140014240], r14d
jne 0x140005895
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014224], r14d
jne 0x1400058aa
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140014220]
jmp 0x1400058fb
cmp ax, 0x22
jne 0x1400058c0
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000582e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140005bb4
add rsp, 0x28
jmp 0x1400056a0
Function at 0x140005a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140005a58
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140005a50
cmp dword [rcx + 0x3c], edx
jl 0x140005a50
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140005a50
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 0x140005a58
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140005b80
Capabilities:
Parse pe header

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

Function at 0x14000a7a4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
lea r8, [0x14000ab90]
mov rbx, rcx
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x14000a7fc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x14000a7f3
mov edi, eax
jmp 0x14000a7fc
movzx edi, ax
or edi, 0x80070000
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14000b290
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
and dword [rsp + 0x50], ebx
and qword [rsp + 0x60], rbx
lea ecx, [rbx + 8]
lea eax, [rbx + 1]
lock cmpxchg dword [rdi + 0x10], ecx
je 0x14000b2ef
lea eax, [rbx + 5]
lock cmpxchg dword [rdi + 0x10], ecx
cmp eax, 4
je 0x14000b2db
cmp eax, 7
je 0x14000b2db
lea eax, [rbx + 2]
lock cmpxchg dword [rdi + 0x10], ecx
cmp eax, 4
je 0x14000b2db
cmp eax, 7
jne 0x14000b42d
lea rdx, str.Stop
mov rcx, rdi
call fcn.14000b178
jmp 0x14000b42d
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x14000b460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
nop dword [rax + rax]
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.14000b11c
mov qword [rsp + 0x60], rbx
lea rbp, [0x140014018]
test rbx, rbx
jne 0x14000b39e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000b34d
movzx ebx, ax
or ebx, 0x80070000
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x140014018]
cmp rcx, rbp
je 0x14000b385
test byte [rcx + 0x1c], 1
je 0x14000b385
mov edx, 0x11
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x14000f628]
mov rcx, qword [rcx + 0x10]
call fcn.14000b728
mov rcx, rdi
call fcn.14000b628
lea rdx, str.Stop
mov rcx, rdi
call fcn.14000b178
jmp 0x14000b3fa
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
mov dword [rsp + 0x50], eax
test eax, eax
je 0x14000b3de
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
jle 0x14000b3d3
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14000b3fe
mov ebx, 0x80004005
jmp 0x14000b3fe
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
je 0x14000b3b8
mov ebx, dword [rsp + 0x50]
test ebx, ebx
jns 0x14000b42d
mov rcx, qword [0x140014018]
cmp rcx, rbp
je 0x14000b42d
test byte [rcx + 0x1c], 1
je 0x14000b42d
mov edx, 0x12
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x14000f628]
mov rcx, qword [rcx + 0x10]
call fcn.14000b728
nop
lea rcx, [rsp + 0x60]
call fcn.14000b11c
nop
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x140001d38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d82
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d84
xor al, al
add rsp, 0x28
ret

Function at 0x14157b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14157b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14157b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14157b06f
add dl, dl
jne 0x14157b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14157b0f6
xor eax, eax
add dl, dl
jne 0x14157b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14157b1ad
add dl, dl
jne 0x14157b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14157b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14157b07e
mov eax, 1
add dl, dl
jne 0x14157b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14157b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14157b0fb
sub eax, ebx
mov ebx, 1
jne 0x14157b14c
mov ecx, 1
add dl, dl
jne 0x14157b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14157b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14157b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14157b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14157b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14157b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14157b15d
cmp eax, 0x7d00
jae 0x14157b19b
cmp eax, 0x500
jb 0x14157b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14157b07e
cmp eax, 0x7f
ja 0x14157b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14157b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14157b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14157b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20