Function at 0x62c7d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov ecx, dword [esp + 0x30]
mov al, byte [ecx + 0xc]
neg al
push ebx
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x4c]
sbb eax, eax
mov dword [esp + 0x10], eax
sub ebp, edi
mov eax, 0x38e38e39
imul ebp
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea edx, [ebx + ebx*8]
sub edi, edx
mov dword [esp + 0x28], ebp
lea eax, [esi + esi*8]
sub ebp, eax
mov dword [esp + 0x1c], edi
mov edi, dword [ecx + 4]
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov dword [esp + 0x2c], ebp
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
mov edx, dword [esp + 0x2c]
lea eax, [ebp + ebp*8]
sub edi, eax
mov eax, dword [edx*4 + 0x7d8994]
lea edx, [eax + esi*4]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [eax*4 + 0x7d8994]
lea eax, [edx + ebx*4]
mov edx, dword [edi*4 + 0x7d8994]
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
lea edx, [edx + ebp*4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edi
lea edi, [esp + 0x24]
mov eax, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edx
call fcn.0062bd50
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, eax
lea eax, [ecx + edx]
test eax, eax
mov dword [esp + 0x4c], edi
jne 0x62c8bf
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x4c], edx
mov edi, edx
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
lea eax, [eax + eax*8]
mov edx, eax
mov eax, ecx
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [eax*4 + 0x7d8994]
lea eax, [eax + edx*4]
cmp dword [esp + 0x28], ecx
jge 0x62c951
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x2c]
setg cl
xor edx, edx
test eax, eax
setg dl
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 2
sub ecx, edx
mov edx, dword [esp + 0x18]
sub ecx, esi
add ecx, edx
lea ecx, [edi + ecx*4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], esi
mov edi, ecx
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jge 0x62c997
mov edx, dword [esp + 0x1c]
mov ebp, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], 1
jmp 0x62c9c0
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jle 0x62c92d
sub ecx, eax
mov al, byte [esp + 0x10]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x28], ebx
mov bl, al
mov esi, dword [esp + 0x44]
mov bh, bl
mov dword [esp + 0x2c], ecx
mov edx, ecx
shr ecx, 2
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x4c]
mov eax, edx
add esi, eax
jmp 0x62c931
jle 0x62c9bc
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x62c9bc
cmp ebx, ebp
jne 0x62c9b3
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], eax
jmp 0x62c9bc
inc ebp
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x62ca2c
mov edx, dword [ecx*4 + 0x7d8994]
mov eax, dword [edi]
mov dword [esp + 0x44], edx
cdq
idiv dword [ecx*4 + 0x7d896c]
mov ecx, dword [esp + 0x10]
add edi, 4
xor edx, ecx
mov ecx, dword [esp + 0x44]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x62c9f2
jmp dword [eax*4 + 0x62cb64]
mov byte [esi + 1], dl
shr edx, 8
jmp case.0x62c9f2.1
mov eax, edx
mov byte [esi + 2], dl
shr eax, 8
shr edx, 0x10
jmp 0x62ca21
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, edx
mov byte [esi + 3], dl
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 1], al
mov byte [esi], dl
mov edx, dword [esp + 0x40]
add esi, ecx
mov ecx, dword [esp + 0x18]
add ecx, ebp
lea eax, [edi + ecx*4]
cmp edi, eax
mov dword [esp + 0x44], eax
jae 0x62ca6c
lea ecx, [ecx]
mov eax, dword [edi]
xor eax, dword [esp + 0x10]
mov ecx, eax
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 3], al
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
mov byte [esi], al
mov eax, dword [esp + 0x44]
add edi, 4
mov byte [esi + 1], cl
add esi, 4
cmp edi, eax
jb 0x62ca40
test edx, edx
je 0x62cafe
cmp ebp, ebx
mov ecx, dword [edx*4 + 0x7d8994]
mov eax, 9
jl 0x62ca88
mov eax, dword [esp + 0x1c]
cmp edx, eax
jge 0x62ca9e
lea esp, [esp]
cmp dword [edx*4 + 0x7d8994], ecx
jne 0x62ca9e
inc edx
cmp edx, eax
jl 0x62ca90
mov eax, dword [edi]
shl edx, 2
mov ebx, 0x7d8990
sub ebx, edx
cdq
idiv dword [ebx]
mov ebx, dword [esp + 0x10]
lea edx, [ecx - 1]
xor eax, ebx
cmp edx, 3
ja case.default.0x62cabb
jmp dword [edx*4 + 0x62cb74]
mov byte [esi + 1], al
shr eax, 8
mov byte [esi], al
add esi, ecx
jmp 0x62cb02
mov edx, eax
mov byte [esi + 2], al
shr edx, 8
shr eax, 0x10
mov byte [esi + 1], dl
mov byte [esi], al
add esi, ecx
jmp 0x62cb02
mov edx, eax
shr edx, 8
mov byte [esi + 2], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 3], al
shr eax, 0x18
mov byte [esi + 1], dl
mov byte [esi], al
add esi, ecx
jmp 0x62cb02
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x48], eax
jle 0x62cb4c
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea eax, [ecx + edx]
add eax, dword [esp + 0x30]
jmp 0x62cb20
mov edi, dword [esp + 0x48]
dec edi
cmp esi, eax
mov dword [esp + 0x48], edi
jae 0x62cb3a
mov edx, edi
mov edi, dword [esp + 0x20]
mov byte [esi], bl
inc esi
cmp edx, edi
jg 0x62cb20
mov al, byte [ecx]
pop edi
pop esi
xor al, 0x80
pop ebp
mov byte [ecx], al
mov eax, dword [esp + 8]
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x34]
mov cl, byte [eax]
pop edi
pop esi
xor cl, 0x80
pop ebp
mov byte [eax], cl
mov eax, dword [esp + 8]
pop ebx
add esp, 0x2c
ret