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

Disassembly:
jmp 0x14000e740
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
call sub.oal.dll_Ordinal_27
xor edi, edi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, str.InitHelper
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rax
lea rdx, str.SYSTEMCurrentControlSetServicesAESMService
mov esi, 4
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
mov dword [rsp + 0x44], esi
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp dword [rsp + 0x40], 1
mov rcx, rbx
jne 0x14000e7d3
mov dl, 1
call fcn.140001f96
call fcn.1400042d7
mov eax, 0x80004005
jmp 0x14000e948
xor edx, edx
call fcn.140001f96
mov edx, 0x100
mov word [rsp + 0x50], di
lea rcx, [rsp + 0x50]
call fcn.140003b57
test al, al
jne 0x14000e7f7
mov word [rsp + 0x50], di
mov edx, 3
lea r9, [rsp + 0x50]
lea r8, str.The_AESM_service_is_starting._PSW_Version:__s
lea ecx, [rdx - 2]
call sub.oal.dll_Ordinal_30
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [0x14009da70], rax
test rax, rax
jne 0x14000e84c
mov edx, 1
lea r8, str.Failed_to_create_AESM_service_event
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x14000e948
mov rax, qword [0x14009d8a8]
test rax, rax
jne 0x14000e883
lea ecx, [rax + 0x10]
call fcn.140002275
test rax, rax
je 0x14000e870
mov rcx, rax
call fcn.140002d24
mov rdi, rax
lea rcx, [0x14000242d]
mov qword [0x14009d8a8], rdi
call fcn.140002658
mov rcx, qword [0x14009d8a8]
call fcn.14000115e
test eax, eax
je 0x14000e8b0
mov edx, 1
lea r8, str.Failed_to_start_AESM_service
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x14000e948
call fcn.140003602
test eax, eax
je 0x14000e8dc
mov edx, 2
lea r8, str.AESMRpcServerStart_failed_with_error0x_x
mov r9d, eax
lea ecx, [rdx - 1]
call sub.oal.dll_Ordinal_30
call fcn.140004345
mov eax, 0x80004005
jmp 0x14000e948
cmp dword [rbx + 0x26c], 0
je 0x14000e917
mov eax, 2
lock cmpxchg dword [rbx + 0x254], esi
jne 0x14000e917
lea rdx, str.Service_started_resumed
mov rcx, rbx
call fcn.140001708
mov rcx, qword [rbx + 0x248]
lea rdx, [rbx + 0x250]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_SetServiceStatus]
cmp dword [rbx + 0x254], esi
jne 0x14000e946
xor ecx, ecx
call sub.oal.dll_Ordinal_26
mov r9, rax
lea r8, str._s._PSW_Version:__s
lea rax, [rsp + 0x50]
mov edx, 3
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.oal.dll_Ordinal_30
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001d61
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003b57
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400120d0
push rbx
push rsi
push rdi
sub rsp, 0x30
mov ebx, edx
xor sil, sil
mov rdi, rcx
lea eax, [rbx + rbx]
mov dword [rsp + 0x58], eax
test rcx, rcx
je 0x14001219d
test edx, edx
je 0x14001219d
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREIntelSGX_PSW
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001219d
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.140002c02
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Version
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140012186
cmp dword [rsp + 0x50], 1
jne 0x140012186
mov edx, dword [rsp + 0x58]
shr rdx, 1
lea rcx, [rdx + 1]
cmp rbx, rcx
jb 0x14001217c
mov word [rdi + rdx*2], ax
jmp 0x140012183
lea ecx, [rbx - 1]
mov word [rdi + rcx*2], ax
mov sil, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, sil
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003bed
Capabilities:
Terminate process

Disassembly:
jmp 0x14002e224
sub rsp, 0x28
mov ecx, Ordinal_27
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14002e23e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003d32
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x140004179
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005f7ec
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x14005f873
mov rbp, rax
cmp word [rax], si
je 0x14005f835
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005f81c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005f818
sub rbp, rbx
add rbp, 2
sar rbp, 1
add rbp, rbp
mov rcx, rbp
call fcn.140002d47
mov rdi, rax
test rax, rax
je 0x14005f863
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140003909
mov rsi, rdi
xor ecx, ecx
call fcn.140002a04
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d410
Capabilities:
Delete registry key

Disassembly:
jmp 0x14000d410
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000d4c5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000d491
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000d4b0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x14000d4b0
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x14000d4b0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x14009dd99], 0
jne 0x14000d510
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14000d500
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x14009dd90], rax
mov byte [0x14009dd99], 1
jmp 0x14000d517
mov rax, qword [0x14009dd90]
mov byte [0x14009dd99], 1
jmp 0x14000d517
mov rax, qword [0x14009dd90]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14000d49a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x14000d700
Capabilities:
Create service

Disassembly:
jmp 0x14000d700
push rdi
sub rsp, 0xa90
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140003576
test eax, eax
je 0x14000d731
mov eax, 1
jmp 0x14000d838
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x14000d92e
cmp eax, 0x104
je 0x14000d92e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14000d977
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000d851
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140003936
test eax, eax
jne 0x14000d80f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140001e7e
test eax, eax
je 0x14000d80f
cmp eax, 0xc
je 0x14000d94b
cmp eax, 0x16
je 0x14000d940
cmp eax, 0x22
je 0x14000d940
cmp eax, 0x50
jne 0x14000d935
lea r8, [rdi + 0x48]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140001d61
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x48
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
jne 0x14000d912
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140003936
test eax, eax
jne 0x14000d907
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140001e7e
test eax, eax
je 0x14000d907
cmp eax, 0xc
je 0x14000d96c
cmp eax, 0x16
je 0x14000d961
cmp eax, 0x22
je 0x14000d961
cmp eax, 0x50
jne 0x14000d956
xor r9d, r9d
mov r8, rdi
jmp 0x14000d816
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14000d828
xor eax, eax
jmp 0x14000d838
mov ecx, 0x80004005
call fcn.140003661
int3
mov ecx, 0x80070057
call fcn.140003661
int3
mov ecx, 0x8007000e
call fcn.140003661
int3
mov ecx, 0x80004005
call fcn.140003661
int3
mov ecx, 0x80070057
call fcn.140003661
int3
mov ecx, 0x8007000e
call fcn.140003661
int3
call fcn.1400029eb
int3
Function at 0x14000dab0
Capabilities:
Access the windows event log

Disassembly:
jmp 0x14000dab0
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.140003c8d
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.140001294
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x26c], esi
jne 0x14000db36
lea rcx, [rsp + 0x60]
call fcn.140002d38
lea rdx, [rdi + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000db87
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001d61
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000e740
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000e740
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
call sub.oal.dll_Ordinal_27
xor edi, edi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, str.InitHelper
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rax
lea rdx, str.SYSTEMCurrentControlSetServicesAESMService
mov esi, 4
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
mov dword [rsp + 0x44], esi
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
cmp dword [rsp + 0x40], 1
mov rcx, rbx
jne 0x14000e7d3
mov dl, 1
call fcn.140001f96
call fcn.1400042d7
mov eax, 0x80004005
jmp 0x14000e948
xor edx, edx
call fcn.140001f96
mov edx, 0x100
mov word [rsp + 0x50], di
lea rcx, [rsp + 0x50]
call fcn.140003b57
test al, al
jne 0x14000e7f7
mov word [rsp + 0x50], di
mov edx, 3
lea r9, [rsp + 0x50]
lea r8, str.The_AESM_service_is_starting._PSW_Version:__s
lea ecx, [rdx - 2]
call sub.oal.dll_Ordinal_30
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [0x14009da70], rax
test rax, rax
jne 0x14000e84c
mov edx, 1
lea r8, str.Failed_to_create_AESM_service_event
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x14000e948
mov rax, qword [0x14009d8a8]
test rax, rax
jne 0x14000e883
lea ecx, [rax + 0x10]
call fcn.140002275
test rax, rax
je 0x14000e870
mov rcx, rax
call fcn.140002d24
mov rdi, rax
lea rcx, [0x14000242d]
mov qword [0x14009d8a8], rdi
call fcn.140002658
mov rcx, qword [0x14009d8a8]
call fcn.14000115e
test eax, eax
je 0x14000e8b0
mov edx, 1
lea r8, str.Failed_to_start_AESM_service
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x14000e948
call fcn.140003602
test eax, eax
je 0x14000e8dc
mov edx, 2
lea r8, str.AESMRpcServerStart_failed_with_error0x_x
mov r9d, eax
lea ecx, [rdx - 1]
call sub.oal.dll_Ordinal_30
call fcn.140004345
mov eax, 0x80004005
jmp 0x14000e948
cmp dword [rbx + 0x26c], 0
je 0x14000e917
mov eax, 2
lock cmpxchg dword [rbx + 0x254], esi
jne 0x14000e917
lea rdx, str.Service_started_resumed
mov rcx, rbx
call fcn.140001708
mov rcx, qword [rbx + 0x248]
lea rdx, [rbx + 0x250]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_SetServiceStatus]
cmp dword [rbx + 0x254], esi
jne 0x14000e946
xor ecx, ecx
call sub.oal.dll_Ordinal_26
mov r9, rax
lea r8, str._s._PSW_Version:__s
lea rax, [rsp + 0x50]
mov edx, 3
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.oal.dll_Ordinal_30
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001d61
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000ef80
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x14000ef80
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.140002545
mov ebx, eax
test eax, eax
jne 0x14000f097
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000f071
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400028ab
mov ebx, eax
test eax, eax
jne 0x14000f097
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f020
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000f086
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.1400017f8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000f0a7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140001d61
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fa30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x14000fa30
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14009c028]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
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 0x14000fabe
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 0x14000fabe
call fcn.14000363e
mov ebx, eax
jmp 0x14000fbe3
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 0x14000fadf
call fcn.14000363e
jmp 0x14000fbd2
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 0x14000fb02
call fcn.14000363e
jmp 0x14000fbd2
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 0x14000fb24
mov ebx, 0x8007000e
jmp 0x14000fbd4
mov ecx, eax
test eax, eax
je 0x14000fb59
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000fc1b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000fb59
lea rcx, [rsp + 0x70]
call fcn.140001f7d
jmp 0x14000fb63
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000fb76
cmp qword [rsp + 0x70], 0
jne 0x14000fb85
mov ebx, 0x8007000e
jmp 0x14000fbd4
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 0x14000fbaf
call fcn.14000363e
jmp 0x14000fbd2
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 + 0x48]
call fcn.140003463
mov ebx, eax
test rdi, rdi
je 0x14000fbe3
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 0x14000fbfa
lea rcx, [rsp + 0x70]
call fcn.1400035a3
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001d61
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140003661
int3
Function at 0x1400114e0
Capabilities:
Delete registry value

Disassembly:
jmp 0x1400114e0
sub rsp, 0x58
call fcn.140002d01
test eax, eax
jne 0x1400114f7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x38], rbx
mov rdx, 0xffffffff80000000
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
call fcn.140002545
test eax, eax
je 0x140011539
mov ecx, eax
call fcn.140002f4a
mov ebx, eax
jmp 0x14001159e
mov rdx, qword [rsp + 0x38]
lea r8, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
mov r9d, 0x20006
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], rbx
call fcn.140002545
test eax, eax
je 0x140011570
mov ecx, eax
call fcn.140002f4a
jmp 0x140011589
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
xor ecx, ecx
call fcn.140001825
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x14001159e
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x1400115b1
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]
add rsp, 0x58
ret
Function at 0x1400120d0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400120d0
push rbx
push rsi
push rdi
sub rsp, 0x30
mov ebx, edx
xor sil, sil
mov rdi, rcx
lea eax, [rbx + rbx]
mov dword [rsp + 0x58], eax
test rcx, rcx
je 0x14001219d
test edx, edx
je 0x14001219d
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREIntelSGX_PSW
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001219d
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.140002c02
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.Version
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140012186
cmp dword [rsp + 0x50], 1
jne 0x140012186
mov edx, dword [rsp + 0x58]
shr rdx, 1
lea rcx, [rdx + 1]
cmp rbx, rcx
jb 0x14001217c
mov word [rdi + rdx*2], ax
jmp 0x140012183
lea ecx, [rbx - 1]
mov word [rdi + rcx*2], ax
mov sil, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, sil
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x408410
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r14d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.004089f0
mov esi, eax
test sil, sil
jne 0x4085e2
test ebx, ebx
je 0x4085e2
xor rdi, rdi
test r14d, r14d
jle 0x4084f1
call sub.kernel32.dll_GetTickCount
mov r13d, eax
test r14d, r14d
jle 0x4084d0
cmp ebx, 0xffffffff
je 0x40847b
call sub.kernel32.dll_GetTickCount
sub eax, r13d
cmp eax, ebx
jb 0x40847b
xor rsi, rsi
jmp 0x4085e2
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x4084d0
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x4084c2
mov rcx, qword [rsp + 0x28]
mov edx, 1
xor r8, r8
call fcn.004031d0
test eax, eax
jne 0x4084c2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4085e2
call fcn.00408b90
sub r14d, 1
test r14d, r14d
jg 0x408462
nop
cmp ebx, 0xffffffff
je 0x4084f1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jb 0x4084ec
xor rsi, rsi
jmp 0x4085e2
sub eax, r13d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
test r13d, r13d
je 0x40842b
mov rcx, qword [rsp + 0x28]
mov edx, r13d
add edx, 2
mov r8d, r13d
call fcn.004031d0
cmp eax, r13d
jne 0x4084f1
nop
call sub.kernel32.dll_GetTickCount
mov r13d, eax
mov rcx, qword [rsp + 0x28]
call fcn.004086a0
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x006119a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408563
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jae 0x408560
sub eax, r13d
sub ebx, eax
jmp 0x408563
xor rbx, rbx
test sil, sil
je 0x40859c
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov eax, r13d
test eax, 1
jne 0x408599
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
or edx, 1
mov r8d, r13d
call fcn.004031d0
cmp eax, r13d
jne 0x408568
mov dil, 1
nop
jmp 0x4085bf
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
mov r8d, r13d
call fcn.004031d0
cmp eax, r13d
jne 0x40859c
mov dil, 1
test dil, dil
je 0x40851b
nop
test sil, sil
je 0x4085e2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret