joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [0x40337c]
test eax, eax
jne 0x401038
push str.kernel32.dll
call ebx
mov dword [0x40337c], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetConsoleMode
push eax
call edi
mov dword [ebp - 0x28], eax
mov eax, dword [0x40337c]
test eax, eax
jne 0x40105e
push str.kernel32.dll
call ebx
mov dword [0x40337c], eax
push str.GetConsoleMode
push eax
call edi
mov dword [ebp - 0x2c], eax
mov eax, dword [0x40337c]
test eax, eax
jne 0x40107e
push str.kernel32.dll
call ebx
mov dword [0x40337c], eax
push str.ReadFile
push eax
call edi
mov edi, eax
mov eax, dword [0x40337c]
test eax, eax
jne 0x40109d
push str.kernel32.dll
call ebx
mov dword [0x40337c], eax
push str.WriteConsoleA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x28], 0
mov ebx, eax
je 0x40112c
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40112c
test edi, edi
je 0x40112c
test ebx, ebx
je 0x40112c
lea ecx, [ebp - 0xc]
push ecx
push esi
call eax
add esp, 8
test eax, eax
je 0x40112c
mov eax, dword [ebp - 0xc]
and eax, 0xfffffff9
push eax
push esi
call dword [ebp - 0x28]
add esp, 8
test eax, eax
je 0x40112c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 5]
push eax
push esi
call edi
add esp, 0x14
test eax, eax
je 0x40112c
mov al, byte [ebp - 5]
xor al, 0x1f
mov byte [ebp - 5], al
cmp al, 0x1b
je 0x401142
push 0
push 0
push 1
lea eax, [ebp - 5]
push eax
push esi
call ebx
add esp, 0x14
test eax, eax
je 0x40112c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 5]
push eax
push esi
call edi
add esp, 0x14
test eax, eax
jne 0x4010f6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004011ca
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x4011b7
movaps xmm1, xmmword [0x402170]
mov cl, 0xcc
mov dword [ebp - 0x24], 0x6a006a
mov dword [ebp - 0x20], 0x15ff
mov dword [ebp - 0x1c], 0x90900000
mov dword [ebp - 0x18], 0x90909090
movups xmm0, xmmword [ebp - 0x24]
mov word [ebp - 0x14], 0x9090
mov ax, word [ebp - 0x14]
movups xmmword [esi], xmm0
mov word [esi + 0x10], ax
mov eax, 0x10
mov byte [esi + 0x12], cl
movups xmm0, xmmword [esi]
xorps xmm1, xmm0
movups xmmword [esi], xmm1
xor byte [eax + esi], 0x1f
inc eax
cmp eax, 0x13
jb 0x4011a1
call esi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004011ca
mov esp, ebp
pop ebp
ret
Function at 0x4019d5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a14
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a14
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a14
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a14
cmp dword [ecx + 0x74], 0xe
jbe 0x401a14
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401060
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov eax, dword fs:[0x18]
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], 0x1c
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_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
je 0x401120
mov ebx, eax
mov eax, edx
or eax, 0xf01ff
test edx, 0x2000000
mov dword [ebx], 2
cmovne edx, eax
lea eax, [ebx + 4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], edx
mov dword [esp], eax
mov dword [esp + 4], 0x419bc8
call dword [sym.imp.ntdll.dll_RtlMapGenericMask]
sub esp, 8
mov dword [esp], esi
call fcn.004074b0
lea edx, [esi + 0x80]
mov dword [ebx + 0x14], esi
lea eax, [ebx + 8]
mov dword [ebx + 8], edx
mov edx, dword [esi + 0x84]
mov dword [ebx + 0xc], edx
mov dword [edx], eax
mov dword [esi + 0x84], eax
mov dword [esp], esi
call fcn.004074d0
mov dword [edi], ebx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call fcn.00406890
mov eax, 0x46a
jmp 0x401117

Function at 0x401130
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x40]
je 0x401169
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_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x44]
cmp eax, dword [ebx + 0x44]
je 0x401196
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_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x50]
cmp eax, dword [ebx + 0x50]
je 0x4011c3
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_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x54]
cmp eax, dword [ebx + 0x54]
je 0x4011f0
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_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x60]
cmp eax, dword [ebx + 0x60]
je 0x40121d
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_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0x64]
cmp eax, dword [ebx + 0x64]
je 0x40124a
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_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4012e0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov eax, dword fs:[0x18]
sub esp, 0x2c
mov dword [ebp - 0x1c], edx
mov dword [esp + 8], 0x6c
mov dword [esp + 4], 8
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 0x401370
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 fcn.00401000
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 8], edi
mov dword [ebx + 0x5c], 0
lea ecx, [eax - 1]
mov eax, 1
mov dword [ebx + 0x68], 0
shl eax, cl
mov dword [ebx], 1
mov dword [ebx + 0x64], eax
mov dword [ebx + 4], 2
xchg dword [esi + 0x14], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4013e0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
movzx esi, word [eax]
mov dword [ebp - 0x20], edx
mov edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0
test si, si
je 0x4015ef
nop
lea esi, [esi]
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401418
sub eax, edx
mov ecx, eax
add eax, 2
sar ecx, 1
add ecx, 1
cmp si, 0x2b
je 0x401478
add edi, ecx
add edx, eax
movzx esi, word [edx]
test si, si
jne 0x401410
test edi, edi
jne 0x40148b
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0
mov dword [eax], 0
test edx, edx
jne 0x401517
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edx + 2], 0
je 0x401433
mov esi, dword [ebp - 0x1c]
lea esi, [esi + ecx - 1]
mov dword [ebp - 0x1c], esi
jmp 0x401435
lea edx, [edi + edi + 2]
mov dword [esp + 4], 0
mov dword [esp + 8], 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]
mov dword [ebp - 0x28], eax
sub esp, 0xc
test eax, eax
je 0x4015fd
movzx edx, word [ebx]
mov edi, ebx
test dx, dx
je 0x4014ff
mov dword [ebp - 0x2c], ebx
mov esi, eax
lea esi, [esi]
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4014d8
sub eax, edi
add eax, 2
cmp dx, 0x2b
jne 0x4015a0
add edi, eax
movzx edx, word [edi]
test dx, dx
jne 0x4014d0
mov ebx, dword [ebp - 0x2c]
mov eax, esi
xor ecx, ecx
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov word [eax], cx
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
test edx, edx
je 0x40145e
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
lea eax, [eax + eax + 2]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x401607
movzx edx, word [ebx]
test dx, dx
je 0x401586
nop
lea esi, [esi]
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401568
sub eax, ebx
lea ecx, [eax + 2]
cmp dx, 0x2b
je 0x4015c8
add ebx, ecx
movzx edx, word [ebx]
test dx, dx
jne 0x401560
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov dword [eax], edi
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
mov edx, edi
lea esi, [esi]
movzx ebx, word [edx]
add edx, 2
add ecx, 2
mov word [ecx - 2], bx
test bx, bx
jne 0x4015a8
add esi, eax
jmp 0x4014f0
cmp word [ebx + 2], 0
je 0x40157c
xor edx, edx
lea esi, [esi]
movzx esi, word [ebx + edx + 2]
mov word [edi + edx], si
add edx, 2
test si, si
jne 0x4015d8
add edi, eax
add ebx, ecx
jmp 0x40157e
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x40145e
mov eax, 0xe
jmp 0x401469
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 0xe
sub esp, 0xc
jmp 0x401469
Function at 0x401640
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x1c
lock sub dword [eax + 0x10], 1
je 0x401660
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
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
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 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 0x401750
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 0x4017b2
cmp eax, 2
jne 0x4017db
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.004074b0
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 0x40179c
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.00401640
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.004074d0
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00406890
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]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
test byte [section..data], 2
jne 0x4017f0
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], 0x418000
mov dword [esp], 1
call fcn.004016c0
jmp 0x4017e4
Function at 0x401f4a
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
test byte [section..data], 8
jne 0x401ff8
test ebx, ebx
je 0x401f7a
cmp word [ebx], 0
jne 0x402050
mov dword [esp + 8], 0xc
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_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4020a0
mov dword [eax], 1
mov eax, edi
or eax, 0xf003f
test edi, 0x2000000
cmovne edi, eax
lea eax, [ebx + 4]
mov dword [ebx + 4], edi
mov dword [esp], eax
mov dword [esp + 4], 0x419bd8
call dword [sym.imp.ntdll.dll_RtlMapGenericMask]
mov eax, dword [0x41f164]
sub esp, 8
mov dword [ebx + 8], eax
xor eax, eax
mov dword [esi], ebx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, ebx
mov dword [ebp - 0x20], edx
call fcn.004019a0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov eax, edx
call fcn.004019a0
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.__s___s___x__n
mov dword [esp + 8], 0x419bb0
mov dword [esp + 4], 0x418000
mov dword [esp], 3
call fcn.004016c0
jmp 0x401f6c
mov edx, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], str.ServicesFailed
mov dword [esp], ebx
mov dword [ebp - 0x1c], edx
call edx
mov ecx, eax
sub esp, 8
mov eax, 0x429
test ecx, ecx
je 0x401fe8
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], str.ServicesActive
mov dword [esp], ebx
call edx
mov edx, eax
sub esp, 8
mov eax, 0x7b
test edx, edx
je 0x401f7a
jmp 0x401fe8
mov eax, 0x46a
jmp 0x401fe8
Function at 0x40481a
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
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]
mov dword [ebp - 0x2c], ecx
test byte [section..data], 8
jne 0x4049d0
mov eax, dword [ebx]
cmp eax, 1
je 0x404960
mov esi, 6
cmp eax, 2
jne 0x404948
lea eax, [ebp - 0x1c]
mov ecx, 4
mov edx, 2
mov dword [esp], eax
mov eax, ebx
call fcn.00401890
mov esi, eax
test eax, eax
jne 0x404948
mov esi, dword [ebp - 0x1c]
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 0x404a38
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 [edi + 8]
sub esp, 0x10
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call fcn.004074b0
mov edx, dword [esi + 0x18]
test edx, edx
jne 0x404a18
mov eax, dword [esi + 0x10]
lea edi, [ebx + 0x10]
test eax, eax
jne 0x40492b
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 0x404a48
lock add dword [edi], 1
mov dword [esi + 0x18], ebx
lock add dword [edi], 1
mov eax, dword [ebp - 0x2c]
mov dword [eax], ebx
mov eax, dword [esi + 0x14]
xor esi, esi
mov dword [esp], eax
call fcn.004074d0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0x1c]
mov ecx, 4
mov edx, 1
mov dword [esp], eax
mov eax, ebx
call fcn.00401890
mov esi, eax
test eax, eax
jne 0x404948
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x404882
mov esi, 0x78
test byte [section..data], 4
je 0x404948
mov dword [esp + 0xc], str.Need_support_for_service_creation_deletion_notifications_n
mov dword [esp + 8], str.svcctl_NotifyServiceStatusChange
mov dword [esp + 4], 0x418000
mov dword [esp], 2
call fcn.004016c0
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
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 + 0x14], eax
mov dword [esp + 0xc], str.__p__NotifyMask:_0x_x___p___p___p___p__n
mov dword [esp + 8], str.svcctl_NotifyServiceStatusChange
mov dword [esp + 4], 0x418000
mov dword [esp], 3
call fcn.004016c0
jmp 0x404845
mov eax, dword [esi + 0x14]
mov esi, 0x4da
mov dword [esp], eax
call fcn.004074d0
mov eax, ebx
call fcn.00401640
jmp 0x404948
mov esi, 0x46a
jmp 0x404948
mov eax, ebx
call fcn.004012e0
mov dword [esi + 0x10], 1
jmp 0x404932
Function at 0x405550
Capabilities:
Listen for remote procedure calls

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
xor edx, edx
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x60
mov word [ebp - 0x38], ax
movdqu xmm0, xmmword [str.ncacn_nppipe_sv]
mov dword [ebp - 0x18], 0x630063
movups xmmword [ebp - 0x48], xmm0
movdqu xmm0, xmmword [0x419c00]
mov dword [ebp - 0x14], 0x6c0074
mov word [ebp - 0x10], dx
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [section..bss], eax
test eax, eax
je 0x405650
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.rpcrt4.dll_RpcServerUseProtseqEpW
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x4055f0
test byte [section..data], 2
jne 0x4056e0
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x418188]
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 0x405678
test byte [section..data], 2
je 0x4055df
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerRegisterIf_failed_with_error__u_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x418000
mov dword [esp], 1
call fcn.004016c0
jmp 0x4055df
test byte [section..data], 2
jne 0x405718
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
lea esp, [ebp - 8]
pop ecx
mov eax, ebx
pop ebx
pop ebp
lea esp, [ecx - 4]
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 0x405750
test byte [section..data], 2
je 0x4055df
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerListen_failed_with_error__u_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x418000
mov dword [esp], 1
call fcn.004016c0
jmp 0x4055df
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerUseProtseq_failed_with_error__u_n
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 4], 0x418000
mov dword [esp], 1
call fcn.004016c0
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x4194a0
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x418000
mov dword [esp], 1
call fcn.004016c0
jmp 0x40565d
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x41f160
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x4055df
Function at 0x405940
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 0x40599b
cmp word [ecx], 0
mov eax, ecx
je 0x4059bb
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405958
add eax, 2
cmp word [eax], 0
jne 0x405958
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 0x40596f

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
sub esp, 0x20
test ecx, ecx
je 0x405e20
cmp word [ecx], 0
mov ebx, ecx
je 0x405e40
lea esi, [esi]
lea edi, [edi]
add ebx, 2
cmp word [ebx], 0
jne 0x405de0
sub ebx, esi
add ebx, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
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, esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ebx, 2
jmp 0x405dee
Function at 0x405e50
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 0x405f20
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004092e0
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 0x405f30
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 0x405f58
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
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]
mov eax, 0x46a
sub esp, 0xc
jmp 0x405f14
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 0x405f14