joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddae0
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599d38
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ea110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x4ddb65
mov eax, dword [0x5eadf8]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x4ddb49
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4ddb34
mov dword [0x5eadf8], 1
jmp 0x4ddb4d
push esi
push dword [ebp + 0xc]
mov dword [0x5eadf8], 0
call fcn.004df1a0
jmp 0x4ddb90
test eax, eax
je 0x4ddb5a
push esi
push dword [ebp + 0xc]
call fcn.004ddc80
test eax, eax
jne 0x4ddb90
push esi
push dword [ebp + 0xc]
call fcn.004df1a0
jmp 0x4ddb90
push dword [ebp + 0xc]
call fcn.004dec90
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ddbb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0xc

Function at 0x4ddbd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599d68
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x5ea110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x5eadf8]
cmp eax, 0xffffffff
jne 0x4ddc26
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4ddc1a
mov dword [0x5eadf8], 1
jmp 0x4ddc2a
mov dword [0x5eadf8], 0
jmp 0x4ddc38
test eax, eax
je 0x4ddc38
push dword [ebp + 8]
call fcn.004deee0
mov esi, eax
test esi, esi
jne 0x4ddc42
push dword [ebp + 8]
call fcn.004df390
mov esi, eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ddc64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4df1a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a1e6
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5ea110]
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 + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4df327
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00407fd0
mov ecx, eax
test ecx, ecx
jne 0x4df250
push 0x80004005
call fcn.00407ba0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.0041ee80
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00533670
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004dfbc0
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00560eb5
add esp, 8
test eax, eax
je 0x4df2f9
test esi, esi
je 0x4df2f9
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4df2d5
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4df315
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
test edi, edi
je 0x4df329
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4df329
xor esi, esi
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.0050ed39
mov esp, ebp
pop ebp
ret 8
Function at 0x4df390
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5ea110]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.00533670
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x20c], 0
je 0x4df417
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00533670
add esp, 0xc
mov dword [ebp - 0x418], 0x104
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x414], ax
pop esi
setne al
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 4

Function at 0x4df490
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5f1ff8], 0
mov dword [ebp - 8], 0
jne 0x4df4bd
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x5f1ff8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x5f1ff8
call fcn.004077e0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4df4e0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x5f21f8], 0
mov dword [ebp - 8], 0
jne 0x4df50f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x5f21f8
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x5f21f8
call fcn.004077e0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x4dfb70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4dfb85
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dfb90
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4dfbc0
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 0x4dfc31
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4dfbff
cmp eax, 2
jne 0x4dfc1b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4dfc2b
test ecx, ecx
je 0x4dfc26
test cl, 1
jne 0x4dfc1b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4dfc2b
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 0x4e43e0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5df030
push 0x537140
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ea110]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
test edx, edx
je 0x4e4424
mov dword [edx], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
test edi, edi
je 0x4e4593
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], ebx
je 0x4e4593
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x4e449d
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x4e449d
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
cmovne ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x4e4541
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x20], edi
push 0x10
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4e4514
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4e4514
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4e4514
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4e4514
movzx esi, word [eax]
cmp esi, dword [ebp - 0x1c]
ja 0x4e450c
mov dword [ebp - 0x1c], esi
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x1c], esi
cmp dword [eax + 0x28], 0xfeef04bd
je 0x4e4519
mov edi, 0xd
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4e4546
mov edi, 0xd
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4e4554
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e4564
push eax
call ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x4e456f
push eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4e4593
lea eax, [esi*2 + 4]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e45b0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5df050
push 0x537140
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5ea110]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
cmp dword [sym.imp.KERNEL32.dll_CreateFileW], eax
je 0x4e4615
cmp dword [sym.imp.KERNEL32.dll_CloseHandle], eax
je 0x4e4615
cmp dword [ebp + 8], 2
jae 0x4e4629
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x2c], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4e4692
push 0
push 0
push 0
push 0x1000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x4e4692
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x24], ebx
xor eax, eax
test ebx, ebx
cmovne eax, ebx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e474b
push 0x10
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e4749
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, eax
test ecx, ecx
je 0x4e4749
mov dword [ebp - 4], esi
movzx esi, word [ecx]
mov dword [ebp - 0x2c], esi
lea eax, [esi*2 + 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jbe 0x4e46f4
mov esi, edx
shr esi, 1
sub esi, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], 1
jmp 0x4e46fb
mov dword [ebp - 0x1c], 0
push esi
push ecx
push dword [ebp + 0xc]
call fcn.005330f0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + eax], 0x58324546
cmp dword [ebp - 0x1c], 0
je 0x4e471b
mov word [eax], si
mov esi, 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4e474b
xor esi, esi
test ebx, ebx
je 0x4e4756
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4e4763
push edi
call ebx
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4e476e
push eax
call ebx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e59b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x5ea110]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x4e59e7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00533670
add esp, 0xc
lea eax, [ebp - 0x80c]
test edi, edi
je 0x4e5a1a
push edi
push esi
push 0x5be6f0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4e5a2a
push esi
push 0x5be604
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.00533670
mov ax, word [ebp + 0x18]
add esp, 0xc
mov word [ebp - 0x834], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x864], 0x44
movups xmmword [ebp - 0x81c], xmm0
push eax
lea eax, [ebp - 0x864]
mov dword [ebp - 0x838], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4e59d2
cmp dword [ebp + 0x10], 0
je 0x4e5ab9
push dword [ebp + 0x14]
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x818]
call esi
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4e5af0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5ea110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x4e5bbd
mov eax, dword [0x5c3474]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [str.runas]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.00533670
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4e5bbd
cmp dword [ebp + 0x10], 0
je 0x4e5b9c
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e90b0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5df838
push 0x537140
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ea110]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4e911e
push 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x4e9119
mov ebx, 1
push eax
call edi
push esi
call edi
jmp 0x4e9124
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x4e912d
lea eax, [ebx + 1]
jmp 0x4e9190
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4e9182
push 0x10020
push dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x4e9182
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004e91b8
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret
Function at 0x4ec140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b7d4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5ea110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x5ef3d0]
test esi, esi
jne 0x4ec1a5
push 0x140
call fcn.0050e66a
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4ec196
mov ecx, eax
call fcn.004eba00
mov esi, eax
jmp 0x4ec198
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x5ef3d0], esi
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4ec262
push 1
mov ecx, esi
call fcn.0042b850
push 0xc0
call fcn.0050e66a
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4ec1e5
mov ecx, eax
call fcn.004196d0
mov edi, eax
jmp 0x4ec1e7
xor edi, edi
push 3
push 0x83
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.004193a0
push 2
mov ecx, edi
call fcn.0041a8c0
movaps xmm0, xmmword [0x5a2040]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.0041aa10
push edi
mov ecx, esi
call fcn.0042b870
push 0
mov ecx, esi
call fcn.00429ed0
movaps xmm0, xmmword [0x5a2050]
push 0
push ecx
mov eax, esp
push 0x40000
push SysReAllocStringLen
push 0x5be658
push ecx
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], ecx
mov ecx, esi
call fcn.00428650
push 1
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0042b9c0
push eax
call fcn.0049ad60
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret
Function at 0x4f0880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59be96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5ea110]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4f092c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4f092c
call fcn.0047c8d0
mov esi, eax
jmp 0x4f0a1c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f094f
call fcn.0047c8d0
jmp 0x4f0a0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4f096d
call fcn.0047c8d0
jmp 0x4f0a0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4f098e
mov esi, 0x8007000e
jmp 0x4f0a11
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004ef780
jmp 0x4f09b8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4f09cf
mov esi, 0x8007000e
jmp 0x4f0a11
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4f09ef
call fcn.0047c8d0
jmp 0x4f0a0f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004f0720
mov esi, eax
test edi, edi
je 0x4f0a1c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4f0a40
lea ecx, [ebp - 0x418]
call fcn.004efce0
nop word [eax + eax]
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 - 0x14]
xor ecx, ebp
call fcn.0050ed39
mov esp, ebp
pop ebp
ret 0x10