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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
push esi
push edi
mov eax, edx
mov dword [esp + 0x34], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
and dword [esp + 0x40], 0
push 0x10
pop ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
xor edi, edi
push 0x30
lea ecx, [esp + 0xac]
mov dword [esp + 0x50], ecx
xor ebx, ebx
pop ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
xor ecx, ecx
and dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ecx
push str.Policy
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.0040bb68
add esp, 0x10
test eax, eax
je 0x47eee8
push 0x4c75d0
call fcn.00409cda
mov edx, dword [esp + 0x14]
mov ecx, esi
mov dword [esp], str.Local
push 0x4fe0e8
call fcn.0047ea68
mov edx, dword [esp + 0x18]
mov ecx, esi
push 0x4e3120
push 0x4fe0f0
call fcn.0047ea68
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
add esp, 0x10
push edi
push eax
push ecx
push edi
push str.PolDnDDN
mov ecx, esi
call fcn.0040c41d
add esp, 0x14
test eax, eax
je 0x47ec71
mov esi, dword [esp + 0x14]
mov ax, word [esi]
mov word [esp + 0x24], ax
mov ax, word [esi + 2]
mov word [esp + 0x26], ax
mov eax, dword [esi + 4]
add eax, esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push str.Domain_FQDN_:__wZ_n
call fcn.00409cda
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 0
push eax
push ecx
push 0
push str.PolRevision
mov ecx, esi
call fcn.0040c41d
add esp, 0x14
test eax, eax
je 0x47eec7
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx]
push eax
movzx eax, word [ecx + 2]
push eax
push str._nPolicy_subsystem_is_:__hu._hu_n
call fcn.00409cda
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x28]
mov eax, str.PolEKList
push 0
push 9
pop edx
cmp word [ecx], dx
mov edx, str.PolSecretEncryptionKey
mov ecx, esi
cmovbe eax, edx
mov edx, dword [esp + 0x20]
push eax
call fcn.0040c41d
add esp, 0x14
test eax, eax
je 0x47ee89
mov eax, dword [esp + 0x1c]
push 9
pop ecx
cmp word [eax], cx
jbe 0x47edd1
push dword [ebp + 0x10]
mov esi, dword [esp + 0x18]
mov ecx, esi
mov edx, dword [esp + 0x24]
push 0
call fcn.0047feda
pop ecx
pop ecx
test eax, eax
je 0x47ee7e
push dword [esi + 0x3c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x47ee7e
push dword [esi + 0x3c]
lea ecx, [esi + 0x4c]
push ecx
push ebx
call fcn.0049fa90
add esp, 0xc
push dword [ebx + 0x18]
push str.LSA_Key_s__:__u__default
call fcn.00409cda
lea ecx, [ebx + 4]
call fcn.0040f8a2
push 0x4c75d0
call fcn.00409cda
and dword [esp + 0x3c], edi
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x20], ecx
cmp dword [ebx + 0x18], ecx
jbe 0x47ee7e
mov edi, dword [esp + 0x30]
push edi
push str.____02u_
lea esi, [ebx + ecx]
call fcn.00409cda
lea ecx, [esi + 0x1c]
call fcn.0040f8a2
push 0x4f1b10
call fcn.00409cda
mov edx, dword [esi + 0x30]
lea ecx, [esi + 0x34]
add esp, 0xc
push 0
call fcn.0040f762
mov dword [esp], 0x4c75d0
call fcn.00409cda
pop ecx
mov ecx, dword [esp + 0x20]
inc edi
add ecx, 0x18
add ecx, dword [esi + 0x30]
mov dword [esp + 0x20], ecx
cmp edi, dword [ebx + 0x18]
jb 0x47ed77
mov edi, dword [esp + 0x18]
jmp 0x47ee7a
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
push 0x10
push dword [ebp + 0x10]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.cryptdll.dll_MD5Update]
mov edi, dword [esp + 0x14]
mov esi, 0x3e8
add edi, 0x3c
push 0x10
push edi
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.cryptdll.dll_MD5Update]
sub esi, 1
jne 0x47edf8
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov esi, dword [esp + 0x14]
lea eax, [esi + 0xc]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
mov edi, ebx
test eax, eax
js 0x47ee7e
push 0x10
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x47ee7e
add esi, 0x1c
push str.LSA_Key_:
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00409cda
mov edi, dword [esp + 0x1c]
pop ecx
push 0
push 0x10
pop edx
mov ecx, edi
call fcn.0040f762
mov dword [esp], 0x4c75d0
call fcn.00409cda
pop ecx
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x2c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x47ee9b
test edi, edi
je 0x47eec7
cmp dword [ebp + 0x14], 0
mov ecx, esi
mov edx, dword [esp + 0x10]
je 0x47eeb6
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047eef1
jmp 0x47eec4
push dword [ebp + 0x18]
push edi
push ebx
push dword [esp + 0x40]
call fcn.0047f10e
add esp, 0x10
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.0040c3ef
test ebx, ebx
je 0x47eedd
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x47eee8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret