joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5e92
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], 0
call fcn.004421a0
add esp, 0xc
mov dword [ebp - 0x220], 1
mov ecx, esi
mov dword [ebp - 0x21c], 0x104
call fcn.00409950
cmp dword [ebp + 0xc], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 1
push eax
push str.VendorID
je 0x421bf8
push str.SOFTWARELuDaShi
jmp 0x421bfd
push str.SOFTWARELdsLite
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421c11
sub ecx, edx
sar ecx, 1
je 0x421c83
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00404a50
mov ecx, esi
call fcn.00424800
mov ecx, esi
call fcn.00424750
mov eax, dword [esi]
mov ecx, 0x4c240c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421c6c
test dx, dx
je 0x421c68
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421c6c
add eax, 4
add ecx, 4
test dx, dx
jne 0x421c46
xor eax, eax
jmp 0x421c71
sbb eax, eax
or eax, 1
test eax, eax
jne 0x421c83
push 7
push str.ludashi
mov ecx, esi
call fcn.00404a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
Function at 0x422e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422f01
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x422ecf
cmp eax, 2
jne 0x422eeb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x422efb
test ecx, ecx
je 0x422ef6
test cl, 1
jne 0x422eeb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x422efb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x423a30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2858
call fcn.0042a240
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x804]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x800
push 0
push eax
call fcn.004421a0
add esp, 0xc
cmp dword [ebp + 0x24], 0
je 0x423aec
xor eax, eax
mov word [ebp - 0x804], ax
test esi, esi
je 0x423b1d
push 0x1000
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.004421a0
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x423ad5
push 0x800
lea eax, [ebp - 0x1804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x1804]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea esi, [ebp - 0x1804]
push 0x400
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0046b15d
add esp, 0xc
jmp 0x423b04
lea ecx, [ebp - 0x804]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x423af4
cmp dword [ebp + 0x20], 0
je 0x423b30
lea eax, [ebp - 0x804]
push eax
call fcn.00429300
add esp, 4
test eax, eax
jne 0x423b30
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [ebp - 0x2858]
push 0
push eax
call fcn.004421a0
add esp, 0xc
mov dword [ebp - 0x2858], 0x44
lea eax, [ebp - 0x2858]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ax, word [ebp + 0x14]
xorps xmm0, xmm0
push 0x1000
mov word [ebp - 0x2828], ax
lea eax, [ebp - 0x2804]
push 0
push eax
mov dword [ebp - 0x282c], 1
movups xmmword [ebp - 0x2814], xmm0
call fcn.004421a0
add esp, 0xc
lea eax, [ebp - 0x804]
test edi, edi
je 0x423bb1
push edi
push eax
lea eax, [ebp - 0x2804]
push str.__s___s
push eax
call fcn.00414ee0
add esp, 0x10
jmp 0x423bc6
push eax
lea eax, [ebp - 0x2804]
push str.__s_
push eax
call fcn.00414ee0
add esp, 0xc
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x2858]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x423c34
cmp dword [ebp + 0x18], 0
je 0x423c0a
push dword [ebp + 0x1c]
push dword [ebp - 0x2814]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x423c1e
push eax
push dword [ebp - 0x2814]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2814]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a228
mov esp, ebp
pop ebp
ret
Function at 0x423e10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b60b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e43e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x423e8b
test al, 0x10
je 0x423e8b
push esi
mov edi, 1
call fcn.0041cfc0
add esp, 4
test eax, eax
jne 0x423eae
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x423eae
push esi
test edi, edi
jne 0x423ea6
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x423eae
push esi
push str.DeleteFile:_s_suceesss
call fcn.00414b10
add esp, 8
jmp 0x423eae
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x423e5c
push esi
push str.DeleteFile:_s_suceesss
call fcn.00414b10
add esp, 8
jmp 0x423eae
call fcn.0041cfc0
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423f2f
push esi
lea ecx, [ebp - 0x10]
call fcn.00406da0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov edi, dword [esi + 4]
cmp dword [esi + 8], edi
je 0x423eee
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.004073b0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [esi + 4], 4
jmp 0x423efa
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push edi
call fcn.00413250
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423f1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x426150
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4e43d8]
test ecx, ecx
js 0x426198
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x11c
xorps xmm0, xmm0
mov dword [0x4e43d8], 0
lea eax, [ebp - 0x128]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.004421a0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x426209
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x426260
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426260
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x426240
cmp ax, 6
jne 0x426260
mov dword [0x4e43d8], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4269e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0042a240
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.004421a0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.004421a0
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004421a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.004421a0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.00418820
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426b10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0046a6ab
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.0046e5d2
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x426b95
inc esi
cmp esi, 0xa
jl 0x426a62
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x426ba0
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00404a50
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a228
mov esp, ebp
pop ebp
ret
Function at 0x426c20
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0042a240
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x426c7b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x426d4c
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x426d4c
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x426cb5
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x426d1a
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00441c20
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426d4c
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x426cd0
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x426d4c
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00441c20
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a228
mov esp, ebp
pop ebp
ret 4
Function at 0x4273a0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x427461
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004421a0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42744b
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.004421a0
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x4c3bf8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x427461
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004421a0
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.004037c0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0045cdca
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x4274c1
cmp eax, 0x207
ja 0x4274c1
jne 0x4274c8
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4274d1
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042a228
mov esp, ebp
pop ebp
ret

Function at 0x427a00
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x427a21
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x427a4b
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x427b70
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b62e1
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x427bd6
mov eax, 0x80004003
jmp 0x427d32
push 0xf01ff
push edi
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x124], edi
test edi, edi
jne 0x427bfd
mov edi, 0x80004005
jmp 0x427d29
lea eax, [ebp - 0x110]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x114], eax
xor ebx, ebx
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x427c27
mov dword [ebp - 0x114], eax
jmp 0x427c85
mov edi, eax
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x427c30
sub edi, ecx
lea eax, [ebp - 0x110]
push 0x80
push eax
sar edi, 1
lea eax, [ebp - 0x114]
inc edi
push edi
push eax
call fcn.00406bf0
mov ecx, dword [ebp - 0x118]
lea eax, [edi + edi]
push eax
push ecx
push eax
push dword [ebp - 0x114]
call fcn.00428260
push eax
call fcn.004071c0
mov eax, dword [ebp - 0x114]
add esp, 0x24
mov edi, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.00406da0
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x427cb2
push eax
call fcn.0046a836
add esp, 4
mov eax, dword [ebp - 0x120]
cmp dword [eax - 0xc], 0
je 0x427cce
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
push ebx
push dword [ebp - 0x11c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
test ebx, ebx
je 0x427cf3
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x120]
xor ecx, ecx
test eax, eax
mov edi, 0x80004005
cmovne edi, ecx
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x427d1d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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 - 0x10]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
Function at 0x428120
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x42815f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x42817a
mov edi, 0x80004005
jmp 0x4281b1
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push ebx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push ebx
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0042a228
mov esp, ebp
pop ebp
ret
Function at 0x42bdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor al, al
push edi
xor edi, edi
test esi, esi
je 0x42beb7
push ebx
mov ecx, dword [ebp + 8]
mov dl, byte [edi + ecx]
xor dl, al
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
xor al, 0x8c
and bl, 1
movzx edx, al
movzx eax, cl
cmove edx, eax
mov cl, dl
shr cl, 1
mov al, cl
xor al, 0x8c
and dl, 1
movzx ebx, al
movzx eax, cl
cmove ebx, eax
mov cl, bl
shr cl, 1
mov al, cl
movzx ecx, cl
xor al, 0x8c
and bl, 1
movzx eax, al
cmove eax, ecx
inc edi
cmp edi, esi
jb 0x42be05
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x42d770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b65e3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x4e4414]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042d660
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x42d951
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004421a0
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x4c4d30
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42d951
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x42d845
cmp eax, 2
jne 0x42d951
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x42d866
test cl, 1
jne 0x42d951
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x42d86c
jmp 0x42d951
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x42d951
call fcn.004042a0
mov ecx, eax
test ecx, ecx
je 0x42d97c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.0042b860
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x4bc6a8
push eax
call fcn.00403810
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.0042bdf0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x42d935
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42d8d6
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.0042d9d0
push dword [0x4e441c]
lea eax, [ebp - 0x74]
push dword [0x4e4418]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x42d912
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42d92e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x42d953
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42d951
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x42d95e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004031c0
int3