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

Disassembly:
sub esp, 0x58
mov eax, dword [0x1004d440]
mov dword [esp + 4], eax
mov ax, word [0x1004d400]
inc ax
mov dword [esp + 0x34], ecx
mov ecx, dword [0x1004d404]
mov word [esp], ax
mov word [0x1004d400], ax
movzx eax, ax
push ebx
push ebp
push esi
movzx ecx, byte [eax + ecx]
mov esi, edx
mov edx, dword [0x1004d3f4]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x74]
movzx ebx, dx
lea edx, [eax*4]
mov eax, dword [0x1004d40c]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x1004d410]
dec ecx
mov dword [esp + 0x44], edx
mov eax, dword [edx + eax]
xor edx, edx
div ecx
mov edx, dword [esp + 0x7c]
add ebx, dword [0x1004d43c]
movzx eax, ax
mov dword [esp + 0x30], eax
movzx eax, byte [0x1004d3c7]
push edi
mov edi, dword [0x1004d3f0]
mov dword [esp + 0x18], eax
dec edi
mov ebp, dword [edx + edi*4]
lea eax, [edx + edi*4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x78]
add eax, 0xffff
mov dword [esp + 0x24], ebx
mov dword [esp + 0x78], eax
movzx eax, ax
shl eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [ebx]
mov ebx, dword [esp + 0x30]
add eax, eax
mov dword [0x1004d410], ecx
movzx ecx, word [0x1004d3ec]
mov dword [esp + 0x28], ecx
mov eax, dword [ebp + eax*8]
mov dword [ebx + esi], eax
mov ebx, dword [esp + 0x14]
mov esi, dword [0x1004d3d0]
mov dword [0x1004d3f0], edi
mov dword [esp + 0x20], ebp
mov eax, dword [ebx]
cmp dword [edx + eax*8], esi
jb 0x1000762e
mov edx, dword [esp + 0x48]
movzx eax, word [0x1004d430]
cmp dword [edx + ebx], eax
ja 0x1000762e
mov eax, dword [esp + 0x34]
xor edx, edx
movzx eax, ax
div dword [0x1004d3f8]
mov ebx, dword [esp + 0x84]
imul edx, dword [esp + 0x7c]
lea ecx, [ebx + edi*4]
mov esi, dword [esp + 0x44]
inc esi
mov eax, edx
xor edx, edx
div dword [ecx + 0x8c]
mov eax, ebp
mov dword [ecx + 0x8c], edx
mov cx, si
xor edx, edx
sub cx, word [eax + edi*4 + 0x60]
mov eax, 0xbbd
sub cx, ax
lea edi, [edi + edi*2]
mov eax, dword [esp + 0x2c]
movzx eax, ax
movzx ecx, cx
imul ecx, eax
mov eax, dword [esp + 0x38]
or eax, 0xae
or word [0x1004d430], cx
mov ecx, 0xe8e
div ecx
mov ecx, dword [esp + 0x80]
mov eax, edx
xor edx, edx
div esi
mov esi, dword [0x1004d3d0]
movzx eax, dx
xor edx, edx
mov dword [esp + 0x1c], eax
mov eax, esi
div dword [ecx + edi*4 + 0x5c]
mov eax, dword [0x1004d3bc]
dec esi
sub eax, dword [esp + 0x34]
mov dword [ecx + edi*4 + 0x5c], edx
mov ecx, 0xffff
movzx eax, ax
xor edx, edx
mov dword [esp + 0x40], eax
mov ax, word [esp + 0x10]
add ax, cx
mov dword [0x1004d3d0], esi
mov word [esp + 0x10], ax
movzx esi, ax
mov eax, dword [esp + 0x70]
mov ebp, dword [esp + 0x1c]
movzx ecx, byte [esi + eax]
mov eax, esi
div ecx
movzx ecx, byte [0x1004d3ee]
lea eax, [esi + esi*2]
add edx, dword [ebx + eax*4 + 0x58]
mov eax, edx
mov esi, dword [esp + 0x3c]
xor edx, edx
mov bx, word [esp + 0x10]
div ecx
mov eax, dword [0x1004d3d8]
inc bx
sub dl, byte [0x1004d3c6]
mov ecx, dword [0x1004d434]
mov byte [0x1004d3c6], dl
xor edx, edx
sub ecx, dword [eax + edi*4]
mov eax, 0x1374
sub eax, dword [esp + 0x7c]
div dword [esi]
movzx eax, bp
mov dword [esi], edx
mov edx, dword [0x1004d3d4]
mov word [esp + 0x10], bx
mov word [0x1004d400], bx
mov edx, dword [edx + eax*4]
mov esi, dword [0x1004d3d8]
add ecx, edx
or ecx, dword [0x1004d424]
movzx eax, bx
add eax, eax
imul ecx, dword [esi + eax*8]
mov eax, dword [esp + 0x14]
add dword [eax + edi*4], ecx
mov edi, 0xae
mov ecx, dword [0x1004d3cc]
cmp ecx, edx
jle 0x10007320
mov esi, dword [esp + 0x40]
mov bl, byte [0x1004d3c7]
and esi, 0xe84
mov eax, dword [esp + 0x80]
xor edx, edx
xor bl, cl
mov eax, dword [eax + ecx*4]
div ecx
mov eax, edx
xor edx, edx
div edi
lea eax, [esi + ecx]
inc ecx
add ebp, edx
mov dword [0x1004d3e4], eax
mov edx, dword [0x1004d3d4]
movzx eax, bp
cmp ecx, dword [edx + eax*4]
jg 0x100072e2
mov byte [0x1004d3c7], bl
mov bx, word [esp + 0x10]
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x74]
mov edx, dword [0x1004d3f8]
mov ecx, dword [0x1004d3b8]
mov esi, dword [eax + edx*4 + 0x90]
cmp ecx, esi
jbe 0x1000735e
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x70]
movzx eax, byte [ecx + ebp]
mov dword [0x1004d3bc], eax
mov eax, ecx
or eax, edx
inc ecx
mov dword [0x1004d408], eax
cmp ecx, esi
ja 0x10007343
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x78], 0xffff
mov edx, dword [eax + edx]
movzx eax, bp
mov dword [esp + 0x48], edx
cmp edx, dword [ecx + eax*4]
je 0x1000761d
mov eax, dword [0x1004d40c]
mov ebp, ecx
mov esi, dword [esp + 0x24]
sub ebp, eax
mov ecx, esi
mov dword [esp + 0x64], ebp
sub ecx, eax
lea edi, [eax + edx*4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x1c], edi
movzx ecx, bx
mov eax, edx
sub eax, dword [edi + ebp]
movzx ebx, word [0x1004d414]
mov ebp, dword [esp + 0x80]
sub eax, ebx
sub eax, 0xae
mov dword [ebp + ecx*4 + 0x64], eax
mov eax, dword [0x1004d42c]
mov bx, word [eax + ecx*4]
mov eax, dword [0x1004d3d0]
movzx eax, ax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov word [0x1004d400], bx
mov eax, dword [eax]
mov ecx, dword [ebp + eax*4]
cmp ecx, edx
je 0x10007419
mov eax, dword [esi]
mov esi, dword [0x1004d3d4]
movzx esi, word [esi + eax*4]
mov eax, edx
sub eax, ecx
mov ecx, esi
imul ecx, dword [0x1004d428]
mov word [0x1004d428], cx
sub eax, 1
jne 0x10007400
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x30], ebp
cmp ebp, dword [esp + 0x38]
je 0x100075f5
mov eax, dword [esp + 0x78]
xor edx, edx
movzx ecx, ax
mov eax, 0xae
div ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x5c], ecx
lea ecx, [esi + ebp*4]
mov esi, dword [esp + 0x20]
shl ebp, 4
add ebp, dword [esp + 0x14]
sub esi, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x60], esi
nop word [eax + eax]
mov esi, dword [esi + ecx]
imul esi, dword [eax]
mov ecx, dword [0x1004d3f0]
mov eax, ecx
mov edx, dword [esp + 0x18]
dec ecx
add eax, eax
mov dword [0x1004d3f0], ecx
mov ecx, dword [0x1004d41c]
mov edi, edx
inc edx
movzx ebx, bx
mov dword [esp + 0x18], edx
push dword [ecx + eax*8]
mov ecx, dword [esp + 0x1c]
mov eax, 0xae2e9b79
push dword [esp + 0x30]
mul edx
shr edx, 0xa
imul eax, edx, 0x5e1
mov edx, dword [esp + 0x58]
sub ecx, eax
mov al, byte [esp + 0x18]
push ecx
sub al, 0x71
mov ecx, ebx
movzx eax, al
push eax
push 0xb11
push esi
push 0x1c12
push edi
push dword [ebp]
call fcn.100069f0
mov ebp, dword [esp + 0x60]
mov edi, eax
mov eax, dword [0x1004d42c]
xor edx, edx
movzx ecx, word [0x1004d400]
mov ebp, dword [eax + ebp*4 + 0x5c]
mov eax, dword [0x1004d3d8]
mov ebx, dword [eax + ecx*4]
mov eax, dword [esp + 0x4c]
mov esi, eax
dec eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [0x1004d3b4]
div eax
movzx eax, byte [0x1004d440]
mov byte [esp + 0x7c], dl
mov edx, dword [0x1004d404]
movzx ecx, byte [edx + ecx]
movzx edx, word [0x1004d3ec]
imul ecx, eax
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x34], eax
movzx eax, ax
push eax
mov byte [esp + 0x7c], cl
push dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
push edx
push dword [esp + 0x88]
mov edx, dword [esp + 0x60]
push dword [0x1004d43c]
mov dword [esp + 0x74], eax
movzx eax, cx
mov ecx, ebp
push esi
mov esi, dword [esp + 0x6c]
add eax, edi
push eax
mov eax, dword [esp + 0x58]
add eax, esi
push eax
push ebx
call fcn.100069f0
add esp, 0x48
mov dword [0x1004d440], eax
mov edx, dword [esp + 0x34]
inc esi
movzx ecx, word [0x1004d428]
mov ebp, dword [esp + 0x44]
dec dword [0x1004d3e0]
add ebp, 0x10
and ecx, dword [edx]
xor edx, edx
and eax, ecx
mov bx, word [0x1004d400]
mov ecx, dword [esp + 0x5c]
add eax, dword [0x1004d424]
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], ebp
div dword [ecx]
mov dword [ecx], edx
mov ecx, dword [esp + 0x34]
add ecx, 4
mov dword [esp + 0x34], ecx
cmp esi, dword [esp + 0x38]
je 0x100075ed
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x60]
jmp 0x10007480
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc edx
mov ecx, dword [esp + 0x20]
add edi, 4
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x64]
movzx eax, ax
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], edi
cmp edx, dword [ecx + eax*4]
jne 0x100073a5
mov eax, dword [0x1004d3b4]
or eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [0x1004d3b4]
pop edi
pop esi
pop ebp
or eax, ecx
pop ebx
add esp, 0x58
ret