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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
xor edx, edx
mov ecx, dword [ebx + 0x1400]
mov ebp, dword [ebx + 0x1404]
mov ax, word [ebx + 0x1808]
push esi
cmp ecx, edx
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
mov word [esp + 0x24], ax
je 0x100a07f5
cmp ebp, edx
je 0x100a07f5
mov dword [esp + 0x4c], edx
xor eax, eax
cmp word [ecx], 0
je 0x100a02b6
mov esi, edx
and esi, 0xffff
inc edx
mov word [ebp + esi*2], ax
mov edi, dword [esp + 0x4c]
xor esi, esi
mov si, word [ecx]
add edi, esi
mov dword [esp + 0x4c], edi
inc eax
add ecx, 2
cmp ax, 0x7fff
jbe 0x100a0293
lea ecx, [esp + 0x48]
xor eax, eax
dec edx
push ecx
push ebp
mov word [esp + 0x50], ax
mov word [esp + 0x52], dx
mov dword [esp + 0x58], eax
call fcn.100a0800
mov eax, 1
mov ecx, 5
cmp word [esp + 0x24], ax
lea esi, [esp + 0x48]
mov edi, ebx
mov dword [esp + 0x14], eax
rep movsd dword es:[edi], dword [esi]
jbe 0x100a04d4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
xor esi, esi
dec eax
and eax, 0xffff
mov edi, 0xff
lea edx, [ebx + 8]
inc eax
mov bx, word [edx - 8]
cmp bx, word [edx - 6]
je 0x100a0329
mov ebx, dword [edx]
cmp ebx, edi
jge 0x100a0329
mov edi, ebx
mov ecx, esi
inc esi
add edx, 0x14
dec eax
jne 0x100a0315
cmp ecx, 0xffffffff
je 0x100a04cd
mov edx, dword [esp + 0x88]
lea ecx, [ecx + ecx*4]
lea edi, [esp + 0x48]
lea esi, [edx + ecx*4]
mov ecx, 5
mov dword [esp + 0x2c], esi
rep movsd dword es:[edi], dword [esi]
mov cl, byte [esp + 0x55]
mov al, byte [esp + 0x54]
mov dl, byte [esp + 0x57]
mov bl, byte [esp + 0x56]
mov esi, dword [esp + 0x48]
sub cl, al
mov al, byte [esp + 0x58]
sub dl, bl
mov bl, byte [esp + 0x59]
and esi, 0xffff
sub bl, al
mov eax, dword [esp + 0x4a]
and eax, 0xffff
sub eax, esi
inc eax
cmp dl, cl
ja 0x100a03a5
cmp cl, bl
jb 0x100a03a1
push eax
mov eax, dword [esp + 0x14]
push 0x100a08a0
lea ecx, [eax + esi*2]
push ecx
jmp 0x100a03c7
cmp dl, cl
jb 0x100a03b9
cmp dl, bl
jb 0x100a03b9
mov edx, dword [esp + 0x10]
push eax
push 0x100a08c0
lea eax, [edx + esi*2]
push eax
jmp 0x100a03c7
mov ecx, dword [esp + 0x10]
push eax
push 0x100a08f0
lea edx, [ecx + esi*2]
push edx
call fcn.100c36d0
mov ecx, dword [esp + 0x4a]
mov eax, dword [esp + 0x48]
and ecx, 0xffff
xor ebp, ebp
mov ebx, eax
dec ecx
and eax, 0xffff
cmp eax, ecx
jg 0x100a0417
mov edx, dword [esp + 0x4c]
shr edx, 1
cmp ebp, edx
jae 0x100a0417
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ax, word [esi + eax*2]
xor esi, esi
and eax, 0xffff
mov si, word [edi + eax*2]
add ebp, esi
inc ebx
mov eax, ebx
and eax, 0xffff
cmp eax, ecx
jle 0x100a03ee
mov eax, dword [esp + 0x50]
mov ecx, 5
lea esi, [esp + 0x48]
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx - 1]
lea ecx, [esp + 0x5c]
mov word [esp + 0x5e], dx
mov edx, dword [esp + 0x10]
inc eax
push ecx
push edx
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], eax
call fcn.100a0800
mov edi, dword [esp + 0x2c]
mov ecx, 5
lea esi, [esp + 0x5c]
lea edx, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x4c]
mov ecx, 5
lea esi, [esp + 0x48]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
sub eax, ebp
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x10]
inc ecx
push edx
push eax
mov word [esp + 0x78], bx
mov dword [esp + 0x80], ecx
call fcn.100a0800
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov eax, edx
lea esi, [esp + 0x70]
and eax, 0xffff
inc edx
cmp dx, word [esp + 0x24]
mov dword [esp + 0x14], edx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x88]
mov ebx, eax
lea edi, [eax + ecx*4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
jb 0x100a02fd
jmp 0x100a04d4
mov ebx, dword [esp + 0x88]
cmp word [esp + 0x14], 0
jbe 0x100a05e7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
add ebx, 0x1409
and eax, 0xffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x24]
mov ecx, 5
lea edi, [esp + 0x48]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
mov cx, word [esp + 0x48]
mov dword [esp + 0x20], ebp
cmp cx, word [esp + 0x4a]
mov dword [esp + 0x1c], ebp
ja 0x100a059e
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x4a]
mov edx, dword [esp + 0x10]
and eax, 0xffff
and edi, 0xffff
sub edi, eax
lea esi, [edx + eax*2]
inc edi
mov cx, word [esi]
mov ebx, dword [esp + 0x18]
mov eax, ecx
xor edx, edx
and eax, 0xffff
add esi, 2
mov dx, word [ebx + eax*2]
mov al, cl
shl al, 3
and eax, 0xff
mov ebx, dword [esp + 0x1c]
imul eax, edx
add ebp, eax
mov eax, ecx
shr eax, 5
shr cx, 0xa
shl al, 3
shl cl, 3
and eax, 0xff
and ecx, 0xff
imul eax, edx
imul ecx, edx
mov edx, dword [esp + 0x20]
add ebx, eax
add edx, ecx
dec edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edx
jne 0x100a053d
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
mov eax, ebp
xor edx, edx
add ebx, 4
div ecx
xor edx, edx
mov dword [esp + 0x28], ebx
mov byte [ebx - 3], al
mov eax, dword [esp + 0x1c]
div ecx
xor edx, edx
mov byte [ebx - 4], al
mov eax, dword [esp + 0x20]
div ecx
add dword [esp + 0x24], 0x14
mov byte [ebx - 5], al
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x100a04fb
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x88]
mov eax, dword [ebx + 0x180c]
xor edx, edx
cmp eax, edx
je 0x100a0653
mov eax, dword [esp + 0x14]
cmp ax, dx
jbe 0x100a07f8
mov ecx, 5
mov esi, ebx
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ax, word [esp + 0x48]
mov ecx, dword [esp + 0x48]
cmp ax, word [esp + 0x4a]
ja 0x100a063e
mov esi, dword [esp + 0x18]
mov eax, ecx
and eax, 0xffff
mov ax, word [ebp + eax*2]
and eax, 0xffff
inc ecx
mov word [esi + eax*2], dx
cmp cx, word [esp + 0x4a]
jbe 0x100a061d
mov eax, dword [esp + 0x14]
inc edx
add ebx, 0x14
cmp dx, ax
jb 0x100a0600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], edx
cmp ax, dx
jbe 0x100a07f8
mov esi, ebx
and eax, 0xffff
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
mov ecx, 5
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov dx, word [esp + 0x48]
mov ecx, dword [esp + 0x48]
cmp dx, word [esp + 0x4a]
mov dword [esp + 0x20], ecx
ja 0x100a07cf
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0x100
and eax, 0xffff
mov ax, word [ebp + eax*2]
xor ebp, ebp
mov edx, eax
mov dword [esp + 0x44], eax
mov cl, al
shr edx, 5
shr ax, 0xa
shl cl, 3
shl dl, 3
shl al, 3
mov byte [esp + 0x30], cl
mov byte [esp + 0x34], dl
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov byte [esp + 0x38], al
and ebx, 0xff
mov eax, dword [esp + 0x38]
and edi, 0xff
and eax, 0xff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
jmp 0x100a06fd
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x88]
mov eax, ebp
and eax, 0xffff
lea ecx, [ecx + eax*4 + 0x1408]
xor eax, eax
mov al, byte [ecx + 2]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*8]
lea edx, [eax + edx*2]
lea esi, [eax + edx*4]
xor eax, eax
mov al, byte [ecx + 1]
and esi, 0xffff
sub eax, edi
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea edi, [eax + edx*2]
mov edx, dword [esp + 0x40]
xor eax, eax
and edi, 0xffff
mov al, byte [ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
shl ecx, 3
sub ecx, eax
shl ecx, 2
mov eax, ecx
and eax, 0xffff
add eax, esi
add eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
test ax, ax
je 0x100a079d
cmp ax, word [esp + 0x2c]
jae 0x100a078f
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebp
inc ebp
cmp bp, word [esp + 0x14]
jb 0x100a06f9
jmp 0x100a07a1
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x24]
and eax, 0xffff
mov ebp, dword [esp + 0x10]
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x20]
inc eax
cmp ax, word [esp + 0x4a]
mov dword [esp + 0x20], eax
jbe 0x100a0696
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esi, 0x14
dec eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
jne 0x100a0673
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret