Function at 0x455010
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4761bc
mov eax, dword fs:[0]
push eax
sub esp, 0xfd8
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0xfd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4921c0]
xor eax, esp
push eax
lea eax, [esp + 0xfec]
mov dword fs:[0], eax
mov edi, dword [esp + 0x100c]
mov eax, dword [esp + 0x1000]
mov ebp, dword [esp + 0xffc]
lea ecx, [esp + 0x42c]
mov dword [esp + 0x84], ebp
sub ecx, eax
mov esi, 1
mov dl, byte [eax]
mov byte [ecx + eax], dl
add eax, esi
test dl, dl
jne 0x455075
mov eax, dword [ebp + 0x264]
cdq
idiv dword [ebp + 0x284]
mov dword [esp + 0x58], eax
cmp dword [ebp + 0x278], esi
jne 0x4550a2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x58], eax
lea eax, [eax + eax*2]
mov ecx, dword [ebp + 0x268]
lea eax, [eax*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
xor ebx, ebx
sar eax, 2
add eax, eax
add eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x2e8], ebx
mov dword [esp + 0x298], esi
mov dword [esp + 0x294], ebx
mov dword [esp + 0x308], ebx
mov dword [esp + 0x2ac], ebx
mov dword [esp + 0x310], 0xffffffff
mov dword [esp + 0x30c], 3
mov dword [esp + 0x314], ebx
mov dword [esp + 0x318], esi
mov dword [esp + 0x31c], ebx
mov dword [esp + 0x324], ebx
mov dword [esp + 0x320], ebx
mov byte [esp + 0x94], bl
lea esi, [esp + 0x94]
mov dword [esp + 0xff4], ebx
call fcn.004010f0
push ebx
call dword [0x478058]
mov ecx, dword [esp + 0x1008]
mov dword [esp + 0x2ac], eax
lea esi, [edi + edi*2]
lea ecx, [ecx + ecx*2]
mov eax, esi
lea ebx, [esp + 0x2b0]
mov dword [esp + 0x88], ecx
call fcn.00466ec0
mov edx, dword [esp + 0x2f4]
mov eax, dword [esp + 0x2ac]
push edx
push eax
call dword [0x478054]
mov ecx, dword [esp + 0x2ac]
push 0xffffff
push ecx
call dword [0x478038]
mov edx, dword [esp + 0x2ac]
push 2
push edx
call dword [0x478044]
mov eax, dword [esp + 0x2ac]
push 0
push eax
call dword [0x478040]
cmp dword [esp + 0x1024], 3
mov dword [esp + 0x3c], 0
jne 0x4551f1
mov ecx, dword [esp + 0x1008]
imul ecx, edi
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0040823c
add esp, 4
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x1004]
cmp ecx, 0xffffffff
jne 0x45522f
cmp dword [esp + 0x1024], 3
je 0x45522f
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
xor ebx, ebx
push edx
push eax
push ebx
push ebx
mov eax, 0xffffff
mov edi, ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x5c], ebx
call fcn.00401f10
jmp 0x455279
mov eax, ecx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
and ecx, 0x8000ffff
mov dword [esp + 0x4c], eax
jns 0x455251
dec ecx
or ecx, 0xffff0000
inc ecx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x54], eax
mov eax, ecx
and eax, 0x800000ff
jns 0x455273
dec eax
or eax, 0xffffff00
inc eax
mov dword [esp + 0x50], eax
xor ebx, ebx
mov eax, dword [esp + 0x1020]
lea edx, [esp + 0x32c]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x455290
mov eax, dword [esp + 0x1018]
mov edi, dword [esp + 0x1024]
neg eax
sbb eax, eax
and eax, 0x2bc
cmp edi, 1
je 0x4552f4
cmp edi, 2
je 0x4552f4
cmp edi, 3
je 0x45532f
lea ecx, [esp + 0x32c]
push ecx
push 1
push ebx
push ebx
push ebx
push 0x86
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0xb0]
cdq
push ebx
sub eax, edx
push ebx
sar eax, 1
push eax
push esi
call dword [0x47803c]
mov esi, eax
mov dword [esp + 0x74], esi
jmp 0x455333
lea edx, [esp + 0x32c]
push edx
push 1
push ebx
push ebx
push ebx
push 0x86
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x1030]
cdq
push ebx
sub eax, edx
push ebx
sar eax, 1
push eax
mov eax, dword [esp + 0x1040]
push eax
call dword [0x47803c]
mov esi, eax
mov dword [esp + 0x74], esi
jmp 0x455333
mov esi, dword [esp + 0x74]
cmp edi, 1
je 0x45534d
cmp edi, 2
je 0x45534d
cmp edi, 3
je 0x45535f
mov ecx, dword [esp + 0x2ac]
push esi
push ecx
jmp 0x455355
mov edx, dword [ebp + 0x218]
push esi
push edx
call dword [0x478054]
mov dword [esp + 0x70], eax
mov ax, word [0x484f34]
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x4c]
mov cl, byte [0x484f36]
shl eax, 8
add eax, 0x498588
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x54]
shl eax, 8
add eax, 0x498588
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x50]
shl eax, 8
add eax, 0x498588
mov dword [esp + 0x80], eax
mov al, byte [esp + 0x42c]
mov byte [esp + 0x16], cl
test al, al
je 0x455ba9
mov esi, dword [0x47804c]
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0x42c]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x1010]
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x42d]
lea edx, [ebx + ebx*2]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], edx
cmp al, 9
je 0x455b83
cmp al, 0x20
je 0x455b83
cmp dword [esp + 0x40], 0
jl 0x455b90
cmp dword [esp + 0x1014], 0
jl 0x455b90
mov eax, dword [esp + 0x58]
dec eax
cmp edi, eax
jg 0x455b90
mov eax, dword [esp + 0x6c]
add eax, 0xffffffff
mov dword [esp + 0x1c], eax
js 0x455b90
mov eax, dword [esp + 0x18]
mov al, byte [eax]
mov ecx, dword [esp + 0x24]
mov cl, byte [ecx]
mov byte [esp + 0x14], al
mov byte [esp + 0x15], cl
test al, al
je 0x455c61
test cl, cl
je 0x455c61
mov eax, dword [esp + 0x1024]
cmp eax, 1
jne 0x4554d7
movzx edx, byte [esp + 0x50]
movzx eax, byte [esp + 0x54]
movzx ecx, byte [esp + 0x4c]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
push edx
mov edx, dword [ebp + 0x218]
push edx
call dword [0x478038]
mov eax, dword [ebp + 0x218]
push 1
push eax
call dword [0x478044]
mov edx, dword [ebp + 0x218]
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
push edx
call esi
mov eax, dword [esp + 0x68]
add dword [esp + 0x40], ebx
add dword [esp + 0x20], ebx
add edi, ebx
add dword [esp + 0x28], eax
mov dword [esp + 0x3c], edi
mov eax, 2
jmp 0x455b88
cmp eax, 2
jne 0x4555b3
mov ecx, dword [ebp + 0x218]
push 1
push ecx
call dword [0x478044]
mov edx, dword [ebp + 0x218]
push 0
push edx
call dword [0x478038]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x218]
push 2
lea eax, [esp + 0x18]
push eax
push 0
push ecx
push edx
call esi
mov ecx, dword [ebp + 0x218]
push 2
lea eax, [esp + 0x18]
push eax
push 1
push edi
push ecx
call esi
mov ecx, dword [ebp + 0x218]
push 2
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [edi + 2]
push eax
push ecx
call esi
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x218]
push 2
lea edx, [esp + 0x18]
push edx
push 2
push eax
push ecx
call esi
movzx edx, byte [esp + 0x50]
movzx eax, byte [esp + 0x54]
movzx ecx, byte [esp + 0x4c]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
push edx
mov edx, dword [ebp + 0x218]
push edx
call dword [0x478038]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x218]
push 2
lea eax, [esp + 0x18]
push eax
push 1
push ecx
push edx
call esi
mov eax, dword [esp + 0x68]
add dword [esp + 0x40], ebx
add dword [esp + 0x20], ebx
add edi, ebx
add dword [esp + 0x28], eax
mov dword [esp + 0x3c], edi
mov eax, 2
jmp 0x455b88
cmp eax, 3
jne 0x45570f
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x100c]
lea ecx, [esp + 0x32c]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x1010]
push eax
mov eax, dword [esp + 0x70]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [0x55c148]
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x80]
add ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x78]
mov edi, dword [ebp + 0x25c]
add esp, 0x20
lea edx, [eax + eax*2]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x5c], edx
test esi, esi
jle 0x455b5e
mov dword [esp + 0x48], esi
jmp 0x455630
xor esi, esi
cmp dword [esp + 0x1008], esi
jle 0x4556e8
mov eax, dword [esp + 0x64]
lea edx, [edi + 1]
sub edi, edx
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x2c]
sub edi, edx
add edi, 2
add ecx, edx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x5c]
sub edi, edx
mov edx, dword [esp + 0x2c]
add edi, edx
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x64]
add eax, 2
mov edx, edi
sub edx, eax
add edx, 3
mov dword [esp + 0x44], edx
mov edx, edi
sub edx, eax
inc edx
mov dword [esp + 0x38], edx
sub edi, eax
mov ebx, dword [esp + 0x34]
lea edx, [esi*4]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x44]
movzx edx, byte [edx + eax]
mov byte [ebx + ecx], dl
movzx edx, byte [eax]
mov ebx, dword [esp + 0x30]
mov byte [ecx], dl
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + eax]
mov byte [ebx + ecx], dl
mov ebx, dword [esp + 0x90]
or dl, 0xff
sub dl, byte [edi + eax]
inc esi
mov byte [ebx + ecx], dl
add eax, 4
add ecx, 3
cmp esi, dword [esp + 0x1008]
jl 0x45568b
mov ebx, dword [esp + 0x1010]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1008]
sub ecx, dword [esp + 0x60]
add eax, eax
add eax, eax
add dword [esp + 0x7c], eax
sub dword [esp + 0x48], 1
mov dword [esp + 0x1c], ecx
jne 0x455630
jmp 0x455b5e
mov eax, dword [esp + 0x2fc]
push eax
lea ecx, [esp + 0x98]
call fcn.00401f70
push eax
push 0
push 0
xor eax, eax
lea edi, [esp + 0xa4]
call fcn.00401f10
mov edx, dword [esp + 0x2ac]
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push edx
call esi
cmp dword [esp + 0x1018], 0
je 0x45576a
mov ecx, dword [esp + 0x2ac]
push 2
lea eax, [esp + 0x18]
push eax
push 0
push 1
push ecx
call esi
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x88]
imul esi, eax
add esi, dword [esp + 0x28]
lea edx, [edi + eax]
lea ecx, [esp + 0x94]
mov dword [esp + 0x1c], edx
call fcn.00401f70
lea eax, [eax + eax*2]
lea eax, [eax*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x2f0]
sar eax, 2
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2fc]
add eax, eax
add eax, eax
dec edx
imul edx, eax
cmp dword [0x58ccb4], 0
lea ecx, [edi + eax]
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x25c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
je 0x4559bb
cmp dword [esp + 0x101c], 0
je 0x4559bb
mov edi, dword [esp + 0x6c]
sub edi, dword [0x547cf4]
mov edx, dword [0x5478c4]
mov ebx, dword [esp + 0x3c]
dec edi
imul edi, dword [esp + 0x60]
add edx, ebx
lea edx, [edx + edx*2]
add edi, edx
mov edx, dword [esp + 0x100c]
test edx, edx
jle 0x455b57
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x30]
jmp 0x455840
cmp dword [esp + 0x1008], 0
mov ebx, dword [esp + 0x2c]
jle 0x45599c
lea ebp, [edx + ebx + 6]
mov dword [esp + 0x48], ebp
mov ebp, 3
sub ebp, eax
lea ebp, [edx + ebp*2]
add ebp, ebx
mov ebx, dword [esp + 0x1008]
add edx, ebx
lea edx, [edx + ebx*8]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], edx
lea ebx, [ebx]
movzx ebx, byte [eax + ebp - 6]
movzx edx, byte [eax + ebp - 3]
movzx eax, byte [eax + ebp]
lea edx, [ebx + edx*2]
add edx, eax
mov eax, dword [esp + 0x48]
movzx ebx, byte [eax - 3]
add edx, ebx
movzx ebx, byte [ebp - 3]
add edx, ebx
movzx ebx, byte [eax - 6]
movzx eax, byte [eax]
lea edx, [ebx + edx*2]
movzx ebx, byte [ebp - 6]
add edx, ebx
movzx ebx, byte [ebp]
add edx, ebx
mov ebx, dword [esp + 0x80]
add edx, eax
movzx eax, byte [ecx + esi]
sar edx, 4
movzx ebx, byte [edx + ebx]
shl eax, 8
sub eax, edx
movzx eax, byte [eax + 0x498687]
add eax, ebx
movzx ebx, byte [edi + ecx]
shl ebx, 8
sub ebx, edx
mov bl, byte [ebx + 0x498687]
mov byte [edi + ecx], bl
inc edi
cmp eax, 0xff
jle 0x4558fa
mov eax, 0xff
mov ebx, dword [esp + 0x8c]
mov byte [ecx + esi], al
movzx eax, byte [ecx + esi + 1]
movzx ebx, byte [edx + ebx]
inc esi
shl eax, 8
sub eax, edx
movzx eax, byte [eax + 0x498687]
add eax, ebx
movzx ebx, byte [edi + ecx]
shl ebx, 8
sub ebx, edx
mov bl, byte [ebx + 0x498687]
mov byte [edi + ecx], bl
inc edi
cmp eax, 0xff
jle 0x45593b
mov eax, 0xff
mov ebx, dword [esp + 0x78]
mov byte [ecx + esi], al
movzx eax, byte [ecx + esi + 1]
movzx ebx, byte [edx + ebx]
inc esi
shl eax, 8
sub eax, edx
movzx eax, byte [eax + 0x498687]
add eax, ebx
movzx ebx, byte [edi + ecx]
shl ebx, 8
sub ebx, edx
mov dl, byte [ebx + 0x498687]
mov byte [edi + ecx], dl
inc edi
cmp eax, 0xff
jle 0x455979
mov eax, 0xff
add dword [esp + 0x48], 9
mov byte [ecx + esi], al
mov eax, dword [esp + 0x34]
inc esi
add ebp, 9
sub dword [esp + 0x38], 1
jne 0x455880
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x5c]
sub esi, ebp
sub edi, ebp
sub dword [esp + 0x44], 1
jne 0x455840
mov ebp, dword [esp + 0x84]
jmp 0x455b57
cmp dword [esp + 0x100c], 0
jle 0x455b5e
mov edi, dword [esp + 0x100c]
mov dword [esp + 0x38], edi
cmp dword [esp + 0x1008], 0
jle 0x455b44
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1008]
lea ebx, [edx + edi + 6]
mov edi, 3
sub edi, eax
lea edi, [edx + edi*2]
add edi, dword [esp + 0x2c]
add edx, ebp
lea edx, [edx + ebp*8]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edx
movzx ebp, byte [edi + eax - 6]
movzx edx, byte [edi + eax - 3]
lea edx, [ebp + edx*2]
movzx ebp, byte [edi + eax]
add edx, ebp
movzx ebp, byte [edi - 3]
add edx, ebp
movzx ebp, byte [ebx - 3]
add edx, ebp
movzx ebp, byte [edi - 6]
lea edx, [ebp + edx*2]
movzx ebp, byte [ebx - 6]
movzx ebx, byte [ebx]
add edx, ebp
movzx ebp, byte [edi]
add edx, ebp
add edx, ebx
movzx ebx, byte [ecx + esi]
shl ebx, 8
sar edx, 4
sub ebx, edx
movzx ebp, byte [ebx + 0x498687]
mov ebx, dword [esp + 0x80]
movzx ebx, byte [edx + ebx]
add ebp, ebx
cmp ebp, 0xff
mov ebx, 0xff
jg 0x455a77
mov ebx, ebp
mov byte [ecx + esi], bl
movzx ebx, byte [ecx + esi + 1]
inc esi
shl ebx, 8
sub ebx, edx
movzx ebp, byte [ebx + 0x498687]
mov ebx, dword [esp + 0x8c]
movzx ebx, byte [edx + ebx]
add ebp, ebx
cmp ebp, 0xff
mov ebx, 0xff
jg 0x455aa8
mov ebx, ebp
mov byte [ecx + esi], bl
movzx ebx, byte [ecx + esi + 1]
inc esi
shl ebx, 8
sub ebx, edx
movzx ebp, byte [ebx + 0x498687]
mov ebx, dword [esp + 0x78]
movzx ebx, byte [edx + ebx]
add ebp, ebx
cmp ebp, 0xff
mov ebx, 0xff
jg 0x455ad6
mov ebx, ebp
mov byte [ecx + esi], bl
inc esi
cmp dword [esp + 0x101c], 0
je 0x455b20
movzx ebx, byte [ecx + esi]
shl ebx, 8
sub ebx, edx
movzx ebx, byte [ebx + 0x498687]
mov byte [ecx + esi], bl
movzx ebx, byte [ecx + esi + 1]
shl ebx, 8
sub ebx, edx
movzx ebx, byte [ebx + 0x498687]
mov byte [ecx + esi + 1], bl
movzx ebx, byte [ecx + esi + 2]
shl ebx, 8
sub ebx, edx
mov dl, byte [ebx + 0x498687]
mov byte [ecx + esi + 2], dl
mov ebx, dword [esp + 0x44]
add ebx, 9
add edi, 9
sub dword [esp + 0x34], 1
mov dword [esp + 0x44], ebx
jne 0x455a10
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x84]
sub esi, dword [esp + 0x1c]
sub edx, dword [esp + 0x5c]
sub dword [esp + 0x38], 1
jne 0x4559d4
mov ebx, dword [esp + 0x1010]
mov eax, dword [esp + 0x68]
add dword [esp + 0x3c], ebx
add dword [esp + 0x40], ebx
add dword [esp + 0x20], ebx
add dword [esp + 0x28], eax
mov esi, dword [0x47804c]
mov edi, dword [esp + 0x3c]
mov eax, 2
jmp 0x455b88
mov eax, 1
add dword [esp + 0x24], eax
add dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov al, byte [ecx]
test al, al
jne 0x4553f7
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x1024]
cmp edi, 1
jne 0x455bff
mov edx, dword [esp + 0x70]
mov eax, dword [ebp + 0x218]
push edx
push eax
call dword [0x478054]
push esi
mov esi, dword [0x47806c]
call esi
lea eax, [esp + 0x94]
call fcn.00401150
cmp dword [esp + 0x2e8], 0
je 0x455c6d
mov ecx, dword [esp + 0x2f4]
push ecx
call esi
mov edx, dword [esp + 0x2e8]
push edx
call fcn.00407edf
add esp, 4
jmp 0x455c6d
cmp edi, 3
mov edi, dword [0x47806c]
je 0x455c22
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x2ac]
push eax
push ecx
call dword [0x478054]
push esi
call edi
jmp 0x455c2f
mov edx, dword [esp + 0x64]
push edx
call fcn.00407edf
add esp, 4
lea eax, [esp + 0x94]
call fcn.00401150
cmp dword [esp + 0x2e8], 0
je 0x455c6d
mov eax, dword [esp + 0x2f4]
push eax
call edi
mov ecx, dword [esp + 0x2e8]
push ecx
call fcn.00407edf
add esp, 4
jmp 0x455c6d
lea ecx, [esp + 0x94]
call fcn.004010b0
mov ecx, dword [esp + 0xfec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xfd0]
xor ecx, esp
call fcn.00407ed0
add esp, 0xfe4
ret 0x2c