Function at 0x1002f2e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x20
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], ebx
call fcn.1002ebc0
add esp, 0xc
mov dword [ebx + 0x20], eax
mov ecx, ebx
lea edx, [esi + 0x20]
sub edi, ebx
jmp 0x1002f320
mov byte [ecx], 0
lea ecx, [ecx + 1]
mov al, byte [edi + ecx - 1]
neg al
mov byte [ecx - 1], al
dec edx
jne 0x1002f320
push 0x20
push ebx
push 0xffffffffffffffff
call fcn.1002ebc0
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebx + 0x20]
xor edx, edx
mov dword [ebx + 0x24], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ecx
sub edi, eax
mov al, byte [ebx + edx + 0x18]
lea ecx, [ebp - 0xc]
add ecx, edx
inc edx
add al, byte [ecx + edi]
mov byte [ecx], al
cmp edx, 8
jl 0x1002f355
mov byte [ebx + 0x28], 0
xor edx, edx
mov byte [ebx + 0x128], 0
mov cl, byte [ebx + edx]
test cl, cl
je 0x1002f39c
xor eax, eax
test esi, esi
je 0x1002f397
cmp byte [eax + ebx + 0x29], cl
je 0x1002f390
inc eax
cmp eax, esi
jb 0x1002f383
jmp 0x1002f397
add eax, 0x29
add eax, ebx
jne 0x1002f39c
mov byte [ebx + esi + 0x29], cl
inc esi
inc edx
cmp edx, 0x20
jl 0x1002f376
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 1]
and eax, 0x80000001
jns 0x1002f3b5
dec eax
or eax, 0xfffffffe
inc eax
lea edi, [ebx + 0x29]
je 0x1002f3e1
mov ecx, 0xff
nop
xor eax, eax
test esi, esi
je 0x1002f3d6
cmp byte [eax + edi], cl
je 0x1002f3d2
inc eax
cmp eax, esi
jb 0x1002f3c6
jmp 0x1002f3d6
add eax, edi
jne 0x1002f3da
mov byte [edi + esi], cl
inc esi
dec ecx
test ecx, ecx
jg 0x1002f3c0
jmp 0x1002f40d
mov ecx, 1
xor eax, eax
test esi, esi
je 0x1002f400
lea esp, [esp]
cmp byte [eax + edi], cl
je 0x1002f3fc
inc eax
cmp eax, esi
jb 0x1002f3f0
jmp 0x1002f400
add eax, edi
jne 0x1002f404
mov byte [edi + esi], cl
inc esi
inc ecx
cmp ecx, 0x100
jl 0x1002f3e6
lea esi, [ebp - 0x14]
mov dword [ebp - 0x1c], 0x10
mov ebx, edi
xor edx, edx
mov eax, 0xff
mov cl, byte [ebx]
dec eax
mov dword [ebp - 0x28], eax
movzx eax, byte [esi]
inc esi
add edx, eax
movzx eax, cl
add edx, eax
mov eax, 0x80808081
mov dword [ebp - 0x20], edx
mul edx
shr edx, 7
imul eax, edx, 0xffffff01
mov edx, dword [ebp - 0x20]
add edx, eax
dec dword [ebp - 0x1c]
mov al, byte [edx + edi]
mov byte [ebx], al
mov byte [edx + edi], cl
jne 0x1002f460
mov dword [ebp - 0x1c], 0x10
sub esi, 0x10
mov eax, dword [ebp - 0x28]
inc ebx
test eax, eax
jne 0x1002f420
mov ebx, dword [ebp - 0x24]
mov ecx, 1
lea esi, [ebx + 0x28]
movzx eax, byte [esi + ecx]
mov byte [eax + esi + 0x100], cl
inc ecx
cmp ecx, 0xff
jle 0x1002f473
mov edi, 0xffffffd8
sub edi, ebx
mov edi, edi
lea eax, [edi + esi]
and eax, 0x8000001f
jns 0x1002f49f
dec eax
or eax, 0xffffffe0
inc eax
mov dl, byte [esi]
lea ecx, [eax + ebx]
movzx eax, byte [ecx]
add al, 0x6b
add al, dl
mov byte [esi + 0x200], al
movzx eax, byte [ecx]
add al, 0x4e
add al, dl
mov byte [esi + 0x300], al
movzx eax, byte [ecx]
sub al, 0x5a
xor al, dl
mov byte [esi + 0x400], al
inc esi
lea eax, [edi + esi]
cmp eax, 0x100
jl 0x1002f490
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 2]
and eax, 0x80000001
jns 0x1002f4e9
dec eax
or eax, 0xfffffffe
inc eax
lea ecx, [ebx + 0x328]
mov edx, 0x40
je 0x1002f550
jmp 0x1002f500
mov eax, dword [ebx + 0x20]
lea ecx, [ecx + 4]
xor dword [ecx - 0x104], eax
mov eax, dword [ebx + 0x24]
add dword [ecx - 0x104], eax
mov eax, dword [ebx + 0x20]
xor dword [ecx - 4], eax
mov eax, dword [ebx + 0x24]
add dword [ecx - 4], eax
mov eax, dword [ebx + 0x20]
xor dword [ecx + 0xfc], eax
mov eax, dword [ebx + 0x24]
add dword [ecx + 0xfc], eax
dec edx
jne 0x1002f500
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x20]
lea ecx, [ecx + 4]
sub dword [ecx - 0x104], eax
mov eax, dword [ebx + 0x24]
xor dword [ecx - 0x104], eax
mov eax, dword [ebx + 0x20]
sub dword [ecx - 4], eax
mov eax, dword [ebx + 0x24]
xor dword [ecx - 4], eax
mov eax, dword [ebx + 0x20]
sub dword [ecx + 0xfc], eax
mov eax, dword [ebx + 0x24]
xor dword [ecx + 0xfc], eax
dec edx
jne 0x1002f550
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret