Function at 0x405440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov dword [ebp - 0x20], 0
mov eax, dword [0x76655c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x76656c]
mov dword [ebp - 8], ecx
mov edx, dword [0x766540]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], 0x387
mov dword [ebp - 0x24], 0
mov eax, dword [0x76655c]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x76654c]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x30], 0x351
mov dword [ebp - 0x14], 0x183
mov edx, dword [ebp - 0xc]
sub edx, 0x454
mov dword [ebp - 8], edx
movzx eax, word [ebp - 0x18]
mov ecx, dword [ebp - 8]
sub ecx, eax
and ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 4]
xor edx, dword [ebp - 0x28]
or ecx, edx
mov eax, dword [ebp - 8]
add eax, 0x598
or ecx, eax
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [ebp - 4]
mov edx, dword [ebp - 0x38]
sub edx, ecx
movzx eax, byte [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
je 0x4054e9
cmp dword [ebp - 0x3c], 0
je 0x4055dc
mov dword [ebp - 0x28], 0xac5
mov edx, 0x22b
sub edx, dword [ebp - 8]
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
lea ecx, [edx + eax - 0x213]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
or edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x24]
or edx, eax
or edx, dword [ebp - 0x14]
or edx, dword [ebp - 8]
movzx ecx, word [ebp - 0x14]
add ecx, dword [ebp - 4]
movzx eax, byte [ebp - 4]
add eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x18]
and ecx, eax
or edx, ecx
movzx ecx, byte [ebp - 4]
or edx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x28]
add edx, 3
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
or eax, 0x27a
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
and edx, 0
movzx eax, word [ebp - 4]
mov esi, dword [ebp - 0xc]
sub esi, eax
movzx ecx, byte [ebp - 0x10]
shl esi, cl
or edx, esi
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0xc]
movzx eax, byte [ebp - 8]
add ecx, eax
or edx, ecx
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x28], 0xace
jb 0x405508
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x34]
ja 0x405590
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x20]
jb 0x405598
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 4]
jb 0x4055a8
push str.hrygtamtetathnchs
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x20], eax
jmp 0x4055dc
mov ecx, dword [ebp - 4]
or ecx, 0x926
mov edx, 0x6ea
sub edx, dword [ebp - 0x34]
or ecx, edx
or ecx, dword [ebp - 0x24]
xor eax, eax
sub eax, dword [ebp - 0x20]
and eax, dword [ebp - 0x38]
or ecx, eax
or ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x38]
add edx, 0x57c
or ecx, edx
mov byte [ebp - 0x3c], cl
call fcn.00405680
cmp dword [ebp - 0x18], 0
je 0x40560d
mov eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x24]
mov word [ebp - 0xc], ax
push str.eeaegektriwcu
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [ebp - 0x10], eax
jmp 0x40562c
imul ecx, dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0xc]
and ecx, edx
mov eax, dword [ebp - 0x14]
add eax, 0x45
and ecx, eax
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x30]
or ecx, edx
mov dword [ebp - 0x18], ecx
movzx eax, word [ebp - 8]
xor ecx, ecx
sub ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x30]
or eax, ecx
mov word [ebp - 4], ax
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 4], eax
movzx ecx, word [ebp - 0x1c]
cmp dword [ebp - 0xc], ecx
jne 0x405675
movzx edx, word [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 8]
and edx, eax
mov dword [ebp - 0x30], edx
push str.atfaktbehns
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x30], eax
pop esi
mov esp, ebp
pop ebp
ret