joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401350
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ecx, 8
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], edx
mov edx, 0x6c
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x4013e8
mov ebx, eax
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
lea edi, [ebx + 0xc]
mov dword [ebx + 0x14], eax
lea eax, [ebx + 0x38]
call section..text
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x68], 0
mov dword [ebx], 1
mov dword [ebx + 4], 2
lea ecx, [eax - 1]
mov eax, 1
mov dword [ebx + 8], edi
shl eax, cl
mov dword [ebx + 0x64], eax
xchg dword [esi + 0x14], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4016b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
lock dec dword [eax + 0x10]
je 0x4016d8
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
mov edi, dword fs:[0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
xor edx, edx
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4017d0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x24
mov eax, dword [eax]
cmp eax, 1
je 0x401832
cmp eax, 2
jne 0x401859
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00407a40
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [edx + 4], eax
mov edx, dword [ebx + 8]
mov dword [eax], edx
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40181c
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov eax, dword [ebx + 0x18]
sub esp, 4
call fcn.004016b0
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00407a60
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00406e20
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
test byte [0x41901c], 2
jne 0x40186e
mov dword [esp], 6
call sub.rpcrt4.dll_RpcRaiseException
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.invalid_handle_type__d_n
mov dword [esp + 8], str.SC_RPC_HANDLE_destroy
mov dword [esp + 4], 0x41901c
mov dword [esp], 1
call fcn.00401740
jmp 0x401862
Function at 0x401ffa
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
test byte [0x41901c], 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
jne 0x4020c0
test ebx, ebx
je 0x402032
cmp word [ebx], 0
jne 0x402118
xor edx, edx
mov ebx, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x402170
mov dword [eax], 1
test esi, 0x2000000
jne 0x4020b0
mov dword [ebx + 4], esi
mov eax, 0x41abd8
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlMapGenericMask]
mov eax, dword [0x420164]
mov dword [ebx + 8], eax
xor eax, eax
mov dword [edi], ebx
sub esp, 8
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
or esi, 0xf003f
jmp 0x402071
mov dword [ebp - 0x20], edx
mov eax, ebx
call fcn.00401a30
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, edx
call fcn.00401a30
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp], 3
mov dword [esp + 0x14], ecx
mov ecx, str.__s___s___x__n
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov eax, 0x41abb0
mov dword [esp + 8], eax
mov eax, 0x41901c
mov dword [esp + 4], eax
call fcn.00401740
jmp 0x402024
mov dword [esp], ebx
mov edx, dword [sym.imp.kernel32.dll_lstrcmpW]
mov ecx, str.ServicesFailed
mov dword [esp + 4], ecx
mov dword [ebp - 0x1c], edx
call edx
sub esp, 8
test eax, eax
je 0x402160
mov dword [esp], ebx
mov edx, str.ServicesActive
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1c]
call edx
sub esp, 8
test eax, eax
je 0x402032
mov eax, 0x7b
jmp 0x402098
mov eax, 0x429
jmp 0x402098
mov eax, 0x46a
jmp 0x402098
Function at 0x404d6a
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ebx, dword [ecx]
mov edi, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
test byte [0x41901c], 8
mov dword [ebp - 0x2c], ecx
jne 0x404f20
mov eax, dword [ebx]
cmp eax, 1
je 0x404eb8
cmp eax, 2
mov esi, 6
jne 0x404e9d
lea eax, [ebp - 0x1c]
mov ecx, 4
mov dword [esp], eax
mov edx, 2
mov eax, ebx
call fcn.00401910
test eax, eax
mov esi, eax
jne 0x404e9d
mov esi, dword [ebp - 0x1c]
mov edx, 0x18
mov ecx, 8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x404f90
mov dword [eax], 3
xor edx, edx
xor ecx, ecx
mov dword [eax + 4], 0
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebx + 8], eax
sub esp, 0x10
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00407a40
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x404f70
mov eax, dword [esi + 0x10]
lea edi, [ebx + 0x10]
test eax, eax
jne 0x404e82
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x18]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test dword [ebx + 0xc], eax
jne 0x404fa0
lock inc dword [edi]
mov dword [esi + 0x18], ebx
lock inc dword [edi]
mov eax, dword [ebp - 0x2c]
mov dword [eax], ebx
mov eax, dword [esi + 0x14]
xor esi, esi
mov dword [esp], eax
call fcn.00407a60
mov ecx, dword [ebp - 0x10]
mov eax, esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x1c]
mov ecx, 4
mov dword [esp], eax
mov edx, 1
mov eax, ebx
call fcn.00401910
test eax, eax
mov esi, eax
jne 0x404e9d
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x404dda
test byte [0x41901c], 4
mov esi, 0x78
je 0x404e9d
mov ebx, str.Need_support_for_service_creation_deletion_notifications_n
mov edi, str.svcctl_NotifyServiceStatusChange
mov dword [esp + 0xc], ebx
mov eax, 0x41901c
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 2
call fcn.00401740
jmp 0x404e9d
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str.__p__NotifyMask:_0x_x___p___p___p___p__n
mov dword [esp + 0xc], eax
mov eax, str.svcctl_NotifyServiceStatusChange
mov dword [esp + 8], eax
mov eax, 0x41901c
mov dword [esp + 4], eax
call fcn.00401740
jmp 0x404d9d
mov eax, dword [esi + 0x14]
mov esi, 0x4da
mov dword [esp], eax
call fcn.00407a60
mov eax, ebx
call fcn.004016b0
jmp 0x404e9d
mov esi, 0x46a
jmp 0x404e9d
mov eax, ebx
call fcn.00401350
mov dword [esi + 0x10], 1
jmp 0x404e88
Function at 0x405ec0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x34
test ecx, ecx
je 0x405f22
cmp word [ecx], 0
mov eax, ecx
je 0x405f42
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x405ee0
add eax, 2
cmp word [eax], 0
jne 0x405ee0
sub eax, ecx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, 7
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.advapi32.dll_RegSetValueExW
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0xc], ecx
call sub.advapi32.dll_RegDeleteValueW
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
sub esp, 8
cmp eax, 2
leave
cmove eax, ecx
ret
mov eax, 2
jmp 0x405ef7

Function at 0x406360
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
test ecx, ecx
je 0x4063c0
cmp word [ecx], 0
mov ebx, ecx
je 0x4063e0
lea esi, [esi]
lea edi, [edi]
add ebx, 2
cmp word [ebx], 0
jne 0x406380
sub ebx, ecx
add ebx, 2
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov ecx, 1
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0xc], ecx
call sub.advapi32.dll_RegDeleteValueW
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
sub esp, 8
cmp eax, 2
leave
cmove eax, ecx
ret
mov ebx, 2
jmp 0x40638e
Function at 0x4063f0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x88
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp + 8], eax
mov eax, 8
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebx], eax
sub esp, 0xc
test eax, eax
je 0x4064c0
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00409850
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
lea edx, [eax + 0x80]
mov dword [eax + 0x84], edx
mov dword [eax + 0x80], edx
mov esi, dword [ebx]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4064d0
mov dword [esp], 0
xor eax, eax
xor ecx, ecx
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x30], eax
sub esp, 0x10
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x4064f8
mov dword [eax + 0xc], 1
mov eax, dword [ebx]
mov dword [eax + 0x18], 1
mov eax, dword [ebx]
mov dword [eax + 0x20], 0x435
mov eax, dword [ebx]
mov dword [eax + 0x58], 0x2bf20
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 0x46a
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 0x46a
sub esp, 0xc
jmp 0x4064b3
mov eax, dword [eax + 0x10]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx]
xor edx, edx
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [edi + 0x34]
sub esp, 0xc
jmp 0x4064b3
Function at 0x406bd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 8]
lea esi, [eax + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock dec dword [ebx + 0xc]
je 0x406c18
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx + 4], 0
mov eax, dword [ebx + 0x18]
mov dword [ebx], 0
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x1c]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x20]
sub esp, 4
mov dword [esp], eax
call edi
mov eax, dword [ebx + 0x24]
sub esp, 4
mov dword [esp], eax
call edi
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x406bfa
Function at 0x406c90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x80]
cmp dword [ebx + 0x80], eax
je 0x406cc9
mov dword [esp], str.list_empty_entry__handles_
mov eax, 0x92
mov dword [esp + 8], eax
mov eax, str..._wine_programs_services_services.c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebx + 0x30]
mov edi, dword fs:[0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx + 0x10]
xor ecx, ecx
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x40]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x4c]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x44]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x50]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x54]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x5c]
xor edx, edx
sub esp, 0xc
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x60]
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x64]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x68]
sub esp, 0xc
test eax, eax
je 0x406de7
mov dword [esp], eax
call fcn.00406bd0
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406e20
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [ebx + 8]
lea esi, [edi + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock dec dword [ebx + 0xc]
jne 0x406e51
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x406e70
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteTreeW
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx]
sub esp, 8
mov dword [eax], edx
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp], ebx
call fcn.00406c90
jmp 0x406e51
Function at 0x407a80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
lea eax, [edi + 0x18]
add edi, 0x10
mov dword [esp], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
xor eax, eax
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ebx, dword [edi]
sub esp, 8
cmp edi, ebx
jne 0x407ace
jmp 0x407af2
mov ebx, dword [ebx]
cmp ebx, edi
je 0x407af2
cmp dword [ebx + 0x68], esi
jne 0x407ac8
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
dec dword [esi + 0x10]
mov dword [esp], esi
call fcn.00406bd0
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x407ace
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409850
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4098c8
cmp word [ebx], 0
je 0x4098d0
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x409870
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x4098c8
xor edx, edx
mov esi, esi
lea edi, [edi]
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x4098b0
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov eax, 2
jmp 0x40987e
Function at 0x409b70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
lea edi, [ebp - 0x20]
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x409c00
xor ecx, ecx
cmp eax, 2
mov ebx, eax
je 0x409cf0
test byte [0x4190a0], 2
jne 0x409c22
mov dword [esp + 8], ecx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
cmp eax, 7
je 0x409c68
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x409c12
dec eax
je 0x409c68
xor ecx, ecx
mov ebx, 0x70c
test byte [0x4190a0], 2
je 0x409bcb
mov eax, dword [ebp + 0xc]
mov esi, str.load_reg_multisz
mov edi, 0x4190a0
mov dword [ebp - 0x2c], ecx
call fcn.00409620
mov ecx, str.Error__d_while_reading_value__s_n
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 1
mov dword [esp + 0x14], eax
call fcn.00409540
mov ecx, dword [ebp - 0x2c]
jmp 0x409bcb
mov eax, dword [ebp - 0x20]
mov edx, dword fs:[0x18]
add eax, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
mov ecx, dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x409bc2
mov eax, dword [ebp - 0x20]
and eax, 0xfffffffe
mov word [ecx + eax], 0
mov eax, dword [ebp - 0x20]
and eax, 0xfffffffe
mov word [ecx + eax + 2], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 2
mov ebx, 8
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
sub esp, 0xc
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x409d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
xor ebx, ebx
lea edx, [ebp - 0x10]
sub esp, 0x30
mov dword [ebp - 0x10], 4
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
mov ebx, eax
je 0x409de0
cmp eax, 2
je 0x409e08
test byte [0x4190a0], 2
jne 0x409da0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, esi
call fcn.00409620
mov edx, str.load_reg_dword
mov ecx, 0x4190a0
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x14], eax
mov eax, str.Error__d_while_reading_value__s_n
mov dword [esp + 0xc], eax
call fcn.00409540
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, 1
ja 0x409df1
cmp dword [ebp - 0x10], 4
je 0x409d8d
test byte [0x4190a0], 2
mov ebx, 0x70c
je 0x409d8d
jmp 0x409da0
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x418120
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004181d0
mov dword [esp], eax
call 0x418190
nop
nop
jmp dword [sym.imp.ucrtbase.dll_exit]