joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460538
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, eax
push edi
lea edi, [esi + 0x24]
push 0x67
mov eax, edi
call fcn.00461281
test eax, eax
je 0x46055b
push 0x67
mov eax, edi
call fcn.004507e3
mov dword [0x5566dc], eax
xor ebx, ebx
push ebx
push 0x1e
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push ebx
push 0x64
mov eax, edi
call fcn.0045085b
push 1
push 0xc8
mov eax, edi
call fcn.0045085b
push ebx
call fcn.00460bf2
push ebx
push ebx
push esi
push 0x46051f
push ebx
push ebx
call fcn.004f1827
add esp, 0x18
pop edi
mov dword [esi + 0x91c], eax
pop esi
pop ebx
ret

Function at 0x460879
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [edi]
lea esi, [ebp - 4]
call fcn.00428d0e
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [edi]
push 3
pop esi
cmp dword [eax - 0xc], esi
jl 0x46093a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4608bc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 1
je 0x46093a
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040608d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 4]
setne bl
add eax, 0xfffffff0
call fcn.004058c3
test bl, bl
je 0x4608e9
push 2
pop eax
jmp 0x46093d
push edi
call fcn.004607ed
test eax, eax
pop ecx
je 0x4608f8
mov eax, esi
jmp 0x46093d
mov ecx, esi
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040608d
push dword [eax]
call fcn.0045ead9
mov ebx, eax
mov eax, dword [ebp - 4]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.004058c3
test bl, bl
je 0x460927
push 4
jmp 0x4608e6
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x460936
push 5
jmp 0x4608e6
xor eax, eax
jmp 0x46093d
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x460941
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x50dc36
call fcn.0050b948
sub esp, 0x44c
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x452]
push esi
push eax
mov word [ebp - 0x454], si
call fcn.004ee340
add esp, 0xc
lea eax, [ebp - 0x454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push 0x11
push dword [ebx + 4]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [0x55ba6c]
mov edi, 0x55ba6c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
push 0x105
lea esi, [ebp - 0x18]
call fcn.004059ff
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax - 8], ecx
jge 0x4609ce
push 0x80070057
call fcn.004059e7
mov dword [eax - 0xc], ecx
mov word [eax], cx
push 0x540c48
lea eax, [ebp - 0x18]
push eax
call fcn.00405d59
mov eax, dword [ebx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x18]
mov dword [ebp - 0x3c], eax
call fcn.0042962e
mov dword [ebp - 0x38], eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x34], 0x540c54
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x460adb
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call fcn.004ee340
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [0x55ba6c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00428d0e
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040642a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [ebx + 0x92c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.0040642a
mov esi, dword [ebp - 0x14]
push esi
push dword [ebx + 0xa5c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [ebp - 0x14]
call fcn.00460879
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.004058c3
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058c3
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x460e5f
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x50cf93
call fcn.0050b948
push ecx
push ecx
push esi
push edi
call fcn.00467041
lea esi, [ebp - 0x10]
call fcn.00467395
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
add esi, 0xa84
mov edi, esi
call fcn.00404ead
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x460ee1
push 0
push 0x26
push 0x104
call fcn.004059ff
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x460ecb
push eax
call fcn.004eecb4
pop ecx
mov edx, esi
call fcn.004059bb
test edi, edi
jne 0x460ee1
push 0x540cfc
push esi
call fcn.00405d59
mov ecx, esi
call fcn.00408e86
push 0x53b6ec
push esi
call fcn.00405ed8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x92c]
push dword [eax - 0xc]
push eax
mov eax, esi
call fcn.0040642a
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x460f17
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, eax
and dword [esi + 0x520], 0
cmp dword [esp + 8], 0x61
je 0x460f2f
cmp dword [esp + 8], 0x41
jne 0x460f63
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
jns 0x460f63
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
add esi, 0xa5c
push dword [esi]
call edi
push 0
push 0
push 0xb7
push dword [esi]
call edi
pop edi
pop esi
ret 4

Function at 0x460f67
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x50cf93
call fcn.0050b948
push ecx
mov eax, dword [0x55ba6c]
push esi
push edi
mov ecx, 0x55ba6c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push 0x105
lea esi, [ebp - 0x10]
call fcn.004059ff
push 0x104
push eax
push dword [ebx + 0xa5c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x460fb5
xor eax, eax
jmp 0x460fbc
push esi
call fcn.004eecb4
pop ecx
lea edx, [ebp - 0x10]
call fcn.004059bb
lea edi, [ebp - 0x10]
call fcn.00460879
push 0
push eax
push 0x46c
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esi - 0x10]
call fcn.004058c3
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x462f39
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x50d65b
call fcn.0050b948
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov ebx, ecx
call fcn.00405b3e
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00405b3e
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00405b3e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0046306c
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058c3
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004058c3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x462fd6
add eax, 0xfffffff0
call fcn.004058c3
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov eax, dword [0x55ba6c]
push edi
mov ecx, 0x55ba6c
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x10], edi
mov eax, ebx
mov byte [ebp - 4], 7
call fcn.0040892f
test eax, eax
jbe 0x46304b
lea eax, [ebp - 0x10]
lea edi, [ebp + 0x10]
call fcn.00404ead
mov eax, edi
push eax
call fcn.00408df2
pop ecx
mov eax, ebx
call fcn.0040892f
cmp esi, eax
jb 0x46301d
call fcn.004edcce
mov eax, dword [ebx + 4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x10]
call fcn.0040642a
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46304f
mov eax, ebx
inc esi
call fcn.0040892f
cmp esi, eax
jb 0x462ff9
mov bl, 1
jmp 0x463051
xor bl, bl
lea eax, [edi - 0x10]
call fcn.004058c3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058c3
mov al, bl
pop edi
jmp 0x462fc6

Function at 0x463400
Capabilities:
Delete file

Disassembly:
mov eax, 0x50e41d
call fcn.0050b948
sub esp, 0x10
mov eax, dword [0x55ba6c]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x55ba6c
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.004634bd
mov ebx, eax
test ebx, ebx
jne 0x463451
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x4634a1
push 0x28
call fcn.00415169
test eax, eax
pop ecx
je 0x463465
push eax
call fcn.004249bf
jmp 0x463467
xor eax, eax
test eax, eax
mov esi, eax
je 0x4634a1
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x46349a
xor esi, esi
lea eax, [edi - 0x10]
call fcn.004058c3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x4634ae
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4634b8
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x46347f
Function at 0x46359e
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call fcn.004ee340
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x463646
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x46363f
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x46363f
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4641e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x50cf4f
call fcn.0050b948
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x554fdc]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x46423d
call fcn.00463f0c
mov esi, eax
jmp 0x46433e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x46425a
call fcn.00463f0c
jmp 0x464333
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x464250
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x4642a0
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x464296
lea eax, [ebp - 0x424]
call fcn.004652d1
mov eax, 0x8007000e
jmp 0x464359
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00464377
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x4642c4
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00465266
jmp 0x4642d0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x4642eb
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x4642fc
mov esi, 0x8007000e
jmp 0x464335
call dword [0x554fdc]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x464250
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0046439c
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x464357
lea eax, [ebp - 0x424]
call fcn.004652d1
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x465287
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x46529a
push 0x80004005
call fcn.004059e7
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4652a1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x46534f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x465416
xor eax, eax
cmp dword [ebp - 8], esi
je 0x465398
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x465416
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x4653ec
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.0046534f
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x465429
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x4653c0
cmp dword [ebp - 8], esi
je 0x465406
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x465420
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x465433
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x465422
Function at 0x466e2c
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
mov eax, 0x50cede
call fcn.0050b948
sub esp, 0x78
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
push edi
push 0x80
push 3
push edi
push 7
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x466e69
call fcn.00463f0c
jmp 0x466e6e
mov dword [ebp - 0x14], eax
xor eax, eax
cmp eax, edi
jge 0x466e87
cmp dword [ebp - 0x14], edi
je 0x466e80
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x466f8d
mov ebx, 0x1000
push ebx
call fcn.004eafbb
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x84], 0x67452301
mov dword [ebp - 0x80], 0xefcdab89
mov dword [ebp - 0x7c], 0x98badcfe
mov dword [ebp - 0x78], 0x10325476
mov esi, dword [ebp - 0x14]
pop ecx
push edi
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x466edc
call fcn.00463f0c
jmp 0x466ede
xor eax, eax
cmp eax, edi
jl 0x466ef9
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x466f10
push dword [ebp - 0x18]
lea esi, [ebp - 0x84]
call fcn.0042df51
jmp 0x466ebd
push dword [ebp - 0x18]
call fcn.004ee335
cmp esi, edi
pop ecx
je 0x466e80
push esi
jmp 0x466e7a
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x84]
call fcn.0042dfe7
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
movzx eax, byte [ebp - 0x21]
push eax
movzx eax, byte [ebp - 0x22]
push eax
movzx eax, byte [ebp - 0x23]
push eax
movzx eax, byte [ebp - 0x24]
push eax
movzx eax, byte [ebp - 0x25]
push eax
movzx eax, byte [ebp - 0x26]
push eax
movzx eax, byte [ebp - 0x27]
push eax
movzx eax, byte [ebp - 0x28]
push eax
movzx eax, byte [ebp - 0x29]
push eax
movzx eax, byte [ebp - 0x2a]
push eax
movzx eax, byte [ebp - 0x2b]
push eax
movzx eax, byte [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
push 0x541790
call fcn.004063a1
add esp, 0x48
cmp esi, edi
je 0x466f8a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x468623
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x468645
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
leave
ret
push edi
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push 0x32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, esi
jne 0x4686c6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x431
je 0x46868c
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
jmp 0x468642
push 2
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x4686a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46867c
push dword [ebp + 0x14]
push esi
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 8]
push 1
push 2
push 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x4686a0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x46867e

Function at 0x4686e2
Capabilities:
Delete service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4686fc
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push esi
push 0x10000
push dword [esp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x46872b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x46874e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call edi
push esi
call edi
mov eax, ebx
jmp 0x468727
push esi
call ebx
xor esi, esi
jmp 0x468722
Function at 0x468755
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0x40000000
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x46877a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4687c7
push ebx
push esi
push 0x14
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x4687a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 4]
jmp 0x4687ed
push 6
mov dword [ebp - 0x20], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4687ca
cmp dword [ebp - 0x1c], 4
jne 0x4687ca
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4687f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x4687c5
push ebx
call esi
jmp 0x46879c

Function at 0x4687f8
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x46881d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x468846
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x468849
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x468881
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x468844
push 6
mov dword [ebp - 0x24], esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
rep stosd dword es:[edi], eax
jmp 0x4688a7
cmp dword [ebp - 0x20], 1
je 0x4688bb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
test eax, eax
jne 0x468899
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 8]
jmp 0x468839