joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001840
Capabilities:
Delete service
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f9b0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
test eax, eax
je 0x100018a2
mov ebx, dword [ebp + 8]
push 0x10000
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x100018b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
push esi
push str.Failed_to_call_OpenService__Error___d__lpszDeviceName___s.
call fcn.10019db0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
test edi, edi
jne 0x100019a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov ebx, eax
push ebx
push str.Failed_to_call_DeleteService__Error___d__lpszDeviceName___s.
call fcn.10019db0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x425
jne 0x10001907
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
jmp 0x100019a5
cmp ebx, 0x430
jne 0x100019a5
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.100019d0
mov byte [ebp - 4], 1
push dword [ebp + 8]
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.10001b40
add esp, 4
push 0x2001f
push dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10002390
test eax, eax
lea ecx, [ebp - 0x10]
sete bl
call fcn.10001a80
lea ecx, [ebp - 0x14]
call fcn.10001a80
test bl, bl
je 0x1000199d
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.DeleteFlag
push dword [ebp - 0x20]
mov dword [ebp + 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, 1
lea ecx, [ebp - 0x20]
call fcn.10002400
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10002259
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10002294
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10002290
lea ebx, [ebx]
cmp esi, edx
jae 0x10002294
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10002280
cmp esi, edx
jb 0x1000229b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100022d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x100022e5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x100022f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100022f0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10004320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020754
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [ebp - 0x40], edi
mov dword [edi + 8], 0xffffffff
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.1000a910
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
jne 0x100043f4
push str.boost::thread_resource_error
push 0xb
lea ecx, [ebp - 0x3c]
call fcn.10003900
mov dword [ebp - 0x3c], vtable.boost::thread_resource_error.0
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.1000b1f0
mov dword [edi + 0x34], eax
mov byte [edi + 0x38], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b732
mov esp, ebp
pop ebp
ret
Function at 0x10005e80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0
push 1
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [edi + 4]
mov dword [edi + 0x54], eax
call fcn.10008de0
push 0x18
mov dword [edi + 8], eax
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10005ed5
mov dword [eax], edi
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0
jmp 0x10005ed7
xor eax, eax
push eax
push 0
push 0x10005040
call dword [sym.imp.MSVCR110.dll__beginthread]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x10005efa
push 0x10032acc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test esi, esi
jne 0x10005f0d
mov ecx, edi
call fcn.100059d0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x10005f05
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005f05
pop edi
mov eax, 0x80004005
pop esi
pop ebp
ret 4

Function at 0x10006dd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020c08
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10030034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x10006eb5
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x42a]
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov eax, dword [edi]
add esp, 0xc
mov dword [ebp - 0x18], eax
push 0x208
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10006ea8
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x1c], vtable.CSafeImageVerifier.0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
push ebx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call dword [0x10029744]
mov esi, eax
push esi
push ebx
push edi
push str.CSafeKrnlCall::VerifySignatureImage_lpszImageFileName:__ws__bRestrictPath:__d__bOK:__d._n
call fcn.10019db0
xor ecx, ecx
add esp, 0x10
mov eax, 0x80004005
test esi, esi
cmovne eax, ecx
jmp 0x10006eba
push str.CSafeKrnlCall::Verify_Signature_Image_Query_Dos_Device_Name_False._n
call fcn.10019db0
add esp, 4
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b732
mov esp, ebp
pop ebp
ret 8
Function at 0x10007420
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020b78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push str.RegDeleteKeyEx._n
mov dword [ebp - 0x10], 0x80004001
call fcn.10019db0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add esp, 4
cmp dword [ebx + 0x44], 0
je 0x100074a6
lea esi, [ebx + 0xc8]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebx + 0xe0]
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push edi
call fcn.10014f20
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0xc]
mov ebx, 0x10022fd0
test esi, esi
cmovne ebx, esi
push ebx
push edi
push dword [ebp - 0x10]
push str.ControlRegDeleteKeyEx_hr:_0x_08x__hKey___x__lpSubKey___s._n
call fcn.10019db0
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
jns 0x1000753e
mov eax, dword [0x10032268]
test eax, eax
jne 0x10007513
push str.RegDeleteKeyEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10032268], eax
test eax, eax
jne 0x10007513
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x10007509
movzx esi, si
or esi, 0x80070000
push ebx
push edi
push esi
push str.RegDeleteKey_hr:_0x_08x__hKey___x__lpSubKey___s._n
jmp 0x10007534
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
call eax
mov esi, eax
test esi, esi
jle 0x1000752c
movzx esi, si
or esi, 0x80070000
push ebx
push edi
push esi
push str.RegDeleteKeyEx_hr:_0x_08x__hKey___x__lpSubKey___s._n
call fcn.10019db0
mov eax, esi
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10007560
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.RegDeleteValue._n
mov ebx, ecx
mov edi, 0x80004001
call fcn.10019db0
mov esi, dword [ebp + 0xc]
add esp, 4
cmp dword [ebx + 0x44], 0
je 0x100075ad
lea esi, [ebx + 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0xc]
lea ecx, [ebx + 0xe0]
push dword [ebp + 8]
call fcn.10014fa0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0xc]
mov ebx, str.Default
test esi, esi
cmovne ebx, esi
push ebx
push dword [ebp + 8]
push edi
push str.ControlRegDeleteValue_hr:_0x_08x__hKey___x__lpSubKey___s._n
call fcn.10019db0
add esp, 0x10
test edi, edi
jns 0x10007600
mov edi, dword [ebp + 8]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jle 0x100075e7
movzx esi, si
or esi, 0x80070000
push ebx
push edi
push esi
push str.RegDeleteValue_hr:_0x_08x__hKey___x__lpSubKey___s._n
call fcn.10019db0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10007610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push str.RegSetValueEx._n
mov dword [ebp - 4], esi
mov ebx, 0x80004001
call fcn.10019db0
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp dword [esi + 0x44], 0
je 0x10007676
add esi, 0xc8
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
add ecx, 0xe0
cmp dword [ecx + 4], 0xffffffff
je 0x1000766c
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.10015020
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
test ecx, ecx
push esi
mov eax, str.Default
cmovne eax, ecx
push eax
push dword [ebp + 8]
mov dword [ebp + 0x18], eax
push ebx
push str.ControlRegSetValueEx_hr:_0x_08x__hKey___x__lpValueName___s__dwType___d._n
call fcn.10019db0
mov eax, esi
add esp, 0x14
dec eax
je 0x100076e4
sub eax, 3
je 0x100076b4
sub eax, 3
je 0x100076e4
test edi, edi
je 0x100076f6
push edi
push str.ControlRegSetValueEx_lpData__0x_x._n
jmp 0x100076ee
test edi, edi
je 0x100076f6
cmp dword [ebp + 0x1c], 4
jne 0x100076d0
push dword [edi]
push edi
push str.ControlRegSetValueEx_lpData__0x_x__lpData___d._n
call fcn.10019db0
add esp, 0xc
jmp 0x100076f6
movzx eax, byte [edi]
push eax
push edi
push str.ControlRegSetValueEx_lpData__0x_x__lpData___c._n
call fcn.10019db0
add esp, 0xc
jmp 0x100076f6
test edi, edi
je 0x100076f6
push edi
push str.ControlRegSetValueEx_lpData___s._n
call fcn.10019db0
add esp, 8
test ebx, ebx
jns 0x10007740
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push edi
push esi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1000771f
movzx esi, si
or esi, 0x80070000
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x18]
push ebx
push esi
push str.RegSetValueExW_hr:_0x_08x__hKey___x__lpValueName___s__dwType___d._n
call fcn.10019db0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10007750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push str.RegQueryValueEx._n
mov ebx, ecx
mov edi, 0x80004001
call fcn.10019db0
mov eax, dword [ebp + 0xc]
add esp, 4
cmp dword [ebx + 0x44], 0
je 0x100077a8
lea esi, [ebx + 0xc8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0xe0]
call fcn.100150a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
mov ebx, str.Default
cmovne ebx, eax
push ebx
push esi
push edi
push str.ControlRegQueryValueEx_hr:_0x_08x__hKey___x__lpValueName___s._n
call fcn.10019db0
add esp, 0x10
test edi, edi
jns 0x10007812
cmp edi, 0x800700ea
je 0x10007812
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x100077f7
movzx esi, si
or esi, 0x80070000
push ebx
push dword [ebp + 8]
push esi
push str.RegQueryValueEx_hr:_0x_08x__hKey___x__lpValueName___s._n
call fcn.10019db0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x10007820
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020ba8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push str.RegEnumKeyEx._n
mov edi, 0x80004001
call fcn.10019db0
mov esi, dword [ebp + 8]
add esp, 4
cmp dword [ebx + 0x44], 0
mov ebx, dword [ebp + 0xc]
je 0x100078b1
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0xc8]
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x24]
mov eax, dword [ebp + 8]
push dword [ebp + 0x20]
lea ecx, [edi + 0xe0]
push dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
call fcn.10015130
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
push ebx
push esi
push edi
push str.ControlRegEnumKeyEx_hr:_0x_08x__hKey___x__dwIndex___d._n
call fcn.10019db0
add esp, 0x10
test edi, edi
jns 0x1000791f
cmp edi, 0x800700ea
je 0x1000791f
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jle 0x100078f6
movzx esi, si
or esi, 0x80070000
mov eax, dword [ebp + 8]
push ebx
push eax
push esi
push str.RegEnumKeyEx_hr:_0x_08x__hKey___x__dwIndex___d._n
call fcn.10019db0
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10007940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020ba8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10030034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push str.RegEnumValue._n
mov edi, 0x80004001
call fcn.10019db0
mov esi, dword [ebp + 8]
add esp, 4
cmp dword [ebx + 0x44], 0
mov ebx, dword [ebp + 0xc]
je 0x100079d1
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0xc8]
push esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x24]
mov eax, dword [ebp + 8]
push dword [ebp + 0x20]
lea ecx, [edi + 0xe0]
push dword [ebp + 0x1c]
mov dword [ebp - 4], 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push eax
call fcn.100153a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
push ebx
push esi
push edi
push str.ControlRegEnumValue_hr:_0x_08x__hKey___x__dwIndex___d._n
call fcn.10019db0
add esp, 0x10
test edi, edi
jns 0x10007a3f
cmp edi, 0x800700ea
je 0x10007a3f
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jle 0x10007a16
movzx esi, si
or esi, 0x80070000
mov eax, dword [ebp + 8]
push ebx
push eax
push esi
push str.RegEnumValue_hr:_0x_08x__hKey___x__dwIndex___d._n
call fcn.10019db0
add esp, 0x10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x10008de0
Capabilities:
Create thread

Disassembly:
push esi
push 0x18
mov esi, ecx
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x10008e19
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], 0
jmp 0x10008e1b
xor eax, eax
push eax
push 0
push 0x10009850
call dword [sym.imp.MSVCR110.dll__beginthread]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x10008e3e
push 0x10032acc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
pop esi
ret
Function at 0x1000a210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10020dee
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x10030034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
push 0x50
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x38], 0
test esi, esi
je 0x1000a2a1
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
test eax, eax
je 0x1000a282
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push 2
lea ecx, [esi + 0x18]
mov byte [esp + 0x3c], 3
call fcn.10004ca0
jmp 0x1000a2a3
xor esi, esi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.1000bc10
mov dword [esp + 0x38], 4
or edi, 0xffffffff
cmp dword [esp + 0x14], 0
je 0x1000a36c
push 4
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
mov byte [esp + 0x38], 5
test ecx, ecx
je 0x1000a309
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x1000a6b0
mov dword [esp + 0x24], 0
call fcn.1000bcc0
jmp 0x1000a30b
xor eax, eax
mov byte [esp + 0x38], 4
mov esi, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
call fcn.1000fae0
mov ecx, dword [esi + 0x10]
mov edx, dword [eax]
mov dword [eax], ecx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 0x14]
mov ecx, dword [eax + 4]
mov dword [esi + 0x14], ecx
mov dword [eax + 4], edx
mov esi, dword [esp + 0x10]
test esi, esi
je 0x1000a360
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x1000a360
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, edi
lock xadd dword [eax], edx
jne 0x1000a360
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + 0x18]
call fcn.10004d90
mov dword [esp + 0x38], 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1000a39f
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x1000a39f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x1000a39f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret