joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413460
Capabilities:
Contain obfuscated stackstrings
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9830
push 0x42d7e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov byte [ebp - 0x28], 0x52
mov al, 0x65
mov byte [ebp - 0x27], al
mov byte [ebp - 0x26], 0x67
mov byte [ebp - 0x25], 0x43
mov byte [ebp - 0x24], 0x72
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x74
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], 0x4b
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x1d], 0x79
mov byte [ebp - 0x1c], 0x45
mov byte [ebp - 0x1b], 0x78
mov byte [ebp - 0x1a], 0x41
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x28]
push eax
push str.ADVAPI32.dll
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov ebx, eax
push str.RegOpenKeyExA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov esi, eax
xor edi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x413502
jmp dword [eax*4 + 0x413638]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x38]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
jne case.default.0x413502
lea edx, [ebp - 0x38]
push edx
push 0x2001f
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call esi
test eax, eax
jne case.default.0x413502
mov edx, dword [ebp + 0x14]
cmp edx, edi
jbe case.default.0x413502
cmp edx, 2
jbe 0x413581
cmp edx, 4
jne case.default.0x413502
push edx
lea edx, [ebp + 0x1c]
push edx
push 4
push edi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x413502
jmp 0x4135fd
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne case.default.0x413502
jmp 0x4135fd
lea ecx, [ebp - 0x38]
push ecx
push 0x2001f
push edi
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne case.default.0x413502
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne case.default.0x413502
jmp 0x4135fd
lea eax, [ebp - 0x38]
push eax
push 0x2001f
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call esi
test eax, eax
jne case.default.0x413502
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne case.default.0x413502
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00413624
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414f80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
push esi
push edi
push str.DwmEnableComposition
push str.Dwmapi.dll
call fcn.00419b40
mov edi, eax
add esp, 8
test edi, edi
je 0x41505a
mov esi, dword [esp + 0x414]
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0xc], eax
mov eax, dword [0x51eb78]
test eax, eax
push str.SoftwareMicrosoftWindowsDWM
je 0x414fd9
push eax
lea ecx, [esp + 0x18]
push 0x50c3b8
push ecx
call fcn.0042cdcc
add esp, 0x10
jmp 0x414feb
lea edx, [esp + 0x14]
push 0x50db70
push edx
call fcn.0042cdcc
add esp, 0xc
mov edx, dword [0x51eb78]
lea eax, [esp + 8]
neg edx
sbb edx, edx
push eax
and edx, 2
push 2
lea ecx, [esp + 0x18]
push 0
add edx, reloc.WS2_32.dll_accept
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41505a
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.SuppressDisableCompositionUI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41504c
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x408
ret 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
pop edi
pop esi
add esp, 0x408
ret 4
Function at 0x416200
Capabilities:
Log keystrokes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x4163b8
call fcn.0042ad40
mov eax, 0x24924925
mul esi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 4
test esi, esi
jle 0x4163b8
mov edx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_mouse_event]
push edi
lea ebx, [edx + 8]
mov dword [esp + 0x18], esi
push 0
call sub.USER32.dll_BlockInput
mov eax, dword [ebx - 4]
cmp eax, 0x200
jb 0x416284
cmp eax, 0x208
ja 0x416284
mov edi, dword [ebx + 4]
xor esi, esi
mov si, word [ebx + 4]
shr edi, 0x10
push edi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebx - 4]
cmp eax, 0x203
ja 0x416334
je 0x41631c
cmp eax, 0x105
ja 0x4162f0
je 0x4162d2
sub eax, 0x100
je 0x4162b4
dec eax
je 0x4162d2
sub eax, 3
jne case.0x41633e.521
mov eax, dword [ebx]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, byte [ebx]
push eax
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x41633e.521
mov edx, dword [ebx]
push 0
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
mov al, byte [ebx]
push eax
call dword [sym.imp.USER32.dll_keybd_event]
jmp case.0x41633e.521
sub eax, 0x201
je 0x41630d
dec eax
jne case.0x41633e.521
push 0
push 0
push 0
push 0
push 4
jmp 0x4163a1
push 0
push 0
push 0
push 0
push 2
jmp 0x4163a1
push 0
push 0
push 0
push 0
push 6
call ebp
push 0
push 0
push 0
push 0
push 6
jmp 0x4163a1
add eax, 0xfffffdfc
cmp eax, 6
ja case.0x41633e.521
jmp dword [eax*4 + 0x4163bc]
push 0
push 0
push 0
push 0
push 8
jmp 0x4163a1
push 0
push 0
push 0
push 0
push 0x10
jmp 0x4163a1
push 0
push 0
push 0
push 0
push 0x18
call ebp
push 0
push 0
push 0
push 0
push 0x18
jmp 0x4163a1
push 0
push 0
push 0
push 0
push 0x20
jmp 0x4163a1
push 0
push 0
push 0
push 0
push 0x40
jmp 0x4163a1
mov ecx, dword [ebx]
push 0
shr ecx, 0x10
movsx edx, cx
push edx
push 0
push 0
push 0x800
call ebp
mov eax, dword [esp + 0x18]
add ebx, 0x1c
dec eax
mov dword [esp + 0x18], eax
jne 0x416249
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x4163e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x416448
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x10]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x416440
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov esi, dword [esp + 0x10]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
ret 8
Function at 0x416450
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4164e2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x416481
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call fcn.004a2adf
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x83
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.0040f340
push ebp
call fcn.004a2b08
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x416a30
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
test ebx, ebx
je 0x416bdb
mov eax, dword [esi + 0x78]
test eax, eax
je 0x416bdb
push ebp
push edi
call fcn.00417250
mov al, byte [esi + 0x10]
lea ecx, [esp + 0x3c]
push 1
push ecx
mov ecx, esi
mov dword [esi + 0x7c], 0
mov byte [esp + 0x44], al
call fcn.00417070
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
fild dword [esi + 0x1c]
push 0
fstp dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fdivr dword [esp + 0x18]
fild dword [esp + 0x1c]
fmul st(1)
fadd dword [0x4c9868]
call fcn.0042ccb4
fild dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fmul st(1)
fadd dword [0x4c9868]
call fcn.0042ccb4
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 8
push eax
mov ecx, esi
fstp st(0)
call fcn.00417070
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x14
push ecx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x416b1b
cmp dword [esp + 0x28], 1
jne 0x416b1b
mov ecx, dword [esp + 0x2c]
xor edi, edi
lea eax, [esi + 0x1ac]
cmp ecx, dword [eax]
je 0x416b08
inc edi
add eax, 4
cmp edi, 0x10
jl 0x416afb
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x416b17
or edi, 0xffffffff
mov eax, edi
jmp 0x416b1e
or eax, 0xffffffff
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, esi
mov byte [esp + 0x1b], al
call fcn.00417070
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x50]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov al, byte [esp + 0x3c]
cmp al, 1
jne 0x416b65
push 1
mov ecx, esi
call fcn.00416bf0
jmp 0x416b91
cmp al, 2
jne 0x416b91
mov edx, dword [esi + 0x64]
mov ecx, dword [esi + 0x7c]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0x78]
add ecx, eax
push ecx
push edx
lea ecx, [esi + 0x84]
call fcn.0042b070
test eax, eax
mov dword [ebx], eax
jbe 0x416b91
add dword [esi + 0x7c], eax
mov eax, dword [esi + 0x7c]
mov ebp, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebx], eax
lea edi, [esi + 0x40]
lea ebx, [esi + 0x38]
push edi
call ebp
mov ecx, dword [edi]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
sub ecx, eax
mov eax, dword [edi + 4]
sbb eax, edx
mov edx, dword [esi + 0x34]
cmp eax, edx
jg 0x416bcb
jl 0x416bc1
cmp ecx, dword [esi + 0x30]
jae 0x416bcb
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x416ba2
push ebx
call ebp
mov eax, dword [esi + 0x78]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret 4
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
Function at 0x417620
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
xor edi, edi
cmp ebp, edi
mov esi, ecx
je 0x4177d3
cmp dword [esi + 0x1c], edi
je 0x4177d3
call fcn.00417be0
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.00417a20
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [esp + 0x10]
push 8
push ecx
mov ecx, esi
call fcn.00417a20
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x14
push edx
call dword [sym.imp.USER32.dll_GetCursorInfo]
test eax, eax
je 0x4176b6
cmp dword [esp + 0x1c], 1
jne 0x4176b6
mov ecx, dword [esp + 0x20]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x4176a3
inc edi
add eax, 4
cmp edi, 0x10
jl 0x417696
push ecx
call dword [sym.imp.USER32.dll_DestroyCursor]
cmp edi, 0x10
jne 0x4176b2
or edi, 0xffffffff
mov eax, edi
jmp 0x4176b9
or eax, 0xffffffff
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push 1
push eax
mov ecx, esi
call fcn.00417a20
cmp byte [ebx], 2
jne 0x417721
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00417c20
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00417c80
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x14]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x51e4d8]
cmp ecx, eax
mov edi, edx
je 0x41774e
push edi
mov ecx, esi
call fcn.004177e0
test al, al
je 0x41774e
add edi, 0x13
jmp 0x417751
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x41776f
push edi
mov ecx, esi
call fcn.004177e0
test al, al
je 0x417765
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x417756
mov eax, dword [esp + 0x14]
mov ecx, 0x13
mov dword [0x51e4d8], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cdq
idiv ecx
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x4177bc
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x4177ab
call ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x417eb0
Capabilities:
Acquire debug privileges
Modify service

Disassembly:
sub esp, 0x1f8
push ebx
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.00419b70
add esp, 8
push 8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [esp + 0x20c]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
mov al, byte [esp + 0x214]
test al, al
jne 0x417f2c
mov eax, 4
jmp 0x417f44
cmp al, 1
jne 0x417f37
mov eax, 3
jmp 0x417f44
cmp al, 2
mov eax, 2
je 0x417f44
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test edi, edi
je 0x417f69
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00417e80
push 0
push str.SeDebugPrivilege
call fcn.00419b70
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f8
ret 0xc

Function at 0x417fb0
Capabilities:
Acquire debug privileges
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.00419b70
add esp, 8
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [esp + 0x224]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x10024
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 1
je 0x41803b
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00417e80
push 0
push str.SeDebugPrivilege
call fcn.00419b70
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 8
Function at 0x418080
Capabilities:
Acquire debug privileges
Query service status
Start service

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.00419b70
add esp, 8
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [esp + 0x224]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x34
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea edx, [esp + 0x10]
mov esi, eax
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [esp + 0x22c]
mov eax, 1
cmp ecx, eax
mov ecx, dword [esp + 0x14]
jne 0x418112
cmp ecx, eax
jne 0x418123
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
jmp 0x418123
cmp ecx, eax
je 0x418123
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebp
call fcn.00417e80
push 0
push str.SeDebugPrivilege
call fcn.00419b70
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc
Function at 0x418710
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.004185b0
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x418758
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x6d
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x418732
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x418760
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
sub esp, 0x240
mov ax, word [0x50eb4c]
mov cl, byte [0x50eb4e]
push ebx
push esi
push edi
mov word [esp + 0x4c], ax
mov byte [esp + 0x4e], cl
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4f]
rep stosd dword es:[edi], eax
mov dx, word [0x50eb48]
mov ecx, 0x3f
stosb byte es:[edi], al
mov al, byte [0x50eb4a]
lea edi, [esp + 0x14f]
mov byte [esp + 0x14e], al
xor eax, eax
mov word [esp + 0x14c], dx
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea edi, [esp + 0x14c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xc], 0x48
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x10], 0x57
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov bl, 0x44
and ecx, 3
mov byte [esp + 0xf], bl
rep movsb byte es:[edi], byte [esi]
mov cl, 0x45
mov byte [esp + 0x15], bl
mov byte [esp + 0x13], cl
mov byte [esp + 0x16], cl
mov al, 0x41
mov dl, 0x52
mov bl, 0x53
mov cl, 0x49
mov byte [esp + 0xd], al
mov byte [esp + 0xe], dl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], dl
mov byte [esp + 0x17], bl
mov byte [esp + 0x19], dl
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1d], cl
mov byte [esp + 0x21], bl
mov al, 0x5c
mov bl, 0x73
mov cl, 0x74
mov dl, 0x65
mov byte [esp + 0x14], al
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x1b], 0x50
mov byte [esp + 0x1c], 0x54
mov byte [esp + 0x1e], 0x4f
mov byte [esp + 0x1f], 0x4e
mov byte [esp + 0x20], al
mov byte [esp + 0x22], 0x79
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x6d
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0x43
mov byte [esp + 0x29], dl
mov byte [esp + 0x2a], 0x6e
mov byte [esp + 0x38], al
mov eax, 4
mov byte [esp + 0x2b], cl
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov cl, 0x72
lea eax, [esp + 0x3c]
mov byte [esp + 0x2c], cl
mov byte [esp + 0x30], cl
mov byte [esp + 0x37], cl
push eax
push 1
lea ecx, [esp + 0x14]
push 0
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + 0x41], 0x61
mov byte [esp + 0x42], 0x6c
mov byte [esp + 0x43], 0x50
mov byte [esp + 0x45], 0x6f
mov byte [esp + 0x46], 0x63
mov byte [esp + 0x47], dl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x6f
mov byte [esp + 0x4d], 0x30
mov byte [esp + 0x4e], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x48]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
add esp, 0x240
ret