Function at 0x1002a1a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b59b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov ax, word [ebp + 8]
cmp ax, 1
je 0x1002a20c
cmp ax, 2
je 0x1002a20c
mov dx, word [ebp + 0xc]
cmp dx, 1
je 0x1002a210
cmp dx, 2
je 0x1002a210
cmp dx, 3
je 0x1002a210
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dx, word [ebp + 0xc]
movzx eax, ax
mov ecx, dword [ebp + 0x18]
dec eax
je 0x1002a224
dec eax
jne 0x1002a22a
mov dword [ecx], 0x17
jmp 0x1002a22a
mov dword [ecx], 0x19
mov ecx, dword [ecx]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
movzx eax, dx
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x20]
dec eax
je 0x1002a256
dec eax
je 0x1002a24e
dec eax
jne 0x1002a25c
mov dword [edi], 0x49e
jmp 0x1002a25c
mov dword [edi], 0x4cd
jmp 0x1002a25c
mov dword [edi], 0x2ad
mov bl, byte [ecx + ebx - 0xb]
mov edx, dword [edi]
lea eax, [edx + ecx]
cmp eax, esi
ja 0x1002a61c
mov dword [ebp - 4], 0
push edx
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x18]
movzx eax, word [ebp + 8]
dec eax
je 0x1002a2b5
dec eax
jne 0x1002a2cd
mov edx, dword [edi]
test edx, edx
je 0x1002a2cd
mov edi, esi
sub edi, ecx
mov al, byte [ecx]
add al, bl
mov byte [edi + ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x1002a2a6
jmp 0x1002a2cd
mov edx, dword [edi]
test edx, edx
je 0x1002a2cd
mov edi, esi
sub edi, ecx
nop
mov al, byte [ecx]
xor al, bl
mov byte [edi + ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x1002a2c0
lea ecx, [esi + 0x10]
mov eax, 0xf3c3
cmp word [ecx], ax
jne 0x1002a411
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ecx + 0x8e]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.1009e430
cmp dword [ebp - 0x28], 0x929849b8
jne 0x1002a411
mov bl, 1
mov edi, dword [ebp - 0x1c]
mov eax, edi
dec eax
je 0x1002a342
dec eax
jne 0x1002a372
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0x14]
movzx edx, byte [ecx + 0xb]
shl edx, 8
movzx eax, byte [ecx + 0xa]
add edx, eax
shl edx, 8
movzx eax, byte [ecx + 9]
add edx, eax
shl edx, 8
movzx eax, byte [ecx + 8]
add edx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
jmp 0x1002a372
movzx ecx, byte [esi + 0x28e]
shl ecx, 8
movzx eax, byte [esi + 0x28d]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x28c]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x28b]
add ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
dec edi
je 0x1002a3c3
dec edi
jne 0x1002a5f1
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0x14]
movzx edx, byte [ecx + 3]
shl edx, 8
movzx eax, byte [ecx + 2]
add edx, eax
shl edx, 8
movzx eax, byte [ecx + 1]
add edx, eax
shl edx, 8
movzx eax, byte [ecx]
add edx, eax
mov eax, dword [ebp + 0x28]
mov dword [eax], edx
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [esi + 0x19f]
shl ecx, 8
movzx eax, byte [esi + 0x19e]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19d]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19c]
add ecx, eax
mov eax, dword [ebp + 0x28]
mov dword [eax], ecx
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x8b55
cmp word [esi], ax
jne 0x1002a5ef
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [esi + 0x44]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.1009e430
cmp dword [ebp - 0x28], 0x7c52f6df
jne 0x1002a5ef
lea ecx, [esi + 0xd1]
mov eax, 0x73ff
cmp word [ecx], ax
jne 0x1002a5ef
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ecx + 0x11]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.1009e430
cmp dword [ebp - 0x28], 0x9aabe100
jne 0x1002a5ef
movzx ecx, byte [esi + 0x27a]
shl ecx, 8
movzx eax, byte [esi + 0x279]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x278]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x277]
add ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
cmp byte [esi + 0xfe], 0xbe
jne 0x1002a54d
cmp byte [esi + 0x128], 0x68
jne 0x1002a54d
mov bl, 1
movzx ecx, byte [esi + 0x102]
shl ecx, 8
movzx eax, byte [esi + 0x101]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x100]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0xff]
add ecx, eax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
movzx ecx, byte [esi + 0x12c]
shl ecx, 8
movzx eax, byte [esi + 0x12b]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x12a]
add ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x129]
add ecx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
add edx, dword [ebp - 0x18]
cmp byte [edx + 0xfe], 0xbe
jne 0x1002a5ef
cmp byte [edx + 0x128], 0x68
jne 0x1002a5ef
mov bl, 1
movzx ecx, byte [edx + 0x102]
shl ecx, 8
movzx eax, byte [edx + 0x101]
add ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x100]
add ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0xff]
add ecx, eax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
movzx ecx, byte [edx + 0x12c]
shl ecx, 8
movzx eax, byte [edx + 0x12b]
add ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x12a]
add ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x129]
add ecx, eax
mov eax, dword [ebp + 0x2c]
mov dword [eax], ecx
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor bl, bl
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret