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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov edx, 2
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
lea ecx, [ebp - 0x1c]
call fcn.00401f30
mov ebx, eax
test eax, eax
jne 0x402ee1
cmp esi, 2
je 0x402f10
cmp esi, 7
je 0x402f68
cmp esi, 1
jne 0x402ef0
mov eax, dword [edi]
test eax, eax
je 0x402ee1
xor edi, edi
cmp word [eax], 0
jne 0x402ff0
mov esi, dword [ebp - 0x1c]
test byte [section..data], 8
jne 0x403010
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00407810
mov edx, dword [esi + 0x14]
mov eax, dword fs:[0x18]
mov edx, dword [edx + 0x5c]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x14]
sub esp, 0xc
mov dword [eax + 0x5c], edi
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00406290
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00407830
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [section..data], 1
jne 0x402f90
lea esp, [ebp - 0x10]
mov ebx, 0x7c
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test byte [section..data], 1
je 0x402ee1
mov eax, dword [edi + 8]
call fcn.00401800
mov esi, eax
mov eax, dword [edi + 4]
call fcn.00401800
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0xc], str.SERVICE_CONFIG_FAILURE_ACTIONS_not_implemented:_period__lu_msg__s_cmd__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x419000
mov dword [esp], 0
call fcn.00401520
jmp 0x402ee1
mov esi, dword [ebp - 0x1c]
test byte [section..data], 8
jne 0x402fc0
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00407810
mov eax, dword [esi + 0x14]
mov edx, dword [edi]
mov dword [eax + 0x58], edx
jmp 0x402ecb
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.level__lu_not_implemented_n
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x419000
mov dword [esp], 0
call fcn.00401520
jmp 0x402efd
mov eax, dword [edi]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.changing_service__p_preshutdown_timeout_to__ld_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x419000
mov dword [esp], 3
call fcn.00401520
jmp 0x402f74
mov dword [esp], eax
call fcn.00409440
mov edi, eax
test eax, eax
jne 0x402e80
mov ebx, 8
jmp 0x402ee1
mov eax, edi
call fcn.00401800
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.changing_service__p_descr_to__s_n
mov dword [esp + 8], str.svcctl_ChangeServiceConfig2W
mov dword [esp + 4], 0x419000
mov dword [esp], 3
call fcn.00401520
jmp 0x402e90
Function at 0x404a90
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
push ecx
sub esp, 0x48
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x20], 0
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ecx + 0x14]
mov edi, dword [edi + 0x18]
test byte [section..data], 8
jne 0x404c20
mov edx, dword [ebx]
cmp edx, 1
je 0x404be8
mov eax, 6
cmp edx, 2
je 0x404af8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea ecx, [ebp - 0x1c]
mov edx, 4
mov eax, ebx
call fcn.00401f30
test eax, eax
jne 0x404ae7
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
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
mov ebx, eax
test eax, eax
je 0x404c90
mov dword [eax], 3
mov dword [eax + 4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov eax, dword [esi + 8]
sub esp, 0x10
mov esi, dword [ebp - 0x1c]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00407810
mov edx, dword [esi + 0x18]
test edx, edx
jne 0x404ca0
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [edx + 0x18]
test eax, eax
jne 0x404bb4
sub ecx, 1
mov eax, 1
shl eax, cl
and eax, dword [ebx + 0xc]
jne 0x404cc0
lock add dword [ebx + 0x10], 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], ebx
lock add dword [ebx + 0x10], 1
mov eax, dword [ebp - 0x1c]
mov dword [edi], ebx
mov eax, dword [eax + 0x14]
mov dword [esp], eax
call fcn.00407830
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea ecx, [ebp - 0x20]
mov edx, 4
mov eax, ebx
call fcn.00401e60
test eax, eax
jne 0x404ae7
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x404b0b
test byte [section..data], 4
jne 0x404c68
mov eax, 0x78
jmp 0x404ae7
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__p__NotifyMask:_0x_lx___p___p___p___p__n
mov dword [esp + 8], str.svcctl_NotifyServiceStatusChange
mov dword [esp + 4], 0x419000
mov dword [esp], 3
call fcn.00401520
jmp 0x404ad2
mov dword [esp + 0xc], str.Need_support_for_service_creation_deletion_notifications_n
mov dword [esp + 8], str.svcctl_NotifyServiceStatusChange
mov dword [esp + 4], 0x419000
mov dword [esp], 2
call fcn.00401520
jmp 0x404c13
mov eax, 0x46a
jmp 0x404ae7
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.00407830
mov eax, ebx
call fcn.004014a0
mov eax, 0x4da
jmp 0x404ae7
mov eax, ebx
call fcn.00401a30
mov dword [esi + 0x10], 1
jmp 0x404bbf
Function at 0x405800
Capabilities:
Contain obfuscated stackstrings
Listen for remote procedure calls

Disassembly:
push ebp
xor eax, eax
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [ebp - 0x38], 0x63006e
mov dword [ebp - 0x34], 0x630061
mov dword [ebp - 0x30], 0x5f006e
mov dword [ebp - 0x2c], 0x70006e
mov word [ebp - 0x28], ax
mov dword [ebp - 0x24], 0x70005c
mov dword [ebp - 0x20], 0x700069
mov dword [ebp - 0x1c], 0x5c0065
mov dword [ebp - 0x18], 0x760073
mov dword [ebp - 0x14], 0x630063
mov dword [ebp - 0x10], 0x6c0074
mov word [ebp - 0xc], dx
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [0x41d004], eax
test eax, eax
je 0x405910
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.rpcrt4.dll_RpcServerUseProtseqEpW
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x4058b0
test byte [section..data], 2
jne 0x405998
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [0x419188]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.rpcrt4.dll_RpcServerRegisterIf
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405930
test byte [section..data], 2
je 0x4058a4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerRegisterIf_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x419000
mov dword [esp], 1
call fcn.00401520
jmp 0x4058a4
test byte [section..data], 2
jne 0x4059d0
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call sub.rpcrt4.dll_RpcServerListen
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405a10
test byte [section..data], 2
je 0x4058a4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerListen_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x419000
mov dword [esp], 1
call fcn.00401520
jmp 0x4058a4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerUseProtseq_failed_with_error__lu_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x419000
mov dword [esp], 1
call fcn.00401520
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x41a4a4
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x419000
mov dword [esp], 1
call fcn.00401520
jmp 0x40591d
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x41d000
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x4058a4

Function at 0x405bb0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov edx, eax
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
leave
ret
Function at 0x405d10
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x20
test ecx, ecx
je 0x405d70
cmp word [ecx], 0
mov eax, ecx
je 0x405d90
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405d30
sub eax, ebx
add eax, 2
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call sub.advapi32.dll_RegSetValueExW
sub esp, 0x18
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.advapi32.dll_RegDeleteValueW
sub esp, 8
cmp eax, 2
cmove eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, 2
jmp 0x405d3e

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
sub esp, 0x34
test ecx, ecx
je 0x405dfb
cmp word [ecx], 0
mov eax, ecx
je 0x405e1b
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405db8
add eax, 2
cmp word [eax], 0
jne 0x405db8
sub eax, ecx
add eax, 2
mov dword [esp], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 7
mov dword [esp + 8], 0
mov dword [esp + 4], edx
call sub.advapi32.dll_RegSetValueExW
mov esi, 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 esi, dword [ebp - 4]
sub esp, 8
cmp eax, 2
leave
cmove eax, ecx
ret
mov eax, 2
jmp 0x405dcf
Function at 0x406150
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x1c
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], 0x88
mov dword [esp + 4], 8
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 0x40623e
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00409440
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 ecx, dword [esi + 0x10]
test ecx, ecx
je 0x406220
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x30], eax
mov eax, dword [ebx]
sub esp, 0x10
mov edx, dword [eax + 0x30]
test edx, edx
je 0x406248
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
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, 0x46a
jmp 0x406214
mov eax, dword [eax + 0x10]
mov dword [esp + 4], 0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
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]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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 0x406214
Function at 0x406b30
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]
mov eax, dword [ebx + 8]
lea esi, [eax + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock sub dword [ebx + 0xc], 1
je 0x406b70
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx + 0x18]
mov dword [ebx + 4], 0
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
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
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]
sub esp, 0xc
jmp 0x406b55
Function at 0x406bf0
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 0x406c27
mov dword [esp + 8], 0x96
mov dword [esp + 4], str._Users_developer_Projects_Mac_mt4_Wine_WineSource_builder_sources_wine_programs_services_services.c
mov dword [esp], str.list_empty_entry__handles_
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]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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
mov dword [esp + 4], 0
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
mov dword [esp + 4], 0
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
mov dword [esp + 4], 0
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
mov dword [esp + 4], 0
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
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x5c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x60]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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
mov dword [esp + 4], 0
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 0x406d57
mov dword [esp], eax
call fcn.00406b30
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
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 0x406da0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
lea esi, [edi + 0x18]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lock sub dword [ebx + 0xc], 1
jne 0x406dcc
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x406de0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
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]
sub esp, 8
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp], ebx
call fcn.00406bf0
jmp 0x406dcc
Function at 0x407850
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 [ebp - 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [esi + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov ebx, dword [edi]
sub esp, 8
cmp ebx, edi
jne 0x40789e
jmp 0x4078c3
mov ebx, dword [ebx]
cmp ebx, edi
je 0x4078c3
cmp dword [ebx + 0x68], esi
jne 0x407898
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
sub dword [esi + 0x10], 1
mov dword [esp], esi
call fcn.00406b30
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x40789e
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 0x409440
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 0x4094b8
cmp word [ebx], 0
je 0x4094c0
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x409460
sub eax, ebx
add eax, 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0
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 0x4094b8
xor edx, edx
lea esi, [esi]
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x4094a0
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret
mov eax, 2
jmp 0x40946e
Function at 0x409760
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
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x1c]
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
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 0x409838
mov ebx, eax
xor ecx, ecx
cmp eax, 2
je 0x409900
test byte [0x419080], 2
jne 0x4097f8
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
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 + 0xc]
mov dword [ebp - 0x2c], ecx
call fcn.00409210
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x41b720
mov dword [esp + 8], str.load_reg_multisz
mov dword [esp + 4], 0x419080
mov dword [esp], 1
call fcn.00409120
mov ecx, dword [ebp - 0x2c]
jmp 0x4097c3
mov eax, dword [ebp - 0x1c]
cmp eax, 7
je 0x409868
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40984c
cmp eax, 1
je 0x409868
mov ebx, 0x70c
xor ecx, ecx
test byte [0x419080], 2
je 0x4097c3
jmp 0x4097f8
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x2c], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
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 0x4097ba
mov eax, dword [ebp - 0x20]
xor edx, edx
xor ebx, ebx
and eax, 0xfffffffe
mov word [ecx + eax], dx
mov eax, dword [ebp - 0x20]
and eax, 0xfffffffe
mov word [ecx + eax + 2], bx
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 2
xor ebx, ebx
mov dword [esp + 4], 8
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]
sub esp, 0xc
mov dword [edx], eax
jmp 0x4098ec
Function at 0x409940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x10]
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x4099a8
cmp eax, 2
je 0x409a08
test byte [0x419080], 2
jne 0x4099c7
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 0x4099b9
cmp dword [ebp - 0x10], 4
je 0x40999b
mov ebx, 0x70c
test byte [0x419080], 2
je 0x40999b
mov eax, esi
call fcn.00409210
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0x41b720
mov dword [esp + 8], str.load_reg_dword
mov dword [esp + 4], 0x419080
mov dword [esp], 1
call fcn.00409120
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x417c00
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 al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00417cb0
mov dword [esp], eax
call 0x417c70
jmp dword [sym.imp.ucrtbase.dll_exit]