Function at 0x64847990
Capabilities:
Encrypt or decrypt via wincrypt
Enumerate process modules
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov eax, 0x31238
mov ebp, esp
call fcn.648513a0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
test eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
jne 0x648479c1
mov ebx, 0xffffffff
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [eax], 0x8139fa27
jne 0x648479ad
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x31200], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x648479f5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
add eax, 0x1f4
cmp dword [ebp - 0x31200], eax
ja 0x64847ebb
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x64847eb4
mov eax, dword [edi + 0x18]
add dword [ebp + 0xc], eax
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 0x31200], edx
jbe 0x64847eb4
mov ecx, dword [ebp - 0x31200]
mov ebx, 0xffffffff
cmp dword [edi], 0x8139fa27
mov dword [edi + 0x18], ecx
jne 0x648479b2
lea ebx, [ebp - 0x311cc]
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x17318
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x6487cd8f
mov dword [esp + 4], 0x531
mov dword [esp], 0x89fd45aa
call dword [edi + 0x20]
mov edx, dword [ebp + 8]
lea edi, [ebp - 0x19eb4]
sub esp, 0x18
mov dword [ebp - 0x311f0], eax
mov dword [esp + 0x14], 0x11d28
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x6487cd8f
mov dword [esp + 4], 0x511
mov dword [esp], 0x89fd45aa
call dword [edx + 0x20]
mov edx, dword [ebp - 0x311f0]
sub esp, 0x18
test edx, edx
jle 0x648479b2
mov ecx, dword [ebp + 8]
test eax, eax
cmovs eax, ebx
mov dword [ebp - 0x311f4], eax
imul edx, dword [ebp - 0x311f0], 0x8c
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
add eax, 0x42
add eax, edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x31204], eax
add eax, 0x21
mov dword [ebp - 0x311dc], eax
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp - 0x311dc]
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], edi
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_memmove
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.msvcrt.dll_strchr
mov dword [esp + 8], 0xa
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x311f0]
mov dword [esp], eax
call sub.msvcrt.dll__ltoa
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x311cc]
lea ecx, [ebp - 0x64]
mov word [eax + ebx], 9
mov dword [ebp - 0x311e0], edx
mov dword [ebp - 0x311f8], 0
mov dword [ebp - 0x3120c], ecx
jmp 0x64847b9e
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
add dword [ebp - 0x311f8], 1
mov ecx, dword [ebp - 0x311f8]
add dword [ebp - 0x311e0], 0x5f
cmp dword [ebp - 0x311f0], ecx
je 0x6484829d
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov edi, dword [ebp - 0x311e0]
mov ecx, dword [edi + 0x23]
mov dword [esp + 8], 0xa
mov ebx, eax
mov eax, 0x80008001
mov dword [esp + 4], ebx
mul ecx
shr edx, 0xf
mov eax, edx
shl eax, 0x10
sub eax, edx
sub ecx, eax
mov dword [esp], ecx
mov dword [ebp - 0x311e8], ecx
call sub.msvcrt.dll__ltoa
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
imul esi, dword [ebp - 0x311f8], 0x5f
lea ecx, [esi + ebp - 0x311a3]
mov ebx, eax
mov dword [esp + 4], ecx
mov dword [ebp - 0x311ec], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov edi, dword [ebp - 0x3120c]
mov ecx, 9
cld
lea edx, [ebp - 0x311cc]
lea esi, [edx + esi]
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x818c]
mov dword [esp + 0x14], 0x800
lea edi, [ebp - 0x818c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
lea ecx, [ebp - 0x18]
sub esp, 0x18
mov dword [esp + 0xc], ecx
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x400
call sub.OLEAUT32.DLL_VarDateFromStr
lea eax, [ebp - 0x64]
sub esp, 0x10
fld qword [ebp - 0x18]
fstp qword [esp]
mov dword [esp + 8], eax
call fcn.64847680
mov eax, dword [ebp - 0x64]
mov dword [esp], ebx
mov dword [esp + 4], str._04d_02d_02d_02d_02d_02d
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov edx, dword [ebp - 0x311e0]
mov dword [esp + 8], 0xa
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll__ltoa
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov ecx, dword [ebp - 0x311e0]
mov dword [esp + 8], 0xa
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll__ltoa
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strlen
mov word [eax + ebx], 9
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x194]
mov ebx, eax
test edi, edi
je 0x64847b70
cmp dword [ebp - 0x311e8], 0x3ea
jne 0x64847b70
mov eax, dword [ebp - 0x311e0]
lea edx, [ebp - 0x19eb4]
mov esi, 0xffffffff
cmp dword [eax + 0x14], 1
jne 0x64847b70
add esi, 1
cmp dword [ebp - 0x311f4], esi
jle 0x64847b70
mov ecx, dword [ebp - 0x311e0]
mov eax, dword [edx]
add edx, 0x49
cmp eax, dword [ecx + 0x18]
jne 0x64847dfe
lea edi, [ebp - 0x818c]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.msvcrt.dll_memset
lea eax, [esi + esi*8]
mov edx, dword [ebp + 8]
lea eax, [esi + eax*8]
mov esi, dword [ebp + eax - 0x19e6f]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
sub esi, 0x8000
mov dword [esp], esi
call dword [edx + 0x198]
sub esp, 0xc
test eax, eax
je 0x64847e7a
cmp byte [ebp - 0x818c], 0
jne 0x64848395
mov edi, dword [ebp - 0x311ec]
lea eax, [ebp - 0x818c]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.sadummQ___s__pid__ld__n
mov dword [esp], eax
mov dword [esp + 8], edi
call sub.msvcrt.dll_sprintf
lea edx, [ebp - 0x818c]
mov dword [esp], edx
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
jmp 0x64847b70
xor ebx, ebx
jmp 0x648479b2
mov ecx, dword [ebp - 0x31200]
lea ebx, [ebp - 0x18c]
mov dword [edx + 0x14], ecx
mov eax, dword [str.mainframe.dll]
mov dword [ebp - 0x18c], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
mov dword [ebp - 0x3e], eax
mov eax, dword [0x6487cdc5]
mov dword [ebp - 0x3a], eax
mov eax, dword [0x6487cdc9]
mov dword [ebp - 0x36], eax
movzx eax, word [0x6487cdcd]
mov word [ebp - 0x32], ax
mov eax, dword [str.systemmsg.dll]
mov dword [ebp - 0x64], eax
mov eax, dword [0x6487cdd3]
mov dword [ebp - 0x60], eax
mov eax, dword [0x6487cdd7]
mov dword [ebp - 0x5c], eax
movzx eax, word [0x6487cddb]
mov word [ebp - 0x58], ax
mov eax, dword [str.appmisc.dll]
mov dword [ebp - 0x24], eax
mov eax, dword [0x6487cde1]
mov dword [ebp - 0x20], eax
mov eax, dword [0x6487cde5]
mov dword [ebp - 0x1c], eax
mov eax, dword [str.apputil.dll]
mov dword [ebp - 0x30], eax
mov eax, dword [0x6487cded]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x6487cdf1]
mov dword [ebp - 0x28], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x311fc], eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
jne 0x648480ed
mov dword [ebp - 0x311d4], 0
mov dword [ebp - 0x311d8], 0
mov dword [ebp - 0x311e4], 0
mov edx, dword [ebp - 0x311fc]
lea ebx, [ebp - 0x818c]
lea edi, [ebp - 0x7d8c]
mov dword [esp], edx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x311e4]
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memmove
mov edx, dword [ebp + 8]
jmp 0x64847fd7
add edx, 4
mov eax, dword [edx + 0x19c]
test eax, eax
je 0x64848011
mov eax, 0xffffffff
add eax, 1
cmp dword [ebp - 0x311d4], eax
jle 0x64847fd4
mov ecx, dword [ebp + eax*4 - 0x818c]
test ecx, ecx
je 0x64847fe6
cmp ecx, dword [edx + 0x19c]
jne 0x64847fe6
mov dword [ebp + eax*4 - 0x818c], 0
jmp 0x64847fe6
mov ebx, 0xffffffff
lea esi, [ebp - 0x19eb4]
add ebx, 1
cmp dword [ebp - 0x311d4], ebx
jle 0x64848092
mov edi, dword [ebp + ebx*4 - 0x818c]
test edi, edi
je 0x6484801c
mov dword [esp], esi
call fcn.64844140
mov eax, dword [str.sadummQh.dll]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov eax, dword [str.sadummQh.dll]
mov dword [esp + 4], eax
mov eax, dword [ebp + ebx*4 - 0x818c]
mov dword [esp], eax
call fcn.64842d20
sub esp, 8
test eax, eax
jne 0x6484801c
mov eax, dword [ebp + ebx*4 - 0x818c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.648431b0
sub esp, 0x10
jmp 0x6484801c
mov eax, dword [ebp - 0x311e4]
lea edx, [ebp - 0x7d8c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
add eax, 0x19c
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [ebp - 0x311d4]
mov eax, 0x100
mov ebx, dword [ebp + 8]
sub eax, dword [ebp - 0x311d8]
mov dword [esp + 4], 0
shl eax, 2
lea edx, [ebx + ecx*4 + 0x19c]
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.msvcrt.dll_memset
jmp 0x648479f5
mov dword [ebp - 0x311d4], 0
jmp 0x6484811c
mov ebx, dword [ebp - 0x311fc]
lea ecx, [ebp - 0x18c]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x64848281
cmp dword [ebp - 0x184], 4
jbe 0x648480f9
mov eax, dword [ebp - 0x184]
lea edi, [ebp - 0x311cc]
mov dword [ebp - 0x311cc], 0x224
mov dword [esp], 8
mov dword [esp + 4], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_Module32First
sub esp, 8
test eax, eax
je 0x64848271
xor ebx, ebx
jmp 0x6484819f
test bl, 2
nop
je 0x64848218
test bl, 4
je 0x648481f4
test bl, 8
nop
je 0x648481d3
lea edi, [ebp - 0x311cc]
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_Module32Next
sub esp, 8
test eax, eax
je 0x6484823c
lea eax, [ebp - 0x311ac]
mov dword [esp], eax
call sub.msvcrt.dll__strlwr
test bl, 1
jne 0x6484816b
lea edx, [ebp - 0x3e]
lea ecx, [ebp - 0x311ac]
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_strstr
mov edx, ebx
or edx, 1
test eax, eax
cmovne ebx, edx
jmp 0x6484816b
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x311ac]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.msvcrt.dll_strstr
mov edx, ebx
or edx, 8
test eax, eax
cmovne ebx, edx
jmp 0x64848182
lea edx, [ebp - 0x311ac]
lea eax, [ebp - 0x24]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strstr
mov edx, ebx
or edx, 4
test eax, eax
cmovne ebx, edx
jmp 0x6484817b
lea eax, [ebp - 0x311ac]
lea edi, [ebp - 0x64]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_strstr
mov edx, ebx
or edx, 2
test eax, eax
cmovne ebx, edx
jmp 0x64848176
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
cmp ebx, 0xf
jne 0x648480f9
mov edx, dword [ebp - 0x311d4]
mov eax, dword [ebp - 0x184]
mov dword [ebp + edx*4 - 0x818c], eax
add edx, 1
mov dword [ebp - 0x311d4], edx
jmp 0x648480f9
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x648480f9
mov edi, dword [ebp - 0x311d4]
mov eax, edi
shl eax, 2
mov dword [ebp - 0x311d8], edi
mov dword [ebp - 0x311e4], eax
jmp 0x64847f9c
mov dword [esp], ebx
mov dword [esp + 4], 0
call sub.msvcrt.dll_strchr
mov edi, dword [ebp - 0x31204]
mov dword [esp + 8], edi
mov ebx, eax
sub ebx, dword [ebp - 0x31204]
lea eax, [ebx - 0x21]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x311dc]
mov dword [esp], eax
call fcn.64848d40
test ebx, ebx
mov byte [edi + 0x20], 9
jle 0x648479b2
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
cmp dword [edx], 0x8139fa27
je 0x648482f8
mov ebx, 0xfffffffc
jmp 0x648479b2
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 8]
test esi, esi
je 0x648483a6
mov edi, dword [ebp - 0x31204]
lea eax, [ebx + 0x10]
mov edx, dword [ebp + 8]
lea ebx, [ebp - 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptEncrypt
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x818c]
mov ebx, dword [ebp + 8]
sub esp, 0x1c
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.648412f0
mov dword [esp], edi
mov ebx, eax
cmp ebx, 0xffffffff
lea eax, [eax - 5]
cmovle ebx, eax
call sub.msvcrt.dll_free
jmp 0x648479b2
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
jmp 0x64847b70
mov ebx, 0xfffffffb
jmp 0x648479b2