Function at 0x478987
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
push 0x10
pop esi
push 0x30
lea eax, [esp + 0x9c]
mov dword [esp + 0x40], eax
pop eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.Policy
push dword [ebp + 0xc]
mov dword [esp + 0x48], esi
push dword [ebp + 8]
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ebx
call fcn.0040b597
add esp, 0x18
test eax, eax
je 0x478cf7
push 0x49ed98
call fcn.00409709
mov dword [esp], str.Local
push 0x4d5bf8
push dword [esp + 0x1c]
push dword [ebp + 8]
call fcn.0047889c
push 0x4ba648
push 0x4d5c00
push dword [esp + 0x2c]
push dword [ebp + 8]
call fcn.0047889c
push ebx
push ebx
push str.PolDnDDN
push dword [esp + 0x40]
lea edi, [esp + 0x48]
push dword [ebp + 8]
call fcn.0040be39
add esp, 0x34
test eax, eax
je 0x478a83
mov edi, dword [esp + 0x18]
mov ax, word [edi]
mov word [esp + 0x20], ax
mov ax, word [edi + 2]
mov word [esp + 0x22], ax
mov eax, dword [edi + 4]
add eax, edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
push str.Domain_FQDN_:__wZ_n
call fcn.00409709
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push str.PolRevision
push dword [esp + 0x20]
lea edi, [esp + 0x2c]
push dword [ebp + 8]
call fcn.0040be39
add esp, 0x14
test eax, eax
je 0x478cce
mov edi, dword [esp + 0x1c]
movzx eax, word [edi]
push eax
movzx eax, word [edi + 2]
push eax
push str._nPolicy_subsystem_is_:__hu._hu_n
call fcn.00409709
add esp, 0xc
cmp word [edi], 9
mov eax, str.PolEKList
ja 0x478ad1
mov eax, str.PolSecretEncryptionKey
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
push dword [esp + 0x20]
lea edi, [esp + 0x28]
push dword [ebp + 8]
call fcn.0040be39
add esp, 0x14
test eax, eax
je 0x478c81
mov eax, dword [esp + 0x1c]
cmp word [eax], 9
jbe 0x478bd3
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x18]
push 0
push dword [esp + 0x10]
push esi
call fcn.00479c01
add esp, 0xc
test eax, eax
je 0x478c77
push dword [esi + 0x3c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x478c77
push dword [esi + 0x3c]
add esi, 0x4c
push esi
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [ebx + 0x18]
push str.LSA_Key_s__:__u__default
call fcn.00409709
lea eax, [ebx + 4]
push eax
call fcn.0040f124
add esp, 0xc
push 0x49ed98
call fcn.00409709
and dword [esp + 0x10], 0
xor esi, esi
pop ecx
cmp dword [ebx + 0x18], esi
jbe 0x478c77
push dword [esp + 0xc]
lea edi, [ebx + esi + 0x1c]
push str.____02u_
call fcn.00409709
push edi
call fcn.0040f124
add esp, 0xc
push 0x4c91b8
call fcn.00409709
pop ecx
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
xor eax, eax
call fcn.0040efba
push 0x49ed98
call fcn.00409709
mov eax, dword [edi + 0x14]
add esp, 0xc
inc dword [esp + 0xc]
lea esi, [esi + eax + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 0x18]
jb 0x478b79
jmp 0x478c77
lea eax, [esp + 0x40]
push eax
call sub.cryptdll.dll_MD5Init
push esi
push dword [ebp + 0x18]
lea eax, [esp + 0x48]
push eax
call sub.cryptdll.dll_MD5Update
mov edi, dword [esp + 0x18]
add edi, 0x3c
mov dword [esp + 0xc], 0x3e8
push esi
push edi
lea eax, [esp + 0x48]
push eax
call sub.cryptdll.dll_MD5Update
dec dword [esp + 0xc]
jne 0x478bfa
lea eax, [esp + 0x40]
push eax
call sub.cryptdll.dll_MD5Final
mov eax, dword [esp + 0x18]
add eax, 0xc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x2c]
push eax
call sub.ADVAPI32.dll_SystemFunction033
test eax, eax
jl 0x478c77
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x478c77
mov esi, dword [esp + 0x18]
add esi, 0x1c
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str.LSA_Key_:
movsd dword es:[edi], dword [esi]
call fcn.00409709
pop ecx
push 0x10
push dword [esp + 0x14]
xor eax, eax
call fcn.0040efba
push 0x49ed98
call fcn.00409709
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x478c95
cmp dword [esp + 0x10], ebx
je 0x478cce
cmp dword [ebp + 0x1c], 0
je 0x478cb4
push dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00478d00
jmp 0x478ccb
push dword [ebp + 0x20]
push dword [esp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00478f04
add esp, 0x18
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
call fcn.0040be08
pop ecx
test ebx, ebx
je 0x478ce6
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], 0
je 0x478cf7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret