joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401402
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, dword [0x40a940]
test edx, edx
je 0x40141c
cmp dword [0x40a96c], 0
jne 0x401459
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov esi, eax
mov edx, 0xd3e65c39
mov ecx, esi
call fcn.004012e0
mov edx, 0xdc02ba32
mov dword [0x40a940], eax
mov ecx, esi
call fcn.004012e0
mov edx, dword [0x40a940]
mov dword [0x40a96c], eax
mov ecx, dword [0x40ad98]
xor esi, esi
mov eax, esi
test ecx, ecx
je 0x401486
cmp dword [eax*4 + 0x40a970], edi
je 0x401477
inc eax
cmp eax, ecx
jb 0x401467
jmp 0x401486
test eax, eax
je 0x401486
mov esi, dword [eax*4 + 0x40a540]
test esi, esi
jne 0x4014cf
mov eax, dword [ebx*4 + 0x40a944]
test eax, eax
jne 0x4014a5
push dword [ebx*4 + 0x40ad70]
call edx
mov dword [ebx*4 + 0x40a944], eax
test eax, eax
je 0x4014cf
mov edx, edi
mov ecx, eax
call fcn.004012e0
mov esi, eax
test esi, esi
je 0x4014cf
mov ecx, dword [0x40ad98]
mov dword [ecx*4 + 0x40a970], edi
mov dword [ecx*4 + 0x40a540], esi
inc ecx
mov dword [0x40ad98], ecx
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4014d5
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea eax, [edi + 1]
push esi
mov ecx, eax
call fcn.004016e2
mov bl, byte [edi]
mov ecx, 0x40a4d4
push esi
xor bl, byte [eax]
call fcn.0040173f
inc esi
mov byte [eax], bl
lea eax, [edi + 1]
cmp esi, 0xb
jb 0x4014df
pop edi
pop esi
pop ebx
mov byte [0x40a4df], 0
mov eax, 0x40a4d4
ret
Function at 0x401cc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
call fcn.00401ac9
movaps xmm0, xmmword [0x408430]
xor esi, esi
movups xmmword [ebp - 0x34], xmm0
mov bl, byte [ebp - 0x34]
movaps xmm0, xmmword [0x408440]
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
push esi
mov ecx, 0x40a4fc
call fcn.004033f5
mov ecx, eax
mov al, byte [ebp + esi - 0x33]
xor al, bl
inc esi
mov byte [ecx], al
cmp esi, 0x1f
jb 0x401cfc
add edi, 0x54
xor ebx, ebx
push edi
push 0x20119
push ebx
push 0x40a4fc
push 0x80000002
push 4
mov edx, 0xde5b7090
mov byte [0x40a51b], bl
pop ecx
call fcn.00401402
call eax
test eax, eax
jne 0x401dd7
lea ecx, [ebp - 0x30]
call fcn.00401ac9
sub esp, 0x1c
mov ecx, esp
push 0x407970
call fcn.0040332d
sub esp, 0x1c
lea ecx, [ebp - 0xd]
mov esi, esp
push dword [ebp + 8]
push str.MachineGuid
call fcn.004017f9
mov ecx, eax
call fcn.004014d5
push eax
mov ecx, esi
call fcn.0040332d
mov ecx, dword [edi]
lea edx, [ebp - 0x30]
call fcn.00403e99
add esp, 0x38
cmp dword [ebp - 0x1c], ebx
je 0x401dae
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
push eax
call fcn.004035ff
push dword [edi]
mov edx, 0x59b26164
push 4
pop ecx
call fcn.00401402
call eax
lea ecx, [ebp - 0x30]
call fcn.00401b05
mov ecx, dword [ebp - 0x30]
push 8
push ecx
mov dword [ebp - 0x30], ebx
call fcn.004049e0
pop ecx
pop ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401de1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, esi
push edi
call fcn.00401ac9
movaps xmm0, xmmword [str.j_8.8_6._9_8:___69]
xor edi, edi
movups xmmword [ebp - 0x44], xmm0
mov bl, byte [ebp - 0x44]
movaps xmm0, xmmword [0x408420]
mov word [ebp - 0x24], 0x39
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x23], 0
push edi
mov ecx, 0x40a51c
call fcn.00403398
mov ecx, eax
mov al, byte [ebp + edi - 0x43]
xor al, bl
inc edi
mov byte [ecx], al
cmp edi, 0x20
jb 0x401e1c
mov edi, dword [ebp - 4]
xor ebx, ebx
add edi, 0x54
mov byte [0x40a53c], bl
push edi
push 0x40a51c
push 0x80000002
push 4
mov edx, 0xe4c0d971
pop ecx
call fcn.00401402
call eax
test eax, eax
jne 0x401f5a
lea ecx, [ebp - 0x40]
call fcn.00401ac9
sub esp, 0x1c
mov ecx, esp
push 0x407970
call fcn.0040332d
sub esp, 0x1c
mov ecx, esp
push str.BaseBoardProduct
call fcn.0040332d
mov ecx, dword [edi]
lea edx, [ebp - 0x40]
call fcn.00403e99
add esp, 0x38
cmp dword [ebp - 0x2c], ebx
je 0x401eb5
cmp dword [ebp - 0x28], 0xf
lea eax, [ebp - 0x3c]
push dword [ebp - 0x2c]
cmova eax, dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.004035ff
lea ecx, [ebp - 0x20]
call fcn.00401ac9
sub esp, 0x1c
mov ecx, esp
push 0x407970
call fcn.0040332d
sub esp, 0x1c
mov ecx, esp
push str.SystemProductName
call fcn.0040332d
mov ecx, dword [edi]
lea edx, [ebp - 0x20]
call fcn.00403e99
mov ecx, dword [ebp - 0xc]
add esp, 0x38
test ecx, ecx
je 0x401f19
cmp dword [esi + 0x14], ebx
je 0x401f05
push 3
push 0x4079a8
mov ecx, esi
call fcn.004035ff
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
push ecx
cmova eax, dword [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004035ff
push dword [edi]
mov edx, 0x59b26164
push 4
pop ecx
call fcn.00401402
call eax
lea ecx, [ebp - 0x20]
call fcn.00401b05
mov eax, dword [ebp - 0x20]
push 8
push eax
mov dword [ebp - 0x20], ebx
call fcn.004049e0
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00401b05
mov ecx, dword [ebp - 0x40]
push 8
push ecx
mov dword [ebp - 0x40], ebx
call fcn.004049e0
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403e06
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4061c5
call fcn.00406194
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, edx
mov edx, ecx
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x403e32
mov ecx, dword [ecx]
lea eax, [edx + 4]
cmp dword [edx + 0x18], 0xf
jbe 0x403e3d
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ucrtbased.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x403e7f
cmp dword [ebp - 0x14], eax
je 0x403e7f
lea eax, [esi + 4]
cmp dword [esi + 0x18], 0xf
jbe 0x403e60
mov eax, dword [eax]
push dword [ebp - 0x14]
push dword [esi + 0x14]
push 1
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
push dword [ebp - 0x14]
call dword [sym.imp.ucrtbased.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401770
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004024e0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004024e0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4017d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x407270]
test esi, esi
jle 0x4018f0
mov eax, dword [0x407274]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401804
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401887
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4017f0
mov dword [esp], ebx
call fcn.004021c0
mov edi, eax
test eax, eax
je 0x401917
mov eax, dword [0x407274]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402300
mov edx, dword [0x407274]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4018f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401880
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401890
add dword [0x407270], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x407274]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401770
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40180e
mov eax, dword [0x407274]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401770
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401770
lea esi, [esi]
nop
Function at 0x401e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40728c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x407284]
sub esp, 4
test ebx, ebx
je 0x401e85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401e7e
test esi, esi
je 0x401e7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e60
mov dword [esp], 0x40728c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4021c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021e5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4021f0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021e5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402238
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40222e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40223a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402220
xor eax, eax
pop ebx
pop esi
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x24925572
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x45d7403a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4022c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x34], eax
test byte [section..data], 8
jne 0x402378
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0x18], edi
mov dword [ebp + 8], esi
mov dword [ebp + 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
add esp, 0x58
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._create_serviceW.isra.0
mov eax, edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ecx
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov dword [ebp - 0x44], ecx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.__s___s__0x_lx___s__n
mov dword [esp + 8], str.svcctl_CreateServiceW
mov dword [esp + 4], 0x417000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x40231d
Function at 0x404440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0x34], eax
test byte [section..data], 8
jne 0x4044f8
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0x18], edi
mov dword [ebp + 8], esi
mov dword [ebp + 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x38], 1
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
add esp, 0x58
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._create_serviceW.isra.0
mov eax, edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ecx
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov dword [ebp - 0x44], ecx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, edx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.__s___s__0x_lx___s__n
mov dword [esp + 8], str.svcctl_CreateServiceWOW64W
mov dword [esp + 4], 0x417000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x40449d
Function at 0x4052b0
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, 0x54
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 [0x418c20]
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 0x4053b0
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 dword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x405350
test byte [section..data], 2
jne 0x405440
lea esp, [ebp - 8]
mov eax, ebx
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x417188]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4053d8
test byte [section..data], 2
je 0x405340
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], 0x417000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x405340
test byte [section..data], 2
jne 0x405478
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 dword [sym.imp.rpcrt4.dll_RpcServerListen]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4054b0
test byte [section..data], 2
je 0x405340
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], 0x417000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x405340
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], 0x417000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
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], 0x4184b4
mov dword [esp + 8], str.RPC_Init
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x417000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4053bd
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x41b180
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x405340
Function at 0x4056a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
sub esp, 0x1c
test ecx, ecx
je 0x4056fc
cmp word [ecx], 0
mov eax, ecx
je 0x40571d
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4056b8
add eax, 2
cmp word [eax], 0
jne 0x4056b8
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 dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov dword [ebp - 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
sub esp, 8
cmp eax, 2
leave
cmove eax, ecx
ret
mov eax, 2
jmp 0x4056cf

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
sub esp, 0x18
test ecx, ecx
je 0x405b40
cmp word [ecx], 0
mov ebx, ecx
je 0x405b60
lea esi, [esi]
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x405b00
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 dword [sym.imp.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 dword [sym.imp.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 0x405b0e
Function at 0x406610
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
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 0x40663c
mov eax, dword [ebx + 0x74]
test eax, eax
jne 0x406650
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 dword [sym.imp.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 sym._free_service_entry
jmp 0x40663c

Function at 0x4067f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edi, dword [esi + 8]
lea eax, [edi + 0x18]
add edi, 0x10
mov dword [ebp - 0x10], 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 edi, ebx
jne 0x40683e
jmp 0x406863
mov ebx, dword [ebx]
cmp ebx, edi
je 0x406863
cmp dword [ebx + 0x68], esi
jne 0x406838
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x68], 0
sub dword [esi + 0x10], 1
mov dword [esp], esi
call sym._release_process
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x40683e
mov eax, dword [ebp - 0x10]
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