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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xffffffca
push ebx
mov ebx, dword [ebp + 8]
push edi
jg 0x40573c
inc dword [ebp - 0x67bf0d2]
add byte [edi], ch
test dword [esi], ebp
je 0xaf583e
push esi
mov esi, ebx
mov eax, dword [esi]
push 1
push 0
push 0x6f
push eax
and bl, byte [edx - 0x15]
inc ebx
add byte [0xb5011176], bh
je 0x4057a9
mov dword [esi + 4], 0
mov esi, dword [esi + 8]
cmp esi, esi
xchg ebp, eax
fisttp qword [ebx + 0x4178bf3]
test eax, eax
rcl byte [edx], 0x8b
mov cl, 0xbf
add dword [eax], eax
out 0, eax
push 9
mov edx, dword [edi]
add al, 0x85
rol al, 0x12
mov esi, dword [ecx - 0x18fffe41]
add bh, ah
add byte [edx + 9], ch
dec edi
imul edi, dword [esi + 4], 0xffffffe8
dec edx
dec esp
xchg dword [eax], eax
mov esi, dword [esi + 8]
test eax, esp
jne 0x40576d
test edi, edi
retf 0x3e75
jne 0x405778
mov edx, dword [esi]
push 1
push 0
push 0x58
push edx
call 0xe9a4a4
cmp eax, 0x11176
jne 0x4057c7
mov edi, 1
jmp 0x4057ce
mov dword [esi + 4], 0
mov esi, dword [esi + 0x18]
test dword [edi - 0x7a2fbc], eax
je 0x405803
mov eax, dword [esp + edi*8 + 0x237ff685]
jl 0x405825
cmp ebx, 0x2dc6c0
jae 0x405803
push esi
push ebx
call 0xa2406d60
push 0
push 2
push esi
add eax, 0x5d44e8
or eax, 0x9d89d88b
cld
pop ebx
popfd
mov ebx, dword [ebp + 8]
mov esi, ebx
xor dword [esp + eax - 0x52f58a80], 6
push 9
push eax
call 0x1840a35e
mov esi, dword [esi + 8]
test esi, esi
jne 0x405808
mov esi, ebx
mov eax, dword [esi + 4]
test dword [eax], ecx
mov ebp, 0x6ac9280e
or byte [ebp + 0x6ac9280e], bh
add byte [edx], ch
xchg edi, eax
add byte [ecx - 0x18], dl
jp 0x405880
fld qword [eax]
mov esi, dword [esi - 0x37]
test esi, esi
je 0x405821
pop esi
pop edi
pop ebx
mov esp, ebp
nop
ret
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x1900da80
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.1900daff
jae 0x1900da8c
xor ecx, ecx
call fcn.1900daff
jae 0x1900dab6
xor eax, eax
call fcn.1900daff
jae 0x1900dac7
mov al, 0x10
call fcn.1900daff
adc al, al
jae 0x1900daa8
jne 0x1900daf4
stosb byte es:[edi], al
jmp 0x1900da8d
call fcn.1900db0b
dec ecx
loop 0x1900dad3
mov eax, ebp
call fcn.1900db09
jmp 0x1900daf5
lodsb al, byte [esi]
shr eax, 1
je 0x1900db1b
adc ecx, 2
mov ebp, eax
jmp 0x1900daf5
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.1900db09
cmp eax, 0x7d00
jae 0x1900daf3
cmp eax, 0x500
jae 0x1900daf4
cmp eax, 0x7f
ja 0x1900daf5
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1900da8d
pop ebp
ret 8

Function at 0x484cc8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
add edx, 0x67dc198e
call fcn.00484cfd
add ecx, ecx
add ecx, ecx
xor dword [edi], ebx
mov edx, edx
and edx, ecx
add edi, 2
inc edx
dec ecx
cmp edi, eax
jl fcn.00484cc8
dec ecx
add edx, ecx
add ecx, edx
ret
Function at 0x4013e0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x401400
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x401414
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401440
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401456
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401463
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x401d70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x433c88]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x401def
xor eax, eax
cmp ecx, ebx
je 0x401dd7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x401e13
cmp ecx, ebx
je 0x401dfa
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004128ec
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x401e7a
jmp 0x401e40
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00401d70
mov edi, eax
cmp edi, ebx
jne 0x401ec9
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x401e40
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401e8d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.00401270
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401eb0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004128ec
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x401ed8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004128ec
mov esp, ebp
pop ebp
ret 4
Function at 0x408e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x422d60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x433c88]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x408ef2
call fcn.004011c0
mov edi, eax
jmp 0x408fd4
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x408f0b
call fcn.004011c0
jmp 0x408fcb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x408f26
call fcn.004011c0
jmp 0x408fcb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x408f5c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x408f4a
lea ecx, [ebp]
call fcn.00401d10
lea ecx, [ebp - 0x20]
call fcn.00401cb0
mov eax, 0x8007000e
jmp 0x408fe6
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402980
mov dword [ebp - 4], 1
jmp 0x408f88
mov eax, dword [ebp]
test eax, eax
jne 0x408f96
mov edi, 0x8007000e
jmp 0x408fcd
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x408faf
call fcn.004011c0
jmp 0x408fcb
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403ba0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x408fe4
lea ecx, [ebp]
call fcn.00401d10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004128ec
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a040
Capabilities:
Create directory

Disassembly:
push esi
push str.c:users_adminDocumentsHP
push 0x435070
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push str.hpqLog
push 0x435070
call esi
push 0
push 0x435070
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a081
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a0bd
push 0x425508
push 0x435070
call esi
mov eax, dword [esp + 8]
push eax
push 0x435070
call esi
push 0
push 0x40000080
push 2
push 0
push 0
push 0x40000000
push 0x435070
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x40a280
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a2f6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40a2c5
cmp eax, 2
jne 0x40a2e1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x40a2f0
test eax, eax
je 0x40a2eb
test al, 1
jne 0x40a2e1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40a2f0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x40a300
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x208
mov eax, dword [0x433c88]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
push esi
mov esi, dword [esp + 0x210]
lea eax, [esp + 0x218]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.00413716
xor eax, eax
add esp, 0x14
lea ecx, [esp + 8]
mov word [esp + 0x206], ax
mov dword [esp + 4], ecx
cmp dword [esi + 0x260], eax
jne 0x40a368
mov edx, ecx
push edx
call fcn.0041339e
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40a39b
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.004128ec
add esp, 0x208
ret
Function at 0x40af30
Capabilities:
Create service

Disassembly:
sub esp, 0xa10
mov eax, dword [0x433c88]
xor eax, esp
mov dword [esp + 0xa0c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40af89
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40af7e
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x40b0bc
push 0x104
lea ecx, [esp + 0x16]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40b023
cmp eax, 0x104
je 0x40b023
mov edx, 0x22
mov word [esp + 0x10], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [esp + eax*2 + 0x1e], cx
mov word [esp + eax*2 + 0x20], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40b03e
push 0x400
lea eax, [esp + 0x220]
push eax
push 0xd80a
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x40b00d
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x220]
push 0x400
push ecx
call fcn.00409cc0
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [esp + 0x224]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004128ec
add esp, 0xa10
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x40b0b6
push esi
call ebp
push 0x400
lea ecx, [esp + 0x220]
push ecx
push 0xd80b
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x40b0a6
push str.Could_not_start_service
lea edx, [esp + 0x220]
push 0x400
push edx
call fcn.00409cc0
add esp, 0xc
push 0
push edi
lea eax, [esp + 0x224]
push eax
jmp 0x40b01b
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x40b025
Function at 0x40b0d0
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.00412900
mov eax, dword [0x433c88]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40b12b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40b120
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x40b135
mov eax, 1
jmp 0x40b2c6
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40b18f
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x40b182
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.004132b2
push eax
call fcn.00401050
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40b2bc
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40b1ed
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x40b182
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.004132b2
push eax
call fcn.00401050
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x40b2bc
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40b25c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40b25c
cmp eax, 0x425
jne 0x40b21a
cmp dword [esp + 0x14], 3
je 0x40b25c
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x40b24c
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00409cc0
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x40b12b
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.00409d00
add esp, 0xc
test eax, eax
jne 0x40b2b1
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.00409cc0
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004128ec
add esp, 0x1020
ret
Function at 0x40bab0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40bacc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x40b2e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x40baf4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x40c670
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x18
push edi
mov edi, ecx
call fcn.0040b0d0
test eax, eax
jne 0x40c68b
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
mov ecx, dword [0x435024]
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [esp + 0x20], str.APPID
mov dword [esp + 0x24], str.DAEA2B3C_F8C3_4BFC_9C9C_B7E58090B257
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004090d0
cmp eax, ebx
jl 0x40c7c5
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401380
cmp eax, ebx
je 0x40c70d
push eax
call fcn.004011e0
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x40c702
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
mov edx, dword [esp + 0x14]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.DAEA2B3C_F8C3_4BFC_9C9C_B7E58090B257
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401300
mov esi, eax
cmp esi, ebx
je 0x40c75b
lea ecx, [esp + 0xc]
call fcn.00401d50
lea ecx, [esp + 0x14]
call fcn.00401d50
push esi
call fcn.004011e0
add esp, 4
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
mov eax, dword [esp + 0xc]
push str.LocalService
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [esp + 0x28], bl
je 0x40c7b0
push 1
lea ecx, [edi + 0x40]
push ecx
push str.LocalService
lea ecx, [esp + 0x18]
call fcn.00401400
mov ecx, edi
call fcn.0040af30
test eax, eax
jne 0x40c7b0
lea ecx, [esp + 0xc]
call fcn.00401d50
lea ecx, [esp + 0x14]
call fcn.00401d50
pop esi
pop ebx
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
lea ecx, [esp + 0xc]
call fcn.00401d50
lea ecx, [esp + 0x14]
call fcn.00401d50
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
Function at 0x40c7e0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.0040b0d0
test eax, eax
jne 0x40c7f5
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c87c
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push str.DAEA2B3C_F8C3_4BFC_9C9C_B7E58090B257
mov ebp, eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00401380
test eax, eax
je 0x40c889
push eax
call fcn.004011e0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x40c86c
push eax
call edi
test ebp, ebp
je 0x40c873
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.004011e0
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.0040c630
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x40c8af
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c8ba
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x40cd40
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cd92
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cd92
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret 0x18

Function at 0x40cda0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40cdf0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret 0x18