Function at 0x4060b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
test eax, eax
je 0x4060e0
lea edx, [ebp - 0x208]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4060d4
jmp 0x4060e7
mov byte [ebp - 0x208], 0
push ebx
mov ebx, dword [ebp + 0xc]
xor ebx, dword [ebp + 0x18]
cmp dword [ebp + 8], 0x14
push esi
push edi
mov dword [ebp + 0xc], ebx
jl 0x406153
cmp byte [ebp - 0x208], 0
jne 0x406145
mov eax, str.0123456789ABCDEFGHJKMNPQRTUVWXYZ
mov dword [ebp - 8], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406111
sub eax, ecx
push 5
mov ebx, eax
mov byte [ebp - 0x208], 0x32
lea esi, [ebp - 0x207]
pop edi
push ebx
call fcn.00402e80
mov al, byte [eax + str.0123456789ABCDEFGHJKMNPQRTUVWXYZ]
mov byte [esi], al
inc esi
dec edi
pop ecx
jne 0x40612c
mov ebx, dword [ebp + 0xc]
mov byte [esi], 0
mov ecx, dword [ebp + 0x2c]
xor eax, eax
cmp cx, ax
je 0x406166
push 5
jmp 0x406182
cmp byte [ebp - 0x208], 0
jne 0x406145
mov eax, str.Error15
jmp 0x40655a
cmp word [ebp + 0x28], ax
je 0x406170
push 4
jmp 0x406182
cmp word [ebp + 0x24], ax
je 0x40617a
push 3
jmp 0x406182
cmp word [ebp + 0x20], ax
je 0x406185
push 2
pop eax
jmp 0x40618e
xor eax, eax
cmp word [ebp + 0x1c], ax
setne al
cmp eax, 5
lea esi, [ebp - 0x408]
jl 0x4061b0
mov edx, ecx
shr edx, 8
mov byte [ebp - 0x408], dl
mov byte [ebp - 0x407], cl
lea esi, [ebp - 0x406]
cmp eax, 4
jl 0x4061c5
mov ecx, dword [ebp + 0x28]
mov edx, ecx
shr edx, 8
mov byte [esi], dl
mov byte [esi + 1], cl
add esi, 2
cmp eax, 3
jl 0x4061da
mov ecx, dword [ebp + 0x24]
mov edx, ecx
shr edx, 8
mov byte [esi], dl
mov byte [esi + 1], cl
add esi, 2
cmp eax, 2
jl 0x4061ef
mov ecx, dword [ebp + 0x20]
mov edx, ecx
shr edx, 8
mov byte [esi], dl
mov byte [esi + 1], cl
add esi, 2
cmp eax, 1
jl 0x406204
mov eax, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
add esi, 2
call fcn.00402e0f
movzx eax, ax
mov ecx, eax
shr ecx, 8
mov byte [esi], cl
mov byte [esi + 1], al
mov ecx, ebx
shr ecx, 0x18
lea eax, [esi + 2]
mov byte [eax], cl
inc eax
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, ebx
inc eax
shr ecx, 8
mov byte [eax], cl
inc eax
mov byte [eax], bl
mov ebx, dword [ebp + 0x30]
lea esi, [eax + 1]
test ebx, ebx
je 0x40626a
cmp byte [ebx], 0
je 0x40626a
push 0
push ebx
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
jmp 0x406254
mov cl, byte [eax]
mov byte [esi], cl
inc esi
dec eax
cmp eax, ebx
jae 0x40624f
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40625e
sub eax, edx
mov byte [esi], al
inc esi
lea eax, [ebp - 0x408]
sub esi, eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x608]
push eax
mov dword [ebp + 0x14], esi
call fcn.00402dbf
pop ecx
lea eax, [ebp - 0x608]
pop ecx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406293
sub eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x608]
push eax
call fcn.0040258a
xor esi, esi
add esp, 0xc
cmp dword [ebp + 0x14], esi
mov dword [0x44e15c], eax
jle 0x4062d2
push 0x100
call fcn.00402e80
xor byte [ebp + esi - 0x408], al
inc esi
cmp esi, dword [ebp + 0x14]
pop ecx
jl 0x4062ba
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebp + 8]
call fcn.00405af6
add esp, 0x10
test eax, eax
je 0x406541
cmp dword [ebp + 8], 0x14
mov byte [0x44e170], 0
jl 0x4064e8
call fcn.004033e6
mov edi, eax
mov dword [ebp + 0x18], edi
call fcn.004033e6
mov dword [ebp - 4], eax
call fcn.004033e6
cmp dword [ebp + 8], 0x1d
mov dword [ebp + 0xc], eax
jne 0x406335
push 1
push edi
call fcn.0040453f
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x40636d
push dword [ebp - 4]
push 8
push edi
call fcn.0040363e
movzx eax, byte [ebp + esi - 0x408]
push eax
push dword [ebp + 0xc]
call fcn.00403448
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004045a3
add esp, 0x20
inc esi
cmp esi, dword [ebp + 0x14]
jl 0x40633c
push 6
pop ebx
mov esi, 0x44e170
call fcn.0040349c
push 0
push eax
push edi
jmp 0x406424
push 0x20
push dword [ebp + 0xc]
call fcn.00403448
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call fcn.00404944
push dword [ebp - 4]
call fcn.00404564
push dword [ebp + 0xc]
mov edi, eax
push 0xfffffffffffffffb
push dword [ebp + 0x18]
call fcn.0040363e
push dword [ebp + 0xc]
push dword [ebp + 0x18]
call fcn.0040341b
add esp, 0x2c
cmp dword [ebp + 8], 0x1d
je 0x406406
call fcn.0040349c
push 0
push eax
push dword [ebp + 0x18]
call fcn.004032c7
add esp, 0xc
test eax, eax
jne 0x406406
cmp edi, 0x10
jge 0x4063ec
mov al, byte [edi + 0x4070dc]
mov byte [esi], al
jmp 0x406402
mov al, byte [edi + str.0123456789ABCDEFGHJKMNPQRTUVWXYZ]
mov byte [esi], al
inc esi
dec ebx
jne 0x4063ff
push 6
mov byte [esi], 0x2d
pop ebx
inc esi
mov byte [esi], 0x47
inc esi
dec ebx
jmp 0x406419
mov al, byte [edi + str.0123456789ABCDEFGHJKMNPQRTUVWXYZ]
mov byte [esi], al
inc esi
dec ebx
jne 0x406419
push 6
mov byte [esi], 0x2d
inc esi
pop ebx
call fcn.0040349c
push 0
push eax
push dword [ebp + 0x18]
call fcn.004032c7
add esp, 0xc
test eax, eax
jne 0x406383
cmp dword [ebp + 8], 0x1d
jne 0x40644a
test ebx, ebx
jne 0x406445
push 6
mov byte [esi], 0x2d
pop ebx
inc esi
mov byte [esi], 0x31
inc esi
dec ebx
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x406466
cmp byte [eax], 0
je 0x406466
test ebx, ebx
jne 0x406461
push 6
mov byte [esi], 0x2d
pop ebx
inc esi
mov byte [esi], 0x33
inc esi
dec ebx
cmp dword [ebp - 8], 0
je 0x4064ac
test ebx, ebx
jne 0x406477
push 6
mov byte [esi], 0x2d
pop ebx
inc esi
lea eax, [ebp - 0x208]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406480
sub eax, edx
lea eax, [ebp + eax - 0x209]
jmp 0x4064a2
mov cl, byte [eax]
mov byte [esi], cl
inc esi
dec eax
dec ebx
jne 0x4064a2
push 6
mov byte [esi], 0x2d
pop ebx
inc esi
lea ecx, [ebp - 0x208]
cmp eax, ecx
jae 0x406492
test ebx, ebx
je 0x4064be
push ebx
push 0x30
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
mov eax, 0x44e170
mov byte [esi], 0
call fcn.004042df
push dword [ebp + 0xc]
call fcn.004033fd
push dword [ebp - 4]
call fcn.004033fd
push dword [ebp + 0x18]
call fcn.004033fd
add esp, 0xc
jmp 0x406555
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
jle 0x406555
test ebx, ebx
jle 0x406508
mov edi, 0x44e170
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4064f9
mov esi, 0x4070c0
movsw word es:[edi], word [esi]
movzx eax, byte [ebp + ebx - 0x407]
push eax
movzx eax, byte [ebp + ebx - 0x408]
push eax
push str._02X_02X
push 0
push 0x44e170
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
inc ebx
inc ebx
cmp ebx, dword [ebp + 0x14]
jl 0x4064ef
jmp 0x406555
mov eax, dword [str.Error24]
mov dword [0x44e170], eax
mov eax, dword [0x4070b0]
mov dword [0x44e174], eax
mov eax, 0x44e170
pop edi
pop esi
pop ebx
leave
ret