Function at 0x6107e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
mov eax, 0x103c
push edi
push esi
push ebx
call fcn.00aa20e0
mov eax, dword [esp + 0x1060]
mov ebx, dword [esp + 0x1054]
mov esi, dword [esp + 0x1058]
test eax, eax
jle 0x610a38
lea edi, [esp + 0x3c]
xor ebp, ebp
jmp 0x610821
add ebx, dword [esp + 0x105c]
add esi, dword [esp + 0x105c]
movzx edx, byte [esi]
mov ecx, ebp
movzx eax, byte [ebx]
shl ecx, 7
sub eax, edx
shl eax, 4
mov dword [esp + ecx + 0x3c], eax
movzx edx, byte [esi + 1]
movzx eax, byte [ebx + 1]
sub eax, edx
shl eax, 4
mov dword [edi + 4], eax
movzx edx, byte [esi + 2]
movzx eax, byte [ebx + 2]
sub eax, edx
shl eax, 4
mov dword [edi + 8], eax
movzx edx, byte [esi + 3]
movzx eax, byte [ebx + 3]
sub eax, edx
shl eax, 4
mov dword [edi + 0xc], eax
movzx edx, byte [esi + 4]
movzx eax, byte [ebx + 4]
sub eax, edx
shl eax, 4
mov dword [edi + 0x10], eax
movzx edx, byte [esi + 5]
movzx eax, byte [ebx + 5]
sub eax, edx
shl eax, 4
mov dword [edi + 0x14], eax
movzx edx, byte [esi + 6]
movzx eax, byte [ebx + 6]
sub eax, edx
shl eax, 4
mov dword [edi + 0x18], eax
movzx edx, byte [esi + 7]
movzx eax, byte [ebx + 7]
sub eax, edx
shl eax, 4
mov dword [edi + 0x1c], eax
movzx edx, byte [esi + 8]
movzx eax, byte [ebx + 8]
sub eax, edx
shl eax, 4
mov dword [edi + 0x20], eax
movzx edx, byte [esi + 9]
movzx eax, byte [ebx + 9]
sub eax, edx
shl eax, 4
mov dword [edi + 0x24], eax
movzx edx, byte [esi + 0xa]
movzx eax, byte [ebx + 0xa]
sub eax, edx
shl eax, 4
mov dword [edi + 0x28], eax
movzx edx, byte [esi + 0xb]
movzx eax, byte [ebx + 0xb]
sub eax, edx
shl eax, 4
mov dword [edi + 0x2c], eax
movzx edx, byte [esi + 0xc]
movzx eax, byte [ebx + 0xc]
sub eax, edx
shl eax, 4
mov dword [edi + 0x30], eax
movzx edx, byte [esi + 0xd]
movzx eax, byte [ebx + 0xd]
sub eax, edx
shl eax, 4
mov dword [edi + 0x34], eax
movzx edx, byte [esi + 0xe]
movzx eax, byte [ebx + 0xe]
sub eax, edx
shl eax, 4
mov dword [edi + 0x38], eax
movzx edx, byte [esi + 0xf]
movzx eax, byte [ebx + 0xf]
sub eax, edx
shl eax, 4
mov dword [edi + 0x3c], eax
movzx edx, byte [esi + 0x10]
movzx eax, byte [ebx + 0x10]
sub eax, edx
add ebp, 1
shl eax, 4
mov dword [edi + 0x40], eax
movzx edx, byte [esi + 0x11]
movzx eax, byte [ebx + 0x11]
sub eax, edx
shl eax, 4
mov dword [edi + 0x44], eax
movzx edx, byte [esi + 0x12]
movzx eax, byte [ebx + 0x12]
sub eax, edx
shl eax, 4
mov dword [edi + 0x48], eax
movzx edx, byte [esi + 0x13]
movzx eax, byte [ebx + 0x13]
sub eax, edx
shl eax, 4
mov dword [edi + 0x4c], eax
movzx edx, byte [esi + 0x14]
movzx eax, byte [ebx + 0x14]
sub eax, edx
shl eax, 4
mov dword [edi + 0x50], eax
movzx edx, byte [esi + 0x15]
movzx eax, byte [ebx + 0x15]
sub eax, edx
shl eax, 4
mov dword [edi + 0x54], eax
movzx edx, byte [esi + 0x16]
movzx eax, byte [ebx + 0x16]
sub eax, edx
shl eax, 4
mov dword [edi + 0x58], eax
movzx edx, byte [esi + 0x17]
movzx eax, byte [ebx + 0x17]
sub eax, edx
shl eax, 4
mov dword [edi + 0x5c], eax
movzx edx, byte [esi + 0x18]
movzx eax, byte [ebx + 0x18]
sub eax, edx
shl eax, 4
mov dword [edi + 0x60], eax
movzx edx, byte [esi + 0x19]
movzx eax, byte [ebx + 0x19]
sub eax, edx
shl eax, 4
mov dword [edi + 0x64], eax
movzx edx, byte [esi + 0x1a]
movzx eax, byte [ebx + 0x1a]
sub eax, edx
shl eax, 4
mov dword [edi + 0x68], eax
movzx edx, byte [esi + 0x1b]
movzx eax, byte [ebx + 0x1b]
sub eax, edx
shl eax, 4
mov dword [edi + 0x6c], eax
movzx edx, byte [esi + 0x1c]
movzx eax, byte [ebx + 0x1c]
sub eax, edx
shl eax, 4
mov dword [edi + 0x70], eax
movzx edx, byte [esi + 0x1d]
movzx eax, byte [ebx + 0x1d]
sub eax, edx
shl eax, 4
mov dword [edi + 0x74], eax
movzx edx, byte [esi + 0x1e]
movzx eax, byte [ebx + 0x1e]
sub eax, edx
shl eax, 4
mov dword [edi + 0x78], eax
movzx eax, byte [ebx + 0x1f]
movzx edx, byte [esi + 0x1f]
sub eax, edx
shl eax, 4
mov dword [edi + 0x7c], eax
sub edi, 0xffffff80
cmp ebp, dword [esp + 0x1060]
jne 0x610813
mov eax, dword [esp + 0x1060]
lea ecx, [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20
mov dword [esp], ecx
call fcn.00752750
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x30]
mov ecx, 4
mov edx, 0x20
mov edi, dword [esp + 0x2c]
mov esi, edx
sub ecx, dword [esp + 0x30]
lea eax, [edi + ebx*4]
lea eax, [eax*4 + 0xb440e0]
shl edx, cl
mov dword [esp + 0x38], eax
mov eax, edx
sar eax, 1
sar esi, cl
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
and edx, 1
neg edx
and eax, 2
and edx, esi
cmp eax, 1
sbb eax, eax
not eax
and eax, dword [esp + 0x24]
test esi, esi
jle 0x610b1b
mov ecx, dword [esp + 0x38]
lea ebx, [eax + edx]
mov dword [esp + 0x34], 0
mov edi, dword [ecx + 0xc0]
xor ecx, ecx
nop
lea eax, [ebx + ecx]
add ecx, 1
mov eax, dword [esp + eax*4 + 0x3c]
imul eax, edi
mov edx, eax
sar edx, 0x1f
xor eax, edx
sub eax, edx
add ebp, eax
cmp ecx, esi
jne 0x610af0
add dword [esp + 0x34], 1
add ebx, dword [esp + 0x28]
cmp dword [esp + 0x34], ecx
jne 0x610aed
add dword [esp + 0x2c], 1
add dword [esp + 0x38], 4
cmp dword [esp + 0x2c], 3
jle 0x610ab7
add dword [esp + 0x30], 1
cmp dword [esp + 0x30], 3
jg 0x610b5b
xor eax, eax
cmp dword [esp + 0x30], 0
setne al
cmp eax, 3
mov dword [esp + 0x2c], eax
jle 0x610a81
add dword [esp + 0x30], 1
cmp dword [esp + 0x30], 3
jle 0x610b38
sar ebp, 9
add esp, 0x103c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret