joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013e50
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14002f5a0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140013e73
lea rax, [0x14002f5a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140013ebb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140013eb8
lea rax, [0x14002f5e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140013eeb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140013ee8
xor ecx, ecx
mov byte [0x14002f5f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14002f602], rdx
lea r8, [0x14002f5a0]
lea rbx, [0x14002f5fa]
mov qword [0x14002f612], rdx
mov qword [0x14002f622], rdx
mov qword [0x14002f632], rdx
xor edx, edx
mov qword [0x14002f5fa], rax
mov qword [0x14002f60a], rax
mov qword [0x14002f61a], rax
mov qword [0x14002f62a], rax
mov byte [0x14002f63a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400140c6
lea rcx, [0x14002f5e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140014011
lea rsi, [0x14002f4e0]
lea r8, [0x14002f63a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140013fbd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140013fb0
lea rcx, [0x14002f5e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400140b3
lea rcx, [0x140013d60]
mov qword [0x14002f4e0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14002f4e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14002f5e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14002f63a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400140e6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140014063
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140014050
mov rax, rdx
mov qword [0x14002f4e0], rax
lea rsi, [0x14002f4e0]
jmp 0x140014089
cmp rdx, rsi
je 0x140013fef
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140014080
cmp rdx, rsi
je 0x140013fef
mov qword [rdx + 8], rsi
lea rcx, [0x140013d60]
call sub.msvcrt.dll__onexit
jmp 0x140013fef
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140013cd0
xor eax, eax
jmp 0x140014008
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140013cd0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140013cd0
xor eax, eax
jmp 0x14001406f
Function at 0x1400023c0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi + 0x288]
movabs rax, 0x20c49ba5e353f7cf
imul rcx, rbx
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x30]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
cmp qword [rsp + 0x40], rbx
jle 0x140002410
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140005f40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov edi, 0x80004005
lea rcx, [rsp + 0x30]
call fcn.140002be0
nop
xor esi, esi
mov ebx, esi
cmp qword [rsp + 0x30], rbx
je 0x140005fce
mov ecx, 0xd0
call fcn.14001a140
mov qword [rsp + 0x290], rax
test rax, rax
je 0x140005f91
mov rcx, rax
call fcn.140005460
mov rbx, rax
jmp 0x140005f94
mov rbx, rsi
test rbx, rbx
je 0x140005fce
mov rcx, rbx
call fcn.140005aa0
mov edi, eax
test eax, eax
js 0x140005fce
lfence
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140006150]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [rbx + 0xb8], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140005fe5
lock inc dword [rax + 8]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140002d20
test edi, edi
jns 0x1400060ed
test rbx, rbx
je 0x1400060ed
mov dword [rbx], 1
cmp qword [rbx + 8], 0
je 0x140006025
lfence
mov rcx, qword [rbx + 8]
call qword [sym.imp.kernel32.dll_SetEvent]
cmp qword [rbx + 0x28], 0
je 0x1400060cf
lfence
xor eax, eax
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x6c], eax
xor edx, edx
mov r8d, 0x1fb
lea rcx, [rsp + 0x84]
call fcn.140039360
mov dword [rsp + 0x50], 7
mov dword [rsp + 0x5c], esi
mov rax, qword [rbx + 8]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x3000
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0x1000
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8d, 0x22f
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 0x28]
call fcn.140003010
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x40], rsi
cmp qword [rbx + 0x20], 0
je 0x1400060cf
lfence
mov rcx, qword [rbx + 0x20]
call fcn.14003e27c
mov qword [rbx + 0x20], rsi
lfence
mov rcx, rbx
call fcn.140005660
lfence
mov edx, 0xd0
mov rcx, rbx
call fcn.14001a17c
mov rbx, rsi
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140006131
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140006131
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x14002363a.0]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x140006131
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x14002363a.0]
mov rax, rbx
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400063c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14006f0d8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140039360
lea rsi, [rsp + 0x180]
call fcn.140006620
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
xor esi, esi
mov r9, rbx
mov r8d, 0x104
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
call fcn.14003f8b4
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_OutputDebugStringA]
test dword [0x140071d04], 0x20000
je 0x140006470
mov rcx, qword [0x140071d10]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], esi
lea r9d, [rsi + 1]
mov r8d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x14004ffe0]
call fcn.1400027d0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001a210
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000b4c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov edi, 0x80008003
cmp dword [rcx + 0x30], eax
jbe 0x14000b4f5
lea rdx, str.Length_of_Message_write_to_MEI_should_be_shorter_than_m_MTU
xor ecx, ecx
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp qword [rcx + 0x40], 0xffffffffffffffff
jne 0x14000b517
lea rdx, str.Invalid_Device_Handle
xor ecx, ecx
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x38]
mov edx, 0x4e20
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000b548
lea rdx, str.HECI_lock_timeout
xor ecx, ecx
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test eax, eax
je 0x14000b570
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Failed_to_attain_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rbx + 0x30]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x14000b5ee
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000b5ee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Write_file_error__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400063c0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
jns 0x14000b6b8
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Failed_to_release_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rsp + 0x40]
lea rdx, str.message_size_write_to_MEI_is__d
xor ecx, ecx
call fcn.1400063c0
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x14000b66e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Read_file_error__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400063c0
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
jns 0x14000b6b8
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Failed_to_release_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
js 0x14000b5ca
mov r8d, dword [rsp + 0x40]
xor ecx, ecx
mov dword [rbx + 0x30], r8d
cmp r8d, dword [rbx + 0x10]
jbe 0x14000b6aa
lea rdx, str.Length_of_Message_read_from_MEI_should_be_shorter_than_m_MTU
call fcn.1400063c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.message_size_read_from_MEI_is__d
call fcn.1400063c0
xor edi, edi
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14000bdb0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x50564150
mov rdi, rdx
mov rbx, rcx
je 0x14000bdd6
lea rdx, str.Unexpected_packet_Sig
xor ecx, ecx
call fcn.1400063c0
mov eax, pe_nt_image_headers64
cmp word [rbx + 4], ax
je 0x14000bdef
lea rdx, str.Unexpected_packet_Ver
xor ecx, ecx
call fcn.1400063c0
mov ecx, dword [rbx + 0x10]
lea rax, [rdi - 0x14]
cmp rcx, rax
je 0x14000be09
lea rdx, str.Unexpected_packet_DataLen
xor ecx, ecx
call fcn.1400063c0
mov r8d, dword [rbx + 0xc]
cmp r8d, 6
ja case.default.0x14000be29
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0xbed4]
add rcx, rdx
jmp rcx
lea rdx, str.Invalid_packet_status:_CHS_STATUS_MAX_MESSAGE_LENGTH_EXCEEDED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400063c0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_UNSPEC_ERROR
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400063c0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_CONN_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400063c0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_COMM_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400063c0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_NOT_CONNECTED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400063c0
lea rdx, str.Invalid_packet_status:_CHS_STATUS_HECI_NOT_READY
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400063c0
lea rdx, str.Unsupported_packet_status___d
xor ecx, ecx
call fcn.1400063c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000bff0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
cmp byte [0x140071d28], 0
je 0x14000c007
mov eax, 0xffffffff
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140071da0]
call fcn.14000c230
cmp al, 1
jne 0x14000c089
lea rdx, str.Start__
xor ecx, ecx
call fcn.1400063c0
lea rax, [0x140071e08]
mov dword [0x14007202c], 1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
lea rax, [0x14000e360]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rbx
call qword [sym.imp.advapi32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000c08d
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x14007201c], eax
mov ebx, eax
jmp 0x14000c08d
mov ebx, dword [rsp + 0x20]
cmp dword [0x14007202c], 0
jne 0x14000c0a5
cmp byte [0x140071e02], 0
je 0x14000c0a5
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x14000d870
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14006f0d8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.14000daf0
test eax, eax
je 0x14000d8a1
mov eax, 1
jmp 0x14000d9a8
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000da9e
cmp eax, 0x104
je 0x14000da9e
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 0x14000dae7
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.advapi32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000d9c1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14000d750
test eax, eax
jne 0x14000d97f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003f918
test eax, eax
je 0x14000d97f
cmp eax, 0xc
je 0x14000dabb
cmp eax, 0x16
je 0x14000dab0
cmp eax, 0x22
je 0x14000dab0
cmp eax, 0x50
jne 0x14000daa5
lea r8, [rdi + 0x68]
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.14001a210
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
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], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.advapi32.dll_CreateServiceW]
test rax, rax
jne 0x14000da82
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14000d750
test eax, eax
jne 0x14000da77
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003f918
test eax, eax
je 0x14000da77
cmp eax, 0xc
je 0x14000dadc
cmp eax, 0x16
je 0x14000dad1
cmp eax, 0x22
je 0x14000dad1
cmp eax, 0x50
jne 0x14000dac6
xor r9d, r9d
mov r8, rdi
jmp 0x14000d986
mov rcx, rax
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14000d998
xor eax, eax
jmp 0x14000d9a8
mov ecx, 0x80004005
call fcn.14000ab40
int3
mov ecx, 0x80070057
call fcn.14000ab40
int3
mov ecx, 0x8007000e
call fcn.14000ab40
int3
mov ecx, 0x80004005
call fcn.14000ab40
int3
mov ecx, 0x80070057
call fcn.14000ab40
int3
mov ecx, 0x8007000e
call fcn.14000ab40
int3
call fcn.14001a854
int3
Function at 0x140012880
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140012939
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140012905
lea rcx, str.Advapi32.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001291d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001291d
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 qword [case.0x14002363a.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001291d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x140072080], 0
jne 0x140012984
lea rcx, str.Advapi32.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140012974
lea rdx, [0x140053808]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x140072078], rax
mov byte [0x140072080], 1
jmp 0x14001298b
mov rax, qword [0x140072078]
mov byte [0x140072080], 1
jmp 0x14001298b
mov rax, qword [0x140072078]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14001290e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x14002363a.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
push 7
int1
sub byte [rbx + 0x30d46a0a], bl
call 0x1ab9b1df3
sub dword [rcx - 0x5b], esi
invalid
Function at 0x140013990
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14006f0d8]
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.140013420
mov ebx, eax
test eax, eax
jne 0x140013aa7
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], pe_nt_image_headers64
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140013a81
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140013990
mov ebx, eax
test eax, eax
jne 0x140013aa7
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], pe_nt_image_headers64
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x140013a30
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013a96
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.140012880
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013ab7
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001a210
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14006f0d8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140014055
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140014055
call fcn.1400122e0
mov ebx, eax
jmp 0x140014180
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.kernel32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140014076
call fcn.1400122e0
jmp 0x14001416f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140014099
call fcn.1400122e0
jmp 0x14001416f
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400140bb
mov ebx, 0x8007000e
jmp 0x140014171
mov ecx, eax
test eax, eax
je 0x1400140f3
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400141b8
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400140f3
lfence
lea rcx, [rsp + 0x60]
call fcn.1400121c0
jmp 0x1400140fd
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140014110
cmp qword [rsp + 0x60], 0
jne 0x14001411f
mov ebx, 0x8007000e
jmp 0x140014171
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001414c
call fcn.1400122e0
jmp 0x14001416f
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140013ae0
mov ebx, eax
test rdi, rdi
je 0x140014180
mov rcx, rdi
call qword [sym.imp.kernel32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140014197
lea rcx, [rsp + 0x60]
call fcn.1400129c0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001a210
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.14000ab40
int3
Function at 0x140016770
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov r8, qword [0x140072088]
xor ecx, ecx
test r8, r8
je 0x1400167c9
lea rdx, str.instance_to_be_deleted:___p
mov qword [rsp + 0x20], rbx
call fcn.1400063c0
mov rbx, qword [0x140072088]
test rbx, rbx
je 0x1400167b4
mov rcx, rbx
call fcn.1400154c0
mov edx, 0x88
mov rcx, rbx
call fcn.14001a17c
mov rbx, qword [rsp + 0x20]
mov qword [0x140072088], 0
add rsp, 0x28
ret
lea rdx, str.instance_is_NULL
add rsp, 0x28
jmp fcn.1400063c0

Function at 0x14001c7cc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x14001c7df
add rsp, 0x48
ret
call qword [sym.imp.kernel32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14001cdf8
lea rdx, [0x14006c7e0]
lea rcx, [rsp + 0x20]
call fcn.140039be0
int3

Function at 0x14002882c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140072930]
xor edx, edx
jmp fcn.14001c7cc

Function at 0x140029214
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140072930]
jmp fcn.14001c7cc
Function at 0x14003514c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140035210]
mov r9, qword [r9 + 8]
jmp fcn.140024c14

Function at 0x1400351e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140035220]
mov r9, qword [r9 + 8]
jmp fcn.140024c14