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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rcx
mov qword [rsp + 0x40], rdx
xor ecx, ecx
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov edi, dword [rsi + 8]
mov dword [rsp + 0x50], ecx
or edi, 0x2001f
mov qword [rsp + 0x58], rcx
mov r9d, edi
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000b5a7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000b4d8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x14000b5a7
xor edi, edi
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000b57f
nop dword [rax]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14000b450
mov ebx, eax
test eax, eax
jne 0x14000b5a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x14000b530
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000b594
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140009a80
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000b5b7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140013c00
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b730
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140009aae
mov r8, rdx
mov rdx, qword [rdi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14000b730
cmp byte [0x14006aa58], 0
mov qword [rsp + 0x30], rbx
jne 0x140009b01
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140009af1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14006aa50], rax
mov byte [0x14006aa58], 1
jmp 0x140009b08
mov rbx, qword [0x14006aa50]
mov byte [0x14006aa58], 1
jmp 0x140009b08
mov rbx, qword [0x14006aa50]
test rbx, rbx
je 0x140009b38
mov rcx, rbx
call qword [fcn.140014fd0]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rcx, qword [rdi]
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14000b7a7
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000b7bb
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000b7bb
mov rcx, rax
call qword [fcn.140014fd0]
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x14000b7c0
cmp dword [rcx + 8], 0
je 0x14000b7bb
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
jmp 0x14000b7c0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000bb70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140017b30
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000bc10
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000bc10
call fcn.140008b40
mov ebx, eax
jmp 0x14000bd38
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000bc31
call fcn.140008b40
jmp 0x14000bd27
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000bc54
call fcn.140008b40
jmp 0x14000bd27
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000bc76
mov ebx, 0x8007000e
jmp 0x14000bd29
mov ecx, eax
test eax, eax
je 0x14000bcae
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000bca4
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000bcae
lea rcx, [rsp + 0x70]
call fcn.1400088d0
jmp 0x14000bcb8
mov ecx, 0x80070216
call fcn.1400062d0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000bccb
cmp qword [rsp + 0x70], 0
jne 0x14000bcda
mov ebx, 0x8007000e
jmp 0x14000bd29
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000bd04
call fcn.140008b40
jmp 0x14000bd27
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.14000b8c0
mov ebx, eax
test rdi, rdi
je 0x14000bd38
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000bd4f
lea rcx, [rsp + 0x70]
call fcn.140009ba0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140013c00
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000c850
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013c00
add rsp, 0x48
ret

Function at 0x14000c950
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorLength]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.LaunchPermission
mov rcx, rdi
mov esi, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
cmp eax, 2
jne 0x14000c9d3
mov dword [rsp + 0x28], esi
lea r9d, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.LaunchPermission
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExA]
test eax, eax
je 0x14000c9d3
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000cb70
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x14000cb88
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000cb94
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x14000cb90
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x14000cd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14d, edx
lea rax, [rsp + 0x40]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor edi, edi
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x40], rdi
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14000cdc8
mov dword [rbx + 0x27c], eax
jmp 0x14000ceff
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2a8], rsi
lea rdx, str.84081F6F_8B2D_4FFE_AF7F_E72D488FABEB
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov rsi, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cec8
mov rsi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000ce7a
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14000ce56
mov ecx, SafeArrayGetDim
jmp 0x14000ce7a
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000ce73
test al, 1
jne 0x14000ce6c
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], di
je 0x14000ce78
mov ecx, SafeArrayGetDim
jmp 0x14000ce7a
mov word [rsp + 0x70], di
mov ecx, edi
test ecx, ecx
mov eax, edi
mov edx, 1
cmove eax, edx
mov dword [rbx + 0x28c], eax
test eax, eax
je 0x14000cf25
lea rax, [rbx + 0x68]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [0x14000e360]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000cece
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rbx + 0x27c], eax
mov edi, dword [rbx + 0x27c]
test rsi, rsi
je 0x14000cee2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
mov rsi, qword [rsp + 0x2a8]
je 0x14000cefd
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140013c00
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
mov edi, eax
test eax, eax
jns 0x14000cf50
cmp eax, 0x80010106
jne 0x14000ced4
lea rcx, str.Mscoree.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
jne 0x14000cf54
jmp 0x14000ced4
mov byte [rbx + 0x62], 1
mov edx, r14d
mov rcx, rbx
call fcn.14000c610
mov edi, eax
mov dword [rbx + 0x27c], eax
jmp 0x14000ced4
Function at 0x14000d680
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000d220
test eax, eax
jne 0x14000d6b3
mov eax, 0x80004005
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013c00
add rsp, 0x58
ret
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d6f5
mov ecx, eax
call fcn.140008b60
mov ebx, eax
jmp 0x14000d76f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea rdx, str.84081F6F_8B2D_4FFE_AF7F_E72D488FABEB
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d72e
mov ecx, eax
call fcn.140008b60
mov ebx, eax
jmp 0x14000d75c
mov rcx, qword [rsp + 0x30]
lea rdx, str.LocalService
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.14000db10
cmp qword [rsp + 0x30], 0
mov ebx, eax
je 0x14000d75c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x14000d76f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140013c00
add rsp, 0x58
ret
Function at 0x14000e140
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x14006a918], 0
mov esi, edx
mov rbx, rcx
je 0x14000e166
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.14000ab30
cmp al, 1
jne 0x14000e1b7
lea rdx, str.Start__
xor ecx, ecx
call fcn.140003fe0
mov rcx, rbx
call fcn.14000d790
mov edi, eax
test eax, eax
js 0x14000e1bb
mov edx, esi
mov rcx, rbx
call fcn.14000cd60
mov edi, eax
jmp 0x14000e1bb
mov edi, dword [rsp + 0x40]
cmp dword [rbx + 0x28c], 0
jne 0x14000e1d0
cmp byte [rbx + 0x62], 0
je 0x14000e1d0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
mov edx, r9d
lea rcx, [0x14006aab0]
jmp 0x14000e140
Function at 0x140011f00
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov r8, qword [0x14006ad78]
xor ecx, ecx
test r8, r8
je 0x140011f59
lea rdx, str.instance_to_be_deleted:___p
mov qword [rsp + 0x20], rbx
call fcn.140003fe0
mov rbx, qword [0x14006ad78]
test rbx, rbx
je 0x140011f44
mov rcx, rbx
call fcn.140011ce0
mov edx, 0x78
mov rcx, rbx
call fcn.140013d34
mov qword [0x14006ad78], 0
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.instance_is_NULL
add rsp, 0x28
jmp fcn.140003fe0
Function at 0x140012920
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.14000e7f0
mov qword [rsi], rax
test rax, rax
jne 0x140012957
lea rdx, str.Create_Escape_Call_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012ac6
mov rcx, rsi
call fcn.140013300
mov ebx, eax
test eax, eax
jns 0x140012971
lea rdx, str.QueryForLSPCON_failed
jmp 0x140012a93
xor ecx, ecx
cmp dword [rsi + 0x18], ecx
jne 0x140012981
lea rdx, str.LSPCON_not_detected
jmp 0x14001298f
mov dword [rsi + 0x70], 1
lea rdx, str.LSPCON_detected
call fcn.140003fe0
xor edi, edi
lea rbx, [rsi + 0x28]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx], rax
test rax, rax
je 0x140012ab0
inc edi
add rbx, 8
cmp edi, 5
jl 0x1400129a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x1400129f8
lea rdx, str.m_hTaskDone_CreateEvent_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012ac6
mov rcx, rsi
call fcn.140012860
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x140012a21
mov r8d, eax
lea rdx, str.InitOPMPath_Failed_hr_:__d
call fcn.140003fe0
mov rcx, rsi
call fcn.140011e70
jmp 0x140012a9a
mov qword [rsp + 0x28], 0
lea r8, [0x1400131c0]
mov r9, rsi
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140012a62
lea rdx, str.Create_listening_thread_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012ac6
call fcn.140003880
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x140012a88
lea rdx, str.m_pEventHandler_is_NULL
xor ecx, ecx
call fcn.140003fe0
mov rcx, rsi
call fcn.140011e70
jmp 0x140012a9a
mov byte [rsi + 0x64], 1
lea rdx, str.Init_Successful_
xor ecx, ecx
call fcn.140003fe0
test ebx, ebx
jne 0x140012ac6
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, edi
lea rdx, str.m_hEvents_creation_failed___number_:_d
xor ecx, ecx
mov ebx, 0x80004005
call fcn.140003fe0
lea rdx, str.Init_Failed_
xor ecx, ecx
call fcn.140003fe0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140012ae1
call fcn.14000e8a0
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140012b00
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x270
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp byte [rcx + 0x64], 0
mov rdi, rcx
jne 0x140012d44
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
call fcn.14000e7f0
mov qword [rdi], rax
test rax, rax
jne 0x140012b57
lea rdx, str.Create_Escape_Call_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012d03
mov rcx, rdi
call fcn.140013300
mov ebx, eax
test eax, eax
jns 0x140012b71
lea rdx, str.QueryForLSPCON_failed
jmp 0x140012ce0
xor ecx, ecx
cmp dword [rdi + 0x18], ecx
jne 0x140012b81
lea rdx, str.LSPCON_not_detected
jmp 0x140012b8f
mov dword [rdi + 0x70], 1
lea rdx, str.LSPCON_detected
call fcn.140003fe0
xor esi, esi
lea rbx, [rdi + 0x28]
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx], rax
test rax, rax
je 0x140012ced
inc esi
add rbx, 8
cmp esi, 5
jl 0x140012ba0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x140012bf8
lea rdx, str.m_hTaskDone_CreateEvent_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012d03
mov rcx, rdi
call fcn.140012860
xor ecx, ecx
mov ebx, eax
test eax, eax
jns 0x140012c6e
mov r8d, eax
lea rdx, str.InitOPMPath_Failed_hr_:__d
call fcn.140003fe0
lea rdx, str.Calling_CloseOPMPath:
xor ecx, ecx
call fcn.140003fe0
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], 4
mov r8d, 0x22f
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x20], 0
call fcn.14000ef00
test eax, eax
jns 0x140012ce7
mov r8d, eax
lea rdx, str.Connect_to_escape_failed_hr:__d
xor ecx, ecx
call fcn.140003fe0
jmp 0x140012ce7
mov qword [rsp + 0x28], 0
lea r8, [0x1400131c0]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x58], rax
test rax, rax
jne 0x140012caf
lea rdx, str.Create_listening_thread_failed
xor ecx, ecx
call fcn.140003fe0
mov ebx, 0x80004005
jmp 0x140012d03
call fcn.140003880
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140012cd5
lea rdx, str.m_pEventHandler_is_NULL
xor ecx, ecx
call fcn.140003fe0
mov rcx, rdi
call fcn.140011e70
jmp 0x140012ce7
mov byte [rdi + 0x64], 1
lea rdx, str.Init_Successful_
xor ecx, ecx
call fcn.140003fe0
test ebx, ebx
je 0x140012d1e
jmp 0x140012d03
mov r8d, esi
lea rdx, str.m_hEvents_creation_failed___number_:_d
xor ecx, ecx
mov ebx, 0x80004005
call fcn.140003fe0
lea rdx, str.Init_Failed_
xor ecx, ecx
call fcn.140003fe0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140012d1e
call fcn.14000e8a0
mov rsi, qword [rsp + 0x290]
test ebx, ebx
mov rbx, qword [rsp + 0x288]
jns 0x140012d44
lea rdx, str.Initialize___failed_hr
xor ecx, ecx
call fcn.140003fe0
xor al, al
jmp 0x140012d48
movzx eax, byte [rdi + 0x6a]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140013c00
add rsp, 0x270
pop rdi
ret
Function at 0x140027e28
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test eax, eax
je 0x140027e3b
add rsp, 0x48
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400284a4
lea rdx, [0x140065240]
lea rcx, [rsp + 0x20]
call fcn.1400198d8
int3

Function at 0x14003443c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14006c318]
xor edx, edx
jmp fcn.140027e28

Function at 0x140034e6c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14006c318]
jmp fcn.140027e28
Function at 0x140b84058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b841df
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 0x140b84089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b8406f
add dl, dl
jne 0x140b84096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b840f6
xor eax, eax
add dl, dl
jne 0x140b840a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b841ad
add dl, dl
jne 0x140b840b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b840c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b840d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b840dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b840ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b8407e
mov eax, 1
add dl, dl
jne 0x140b84106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b84113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b840fb
sub eax, ebx
mov ebx, 1
jne 0x140b8414c
mov ecx, 1
add dl, dl
jne 0x140b8412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b8413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b84123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b8407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b84168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b84175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b8415d
cmp eax, 0x7d00
jae 0x140b8419b
cmp eax, 0x500
jb 0x140b84196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b8407e
cmp eax, 0x7f
ja 0x140b8419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b8407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b841d2
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 0x140b8407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20