Function at 0x1a7ff0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x198
cmp dword [esp + 0x1a4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x1a4]
push esi
push edi
jne 0x1a8019
cmp dword [ebp + 0x4cd8], 0
je 0x1a8026
jmp 0x1a81b0
cmp dword [ebp + 0x4cdc], 0
jne 0x1a81b0
cmp dword [ebp + 0x4bb8], 0
lea ebx, [ebp + 0x4bb8]
je 0x1a8044
cmp dword [ebp + 0x4bbc], 0
lea esi, [ebp + 0x4bbc]
jne 0x1a8080
mov eax, dword [ebp + 0x4bb0]
push 0
push eax
push pe_nt_image_headers32
push 0x10
push 0x10
push 0
push ebx
push ebp
call fcn.001095b0
mov ecx, dword [ebp + 0x4bb0]
push 0
push ecx
push pe_nt_image_headers32
push 0x10
push 0x10
push 0
lea esi, [ebp + 0x4bbc]
push esi
push ebp
call fcn.001095b0
mov eax, dword [ebx]
test eax, eax
je 0x1a85fa
cmp dword [esi], 0
je 0x1a85fa
mov edx, dword [0x5271fc]
mov ecx, 0x40
or dword [eax + 0x90], ecx
mov eax, dword [eax + 0xdc]
or dword [eax + 0x54], ecx
mov eax, dword [esi]
or dword [eax + 0x90], ecx
mov eax, dword [eax + 0xdc]
or dword [eax + 0x54], ecx
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1b4]
mov eax, dword [edx + edi*4 + 0xb6c]
mov dword [esp + 0xa0], eax
mov eax, dword [0x4e73e0]
mov edx, dword [eax + 0x2330]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [eax + 0x2338]
push 0x169
push edx
mov edx, dword [eax + 0x233c]
call fcn.000355b0
add esp, 0x10
test eax, eax
jne 0x1a85fa
test edi, edi
jne 0x1a8129
mov esi, dword [ebx]
mov dword [esp + 0x10], esi
jmp 0x1a8131
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov esi, eax
push 0
push 1
push 0
xor eax, eax
mov ecx, esi
call fcn.000b7990
mov ebx, dword [esi + 0xdc]
call fcn.000b8200
test eax, eax
je 0x1a818b
mov ebx, eax
lea edi, [esp + 0xa4]
mov esi, 0x10
lea ecx, [ecx]
mov ecx, dword [0x4e73e0]
mov edx, dword [ecx + 0x23a4]
push edx
push 0x10
push edi
push ebx
call fcn.0038adb0
add esp, 0x10
add edi, 0x10
add ebx, 0x100
sub esi, 1
jne 0x1a8160
mov esi, dword [esp + 0x10]
call fcn.000b7aa0
cmp dword [esp + 0x1b4], 0
jne 0x1a81a6
mov dword [ebp + 0x4cd8], 1
jmp 0x1a81b0
mov dword [ebp + 0x4cdc], 1
mov eax, dword [0x4e73e0]
or byte [eax + 0x28399], 4
cmp dword [esp + 0x1b4], 0
jne 0x1a81d2
mov eax, dword [ebp + 0x4bb8]
mov dword [esp + 0x1c], eax
jmp 0x1a81dc
mov ecx, dword [ebp + 0x4bbc]
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x1b8]
mov edx, dword [ebx + 0xdc]
mov ecx, dword [edx + 0x44]
test ecx, ecx
je 0x1a81f6
mov dword [esp + 0x10], ecx
jmp 0x1a8204
mov eax, dword [edx + 0x3c]
and eax, 0xff
mov dword [esp + 0x10], eax
mov ecx, eax
mov esi, dword [esp + 0x1b0]
mov eax, dword [esi + 0x1f4]
test eax, eax
lea edi, [esi + 0x1f4]
je 0x1a8247
cmp dword [esi + 0x1f8], 0
je 0x1a8247
mov eax, dword [eax + 0xdc]
cmp dword [eax + 0x44], ecx
mov dword [esp + 0x18], eax
jne 0x1a8247
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
jb 0x1a8247
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp eax, dword [edx + 8]
jae 0x1a82a7
mov eax, dword [ebx + 0xdc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push 0
push 0
push 0
push edx
push eax
push ecx
push edi
push ebp
call fcn.001095b0
mov eax, dword [ebx + 0xdc]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push ecx
push edx
push eax
lea ebx, [esi + 0x1f8]
push ebx
push ebp
call fcn.001095b0
xor eax, eax
cmp dword [edi], eax
je 0x1a85fa
cmp dword [ebx], eax
je 0x1a85fa
mov dword [esi + 0x1fc], eax
mov dword [esi + 0x200], eax
mov eax, dword [esi + 0x1fc]
mov ebx, dword [esi + eax*4 + 0x1f4]
mov edi, dword [esp + 0x1bc]
lea ecx, [eax - 1]
add eax, 0xffffffff
push edi
and ecx, 1
mov edx, dword [esi + ecx*4 + 0x1f4]
and eax, 1
push ebx
mov dword [esi + 0x1fc], eax
mov eax, dword [esp + 0x1c0]
push edi
push eax
mov ecx, ebp
mov dword [esp + 0x24], edx
call fcn.001b2690
mov eax, dword [esi + 0x200]
cmp eax, 1
jae 0x1a8310
add eax, 1
mov dword [esi + 0x200], eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 0x14
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
call dword [edx + 0x3c]
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
cmp eax, 0x32595559
mov dword [esp + 0x58], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x20], edx
jne 0x1a83de
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0x18d
call dword [edx + 0x14]
jmp 0x1a83f9
cmp eax, 6
ja 0x1a85fa
mov ecx, dword [ebp + 0x4c80]
mov eax, dword [ecx]
push 0
push 0x18e
call dword [eax + 0x14]
mov eax, dword [ebp + 0x4c90]
test ah, 1
jne 0x1a84a3
test al, al
js 0x1a84a3
mov esi, dword [esp + 0x1b8]
or al, 0x80
mov dword [ebp + 0x4c90], eax
call fcn.000ba910
mov edx, dword [ebp]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov ecx, ebp
call dword [edx + 0x14]
mov esi, eax
test esi, esi
je 0x1a84a3
mov eax, dword [0x4e73e0]
test byte [eax + 0x2484], 0x20
je 0x1a8472
mov ecx, dword [esi + 0x358]
mov edx, dword [esi + 0x154]
mov dword [esi + ecx*4 + 0x158], edx
add dword [esi + 0x358], 1
xor ecx, ecx
mov eax, esi
call fcn.000b6350
cmp dword [esp + 0x18], 0
jne 0x1a848d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1a848d
mov ecx, dword [eax + 0x10]
push 0
push ecx
push eax
call fcn.000b27d0
mov edx, dword [0x4e73e0]
test byte [edx + 0x2484], 0x20
je 0x1a84a3
mov eax, esi
call fcn.0006a0c0
mov ecx, dword [ebp + 0x4c80]
mov eax, dword [ecx]
push 0
push 0
push 1
push 0
push 2
push 1
push 0
push ebx
push 0
call dword [eax + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0
push 1
push 0
push 2
push 1
push 0
push eax
push 1
call dword [edx + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push 2
push 0
push 0
push eax
push 2
call dword [edx + 0x28]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [ecx]
push 2
call dword [edx + 0x30]
mov ecx, dword [ebp + 0x4c80]
mov edx, dword [esp + 0x1b8]
mov eax, dword [ecx]
push 0
push 0
push 0
push 2
push 1
push 0
push edx
call dword [eax + 0x20]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov ebx, eax
test ebx, ebx
jne 0x1a853f
mov ecx, 1
jmp 0x1a8553
call fcn.001adea0
mov ecx, ebx
mov esi, eax
call fcn.00091370
xor edx, edx
div esi
mov ecx, eax
mov eax, dword [edi]
xor edx, edx
div ecx
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
jge 0x1a856d
fadd dword [0x41bc68]
mov eax, dword [edi + 8]
fstp dword [esp + 0x60]
xor edx, edx
fild dword [edi + 4]
div ecx
fstp dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x1a8591
fadd dword [0x41bc68]
push 0
fstp dword [esp + 0x84]
fild dword [edi + 0xc]
lea ebx, [esp + 0x24]
push ebx
mov ecx, dword [ebp + 0x4c80]
lea ebx, [esp + 0x88]
fstp dword [esp + 0x28]
push ebx
mov edx, dword [ecx]
lea ebx, [esp + 0x4c]
push ebx
lea ebx, [esp + 0x70]
push ebx
mov bx, word [edi + 0xc]
push ebx
push eax
mov ax, word [edi + 4]
push eax
push esi
push 1
call dword [edx + 0x34]
mov edi, dword [esp + 0x1b8]
push 1
push 0
mov ecx, 2
mov eax, ebp
call fcn.00108cb0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x198
ret 0x14