Function at 0x417bc9
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov dl, 0x14
mov ebp, esp
sub esp, 0x170
push ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov al, byte [ecx + 0x9c]
mov edi, 8
push edi
xor esi, esi
cbw
idiv dl
movsx eax, ah
push esi
mov dword [ebp - 0x24], eax
push 0x4a4998
call fcn.00449290
add esp, 0xc
mov eax, dword [ebp + 0x10]
cdq
and edx, 7
mov dword [ebp - 0xd0], edi
add eax, edx
mov ecx, 3
sar eax, 3
mov dword [ebp - 0x118], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10c], ecx
mov eax, 5
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x40], 0xa
mov dword [ebp - 0x114], 7
mov edx, 4
mov dword [ebp - 0xa0], esi
mov ebx, 1
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x110], 7
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc0], 6
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0xa4], 9
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x160], 9
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x11c], 0xa
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x104], 0xb
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xc8], 2
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0xf8], 9
mov dword [ebp - 0x124], 7
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x8c], 0xa
mov dword [ebp - 0x138], 0xa
mov dword [ebp - 0x148], 2
mov dword [ebp - 0x164], 0xb
mov dword [ebp - 0x144], eax
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xb4], 9
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0x140], 2
mov dword [ebp - 0x13c], 0xb
mov dword [ebp - 0xe0], 0xb
mov dword [ebp - 0x98], 2
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x94], 0xa
mov dword [ebp - 0x78], esi
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0xe4], 0xa
mov dword [ebp - 0x7c], 0xb
mov ebx, dword [ebp + 8]
add ebx, 0x1f0
mov dword [ebp - 0x70], 6
cmp dword [ebx], esi
jne 0x417e60
mov eax, 0x93e
mov edi, dword [ebp + 8]
push eax
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.00419601
add esp, 8
mov dword [edi + 0x1ec], eax
cmp eax, esi
je 0x418331
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x418331
push esi
call fcn.00449210
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xc
jl 0x418331
cmp eax, 0x14
jg 0x418331
cmp eax, 0xc
je 0x417e95
mov dword [ebp + 0x18], 0x289beb8a
xor edi, edi
cmp byte [esi], 0
je 0x417edd
cmp dword [0x49719c], 1
jle 0x417eb9
movsx eax, byte [esi + edi]
push 0x80
push eax
call fcn.004496b4
add esp, 8
jmp 0x417ece
movsx ecx, byte [esi + edi]
mov edx, dword [str.________________________________H]
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 0x80
test eax, eax
je 0x418331
inc edi
cmp byte [esi + edi], 0
jne 0x417e9c
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.00449120
add esp, 8
lea eax, [ebp - 0x20]
push eax
call fcn.0041b377
add esp, 4
cmp dword [ebp - 4], 0x14
jne 0x417f5a
mov al, byte [ebp - 0x1e]
mov cl, byte [ebp - 0x1c]
mov dl, byte [ebp - 0x1a]
mov byte [ebp - 0x1f], al
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x1e], cl
mov cl, byte [ebp - 0x17]
mov byte [ebp - 0x1d], dl
mov dl, byte [ebp - 0x16]
mov byte [ebp - 0x1c], al
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x1b], cl
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0x1a], dl
mov dl, byte [ebp - 0x13]
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x18], cl
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x17], dl
mov dl, byte [ebp - 0x10]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xf]
mov byte [ebp - 0x15], cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x14], dl
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0x13], al
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
mov byte [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
je 0x418003
inc dword [ebp - 8]
cmp dword [ebp + 8], 0
je 0x417f83
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x1ec]
jmp 0x417f89
mov esi, dword [0x491e70]
mov edi, dword [ebp + 0x10]
add edi, 8
cmp dword [ebx], edi
jge 0x417fde
cmp dword [ebp + 8], 0
je 0x417fa4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1ec]
jmp 0x417fa9
mov eax, dword [0x491e70]
push eax
call fcn.00448616
add esp, 4
mov dword [ebx], edi
cmp dword [ebp + 8], 0
je 0x417fce
mov esi, dword [ebp + 8]
push edi
call fcn.00448866
add esp, 4
mov dword [esi + 0x1ec], eax
jmp 0x417fdc
push edi
call fcn.00448866
add esp, 4
mov dword [0x491e70], eax
mov esi, eax
test esi, esi
je 0x418331
push edi
push 0
push esi
call fcn.00449290
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004492f0
add esp, 0xc
jmp 0x418006
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
jle 0x4181f2
xor eax, eax
mov cl, byte [eax + esi]
xor byte [eax + 0x4a4998], cl
inc eax
cmp eax, 8
jl 0x418019
cmp dword [ebp - 4], 0
jne 0x4181d3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x20c], 0
jne 0x41817d
cmp dword [ecx + 0x210], 0
jne 0x41817d
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp + edx - 0x164]
lea ebx, [eax + ecx + 8]
mov eax, dword [ebp + edx - 0x16c]
mov dword [ebp - 0x30], ebx
lea ebx, [eax + ecx + 8]
mov eax, dword [ebp + edx - 0x168]
mov dword [ebp - 0x2c], ebx
lea ebx, [eax + ecx + 8]
mov eax, dword [ebp + edx - 0x170]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ebx
lea ebx, [eax + ecx + 8]
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl ecx, 0x10
mov edx, dword [ebp - 0x28]
xor ecx, eax
movzx eax, byte [edx]
movzx edx, byte [ebx]
shl ecx, 8
shl eax, 0x10
xor ecx, eax
mov eax, dword [ebp + 0x14]
xor ecx, edx
mov edi, 0x4a4999
xor ecx, dword [eax + 4]
push ecx
call fcn.004183c5
add esp, 4
xor byte [0x4a4998], al
cmp eax, 0xff
jg 0x4180d6
cmp eax, 0xffffff00
jge 0x4180e1
mov edi, 0x4a499a
xor byte [0x4a4999], ah
cmp eax, 0x7d00
jg 0x4180ef
cmp eax, 0xffff8300
jge 0x4180f7
mov ecx, eax
sar ecx, 0x10
xor byte [edi], cl
inc edi
cmp eax, 0xf42400
jg 0x418105
cmp eax, 0xff0bdc00
jge 0x41810b
sar eax, 0x18
xor byte [edi], al
inc edi
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
movzx ecx, byte [eax]
movzx eax, byte [edx]
shl ecx, 0x10
mov edx, dword [ebp - 0x28]
xor ecx, eax
movzx eax, byte [edx]
movzx edx, byte [ebx]
shl ecx, 8
shl eax, 0x10
xor ecx, eax
mov eax, dword [ebp + 0x14]
xor ecx, edx
xor ecx, dword [eax + 8]
push ecx
call fcn.004183c5
add esp, 4
xor byte [edi], al
inc edi
cmp eax, 0xff
jg 0x41814f
cmp eax, 0xffffff00
jge 0x418152
xor byte [edi], ah
inc edi
cmp eax, 0x7d00
jg 0x418160
cmp eax, 0xffff8300
jge 0x418168
mov ecx, eax
sar ecx, 0x10
xor byte [edi], cl
inc edi
cmp eax, 0xf42400
jg 0x418176
cmp eax, 0xff0bdc00
jge 0x4181d3
sar eax, 0x18
xor byte [edi], al
jmp 0x4181d3
xor edi, edi
mov eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 3
xor eax, edx
sub eax, edx
lea ecx, [eax*8]
mov ebx, eax
mov eax, edi
cdq
and edx, 3
inc edi
add eax, edx
mov edx, dword [ebp + 0x14]
sar eax, 2
mov eax, dword [edx + eax*4 + 4]
mov edx, 0xff
shl edx, cl
and eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x24]
lea ebx, [ebx + ecx*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + ebx*4 - 0x170]
xor al, byte [edx + ecx + 8]
xor byte [edi + 0x4a4997], al
cmp edi, 8
jl 0x41817f
push 0x4a4998
add esi, 8
call fcn.00418424
add esp, 4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jg 0x418017
cmp dword [ebp + 0x18], 0x66d8b337
jne 0x41824a
movzx eax, byte [0x4a499f]
push eax
call fcn.0041833a
add esp, 4
mov byte [0x4a499f], al
movzx eax, byte [0x4a499e]
push eax
call fcn.0041833a
add esp, 4
mov byte [0x4a499e], al
mov al, byte [0x4a499f]
mov cl, byte [0x4a499e]
add byte [0x4a4998], al
add byte [0x4a4999], cl
mov byte [0x4a499f], 0
mov byte [0x4a499e], 0
mov dword [ebp - 8], 8
cmp dword [ebp + 0x18], 0x66d8b337
jne 0x418261
mov dword [ebp - 8], 6
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x41831f
lea edi, [ebp - 0x20]
cmp dword [0x49719c], 1
mov bl, byte [edi]
jle 0x41828a
movsx eax, bl
push 4
push eax
call fcn.004496b4
add esp, 8
jmp 0x41829c
movsx edx, bl
mov ecx, dword [str.________________________________H]
xor eax, eax
mov ax, word [ecx + edx*2]
and eax, 4
test eax, eax
jne 0x4182a3
sub bl, 7
shl bl, 4
mov al, byte [edi + 1]
cmp dword [0x49719c], 1
mov byte [ebp - 1], al
jle 0x4182c5
movsx eax, al
push 4
push eax
call fcn.004496b4
add esp, 8
jmp 0x4182d8
movsx ecx, byte [ebp - 1]
mov edx, dword [str.________________________________H]
xor eax, eax
mov ax, word [edx + ecx*2]
and eax, 4
test eax, eax
mov al, byte [ebp - 1]
je 0x4182e5
lea ebx, [eax + ebx - 0x30]
jmp 0x4182e9
lea ebx, [eax + ebx - 0x37]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x20c]
test ecx, ecx
je 0x41830a
movzx eax, bl
push eax
lea edx, [esi + 0x4a4998]
push esi
push edx
push dword [ebp + 8]
call ecx
add esp, 0x10
cmp byte [esi + 0x4a4998], bl
jne 0x418331
add edi, 2
inc esi
cmp dword [ebp - 8], esi
jg 0x41826f
push dword [ebp + 0x18]
push 0x4a4998
call fcn.004183ca
add esp, 8
jmp 0x418333
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret