joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003d5c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10005fde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1308
call fcn.10005f20
push ebx
push esi
push edi
mov dword [ebp - 0x294], 0x44
push 0x40
push 0
lea eax, [ebp - 0x290]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x4ac], 0
push 0x103
push 0
lea eax, [ebp - 0x4ab]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea esi, [ebp - 0x298]
call fcn.10002974
and dword [ebp - 4], 0
lea esi, [ebp - 0x134]
call fcn.10002974
mov byte [ebp - 4], 1
mov byte [ebp - 0x3a4], 0
push 0x103
push 0
lea eax, [ebp - 0x3a3]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea esi, [ebp - 0x138]
call fcn.10002974
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12f8], eax
mov eax, dword [ebp - 0x12f8]
mov dword [ebp - 0x12fc], eax
sub dword [ebp - 0x12fc], 1
je 0x10003e45
jmp 0x10004f73
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea eax, [ebp - 0x480]
movzx eax, ax
lea ecx, [ebp - 0x4f8]
cmp eax, ecx
je 0x10003e81
lea eax, [ebp - 0x4f0]
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x4fc]
add eax, 0xfffffffc
cwde
not eax
mov dword [ebp - 0x1300], eax
jmp 0x10003e97
movsx eax, byte [ebp - 0x3f0]
xor edx, edx
mov ecx, 0x7bb6
div ecx
mov dword [ebp - 0x1300], edx
movsx eax, word [ebp - 0x47c]
cmp dword [ebp - 0x1300], eax
jb 0x10003ec0
lea eax, [ebp - 0x41c]
movzx eax, ax
lea ecx, [ebp - 0x4fc]
sub eax, dword [ecx - 0x2c]
mov dword [ebp - 0x1304], eax
jmp 0x10003ee1
lea eax, [ebp - 0x4f8]
movzx eax, al
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x4fc]
movsx eax, word [eax - 0x20]
not eax
mov dword [ebp - 0x1304], eax
cmp dword [ebp - 0x1304], 0x57a9
jbe 0x10003f05
call fcn.10002fe6
movsx eax, word [ebp - 0x4d8]
xor ecx, ecx
sub ecx, eax
mov dword [ebp - 0x1308], ecx
jmp 0x10003f1f
call fcn.10002fe6
lea eax, [ebp - 0x4fc]
add eax, 0xffffffdc
cdq
push 0x78
pop ecx
idiv ecx
mov dword [ebp - 0x1308], eax
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x1308], eax
jae 0x10003f47
lea eax, [ebp - 0x4fc]
add eax, 0xfffffff8
movzx eax, al
imul eax, eax, 0x54af
mov dword [ebp - 0x130c], eax
jmp 0x10003f64
lea eax, [ebp - 0x4ac]
mov dword [ebp - 0x4e8], eax
lea eax, [ebp - 0x47c]
cwde
xor ecx, ecx
sub ecx, eax
mov dword [ebp - 0x130c], ecx
mov eax, dword [ebp - 0x130c]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4f9], eax
mov dword [ebp - 0x4f3], ecx
mov dword [ebp - 0x4ed], edx
push esi
push ebp
push esi
call fcn.10004031
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401c30
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4

Function at 0x405a60
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x405a73
push 0x80004005
call fcn.00401000
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x405ada
mov ecx, dword [edi]
test ecx, ecx
jbe 0x405ad7
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x405ad2
cmp edx, 2
jbe 0x405acb
cmp edx, 7
jne 0x405ad2
cmp ecx, 1
jb 0x405ad2
cmp byte [ecx + esi - 1], 0
jne 0x405ad2
cmp ecx, 1
jbe 0x405ada
cmp byte [ecx + esi - 2], 0
jmp 0x405ad0
cmp byte [ecx + esi - 1], 0
je 0x405ada
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc
Function at 0x40d530
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43c479
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x44d37c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44d37c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
call fcn.0041cefc
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d5aa
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
movzx ecx, byte [esp + 0x2b]
movzx edx, byte [esp + 0x2a]
mov eax, dword [esp + 0x28]
push ecx
push edx
movzx ecx, ah
push ecx
movzx ecx, byte [esp + 0x32]
movzx edx, al
movzx eax, byte [esp + 0x33]
push edx
push eax
push ecx
movzx ecx, word [esp + 0x3a]
movzx edx, bh
push edx
movzx eax, bl
push eax
push ecx
movzx edx, bp
push edx
push edi
push str._.8X__.4X__.4X__.2X_.2X__.2X_.2X_.2X_.2X_.2X_.2X
push esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x48], 1
call fcn.0040d510
add esp, 0x34
mov ecx, esi
call fcn.0040d430
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00428397
add esp, 0x28
ret 0x14
Function at 0x40d640
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c4d4
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44d37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor bl, bl
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], bl
call fcn.0041d6aa
push 0
push 0
lea edi, [esi + 0x14c]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041da8f
test eax, eax
jne 0x40d7a7
push eax
add esi, 0x48
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x60
call fcn.0041cb6e
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40d6cd
push 0
call fcn.0041a110
mov ebx, eax
jmp 0x40d6cf
xor ebx, ebx
push 0x60
mov byte [ebp - 4], 1
call fcn.0041cb6e
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 3
test ecx, ecx
je 0x40d6f5
push 0
call fcn.0041a110
mov esi, eax
jmp 0x40d6f7
xor esi, esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40d787
push str.TCSREGISTER
mov ecx, esi
call fcn.0041aad0
push 0x43fe88
mov ecx, ebx
call fcn.0041aad0
push ebx
mov ecx, esi
call fcn.004198f0
push edi
lea ecx, [ebp - 0x1c]
call fcn.004168b0
lea eax, [ebp - 0x1c]
lea edi, [esi + 0x28]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0040d490
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [edi + 4], ecx
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.XML_Files__.xml__.xml_All_Files__.__.
mov ecx, esi
call fcn.0041ca30
mov edx, dword [esi]
mov bl, al
mov eax, dword [edx + 4]
push 1
mov ecx, esi
mov byte [ebp - 0x11], bl
call eax
test bl, bl
jne 0x40d7af
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0041d785
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2c]
call fcn.0041d644
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0041d785
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416260
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
lea eax, [ebx - 0x834]
xor esi, esi
push edi
mov edi, 0x1300
cmp eax, 0x383
ja 0x416294
push 2
push esi
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x416294
mov edi, 0x1b00
push 0
push 0
push 0
push 0x400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4162d5
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x4162e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
ret

Function at 0x417b60
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
je 0x417b6f
xor eax, eax
pop esi
ret 4
mov eax, dword [esp + 8]
push edi
test eax, eax
je 0x417b7b
push eax
jmp 0x417b80
push 0x440040
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x417ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00416260
add esp, 4
pop edi
mov eax, esi
pop esi
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x440034
push edi
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x417bfc
push 0x440028
push edi
call ebx
push str.Tddli_Cancel
push edi
mov dword [esi + 8], eax
call ebx
push str.Tddli_GetStatus
push edi
mov dword [esi + 0xc], eax
call ebx
push 0x43fff4
push edi
mov dword [esi + 0x10], eax
call ebx
push str.Tddli_GetCapability
push edi
mov dword [esi + 0x14], eax
call ebx
push str.Tddli_SetCapability
push edi
mov dword [esi + 0x18], eax
call ebx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x417c49
cmp dword [esi + 8], 0
je 0x417c49
cmp dword [esi + 0xc], 0
je 0x417c49
cmp dword [esi + 0x10], 0
je 0x417c49
cmp dword [esi + 0x14], 0
je 0x417c49
cmp dword [esi + 0x18], 0
je 0x417c49
cmp dword [esi + 0x1c], 0
je 0x417c49
call eax
mov ebx, eax
test ebx, ebx
je 0x417c3e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebx
pop edi
pop esi
ret 4
pop ebx
mov dword [esi + 0x20], edi
pop edi
xor eax, eax
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.00416260
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x418250
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]
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_RegQueryValueExA]
test eax, eax
jne 0x4182b7
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x418293
cmp eax, 2
jne 0x4182a6
mov eax, dword [esp + 0x14]
test esi, esi
je 0x4182b3
test eax, eax
je 0x4182b0
cmp byte [eax + esi - 1], 0
je 0x4182b3
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x4182c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4182d4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x418370
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43cea8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x44d37c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x418300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4183e5
lea ecx, [esp + 8]
call fcn.00417b10
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00417b60
lea ecx, [esp + 8]
call fcn.00417fc0
lea ecx, [esp + 8]
mov dword [esp + 0x34], 0xffffffff
call fcn.00417b40
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
add esp, 0x34
ret

Function at 0x418400
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
mov eax, dword [0x44d37c]
xor eax, esp
mov dword [esp + 0x104], eax
mov ecx, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 0x118]
push eax
push ecx
push 0xff
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004297d1
add esp, 0x14
cmp dword [esi + 0x160], 0
lea eax, [esp + 8]
mov byte [esp + 0x107], 0
mov dword [esp + 4], eax
jne 0x418467
mov ecx, eax
push ecx
call fcn.00429f14
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x41849a
push 0
lea edx, [esp + 8]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.00428397
add esp, 0x108
ret
Function at 0x418660
Capabilities:
Create service

Disassembly:
sub esp, 0x50c
mov eax, dword [0x44d37c]
xor eax, esp
mov dword [esp + 0x508], 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_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4186b9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x4186ae
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x4187e1
push 0x104
lea ecx, [esp + 0x15]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x418748
cmp eax, 0x104
je 0x418748
push 0xf003f
mov cl, 0x22
push 0
mov byte [esp + 0x18], cl
push 0
mov byte [esp + eax + 0x1d], cl
mov byte [esp + eax + 0x1e], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x418763
push 0x400
lea edx, [esp + 0x11c]
push edx
push 0xd80a
call fcn.00418030
add esp, 0xc
test eax, eax
jne 0x418732
push str.Could_not_open_Service_Manager
lea eax, [esp + 0x11c]
push 0x400
push eax
call fcn.00418010
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea ecx, [esp + 0x120]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x518]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428397
add esp, 0x50c
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4187db
push esi
call ebp
push 0x400
lea eax, [esp + 0x11c]
push eax
push 0xd80b
call fcn.00418030
add esp, 0xc
test eax, eax
jne 0x4187cb
push str.Could_not_start_service
lea ecx, [esp + 0x11c]
push 0x400
push ecx
call fcn.00418010
add esp, 0xc
push 0
push edi
lea edx, [esp + 0x120]
push edx
jmp 0x418740
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x41874a
Function at 0x4187f0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x820
mov eax, dword [0x44d37c]
xor eax, esp
mov dword [esp + 0x81c], 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_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x418847
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x41883c
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 0x418851
mov eax, 1
jmp 0x4189e2
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4188ab
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00418030
add esp, 0xc
test eax, eax
jne 0x41889e
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00429eac
push eax
call fcn.00417960
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x4189d8
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x418909
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00418030
add esp, 0xc
test eax, eax
jne 0x41889e
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.00429eac
push eax
call fcn.00417960
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x4189d8
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x418978
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x418978
cmp eax, 0x425
jne 0x418936
cmp dword [esp + 0x14], 3
je 0x418978
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00418030
add esp, 0xc
test eax, eax
jne 0x418968
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.00418010
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
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 0x418847
push 0x400
lea ecx, [esp + 0x430]
push ecx
push 0xd80d
call fcn.00418030
add esp, 0xc
test eax, eax
jne 0x4189cd
push str.Could_not_delete_service
lea edx, [esp + 0x430]
push 0x400
push edx
call fcn.00418010
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x434]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00428397
add esp, 0x820
ret
Function at 0x418ba0
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_CreateEventA]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x418bbc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x418a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x418be4
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 0x418c30
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x18
push edi
mov edi, ecx
call fcn.004187f0
test eax, eax
jne 0x418c4b
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
mov ecx, dword [0x44ea30]
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], 0x440050
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00404d20
cmp eax, ebx
jl 0x418d85
push esi
push 0x20006
push str.AppID
push 0x80000000
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00405a00
cmp eax, ebx
je 0x418ccd
push eax
call fcn.00418080
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x418cc2
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.7D37D54B_7B88_485E_9F61_C34F3601EF3A
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004181d0
mov esi, eax
cmp esi, ebx
je 0x418d1b
lea ecx, [esp + 0xc]
call fcn.00406130
lea ecx, [esp + 0x14]
call fcn.00406130
push esi
call fcn.00418080
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_RegDeleteValueA]
cmp byte [esp + 0x28], bl
je 0x418d70
push 1
lea ecx, [edi + 0x40]
push ecx
push str.LocalService
lea ecx, [esp + 0x18]
call fcn.004182c0
mov ecx, edi
call fcn.00418660
test eax, eax
jne 0x418d70
lea ecx, [esp + 0xc]
call fcn.00406130
lea ecx, [esp + 0x14]
call fcn.00406130
pop esi
pop ebx
mov eax, 0x80004005
pop edi
add esp, 0x18
ret 4
lea ecx, [esp + 0xc]
call fcn.00406130
lea ecx, [esp + 0x14]
call fcn.00406130
xor eax, eax
pop esi
pop ebx
pop edi
add esp, 0x18
ret 4
Function at 0x418dd0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.004187f0
test eax, eax
jne 0x418de5
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push 0x80000000
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418e6c
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push str.7D37D54B_7B88_485E_9F61_C34F3601EF3A
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.00405a00
test eax, eax
je 0x418e79
push eax
call fcn.00418080
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x418e5c
push eax
call edi
test ebp, ebp
je 0x418e63
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.00418080
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0
call fcn.00418bf0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x418e9f
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418eaa
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x419910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43cf07
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44d37c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CXML.0
mov dword [esp + 0x14], 4
call fcn.004197a0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 3
mov dword [ecx], vtable.CAttributeList.0
call fcn.0041e2ef
mov eax, dword [esi + 0x30]
sub eax, 0x10
mov byte [esp + 0x14], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x28]
sub eax, 0x10
mov byte [esp + 0x14], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4199a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x20]
sub eax, 0x10
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4199ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
mov dword [ecx], vtable.CXMLList.0
call fcn.0041e2ef
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret