Function at 0x4068d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4506f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x2c]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xc0], eax
xor eax, eax
mov dword [ebp - 0x98], edx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov ecx, dword [edx]
inc dword [ebp + ecx*4 - 0x44]
lea ecx, [ebp + ecx*4 - 0x44]
add edx, 4
dec esi
jne 0x406951
mov ecx, dword [ebp - 0xb0]
cmp dword [ebp - 0x44], ecx
jne 0x406983
mov dword [edi], eax
pop edi
mov dword [ebx], eax
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
mov dword [ebp - 0x88], edx
mov ecx, 1
cmp dword [ebp + ecx*4 - 0x44], eax
jne 0x40699c
inc ecx
cmp ecx, 0xf
jbe 0x406990
mov dword [ebp - 0x8c], ecx
cmp edx, ecx
jae 0x4069ae
mov dword [ebp - 0x88], ecx
mov edx, ecx
mov esi, 0xf
cmp dword [ebp + esi*4 - 0x44], eax
jne 0x4069bc
dec esi
jne 0x4069b3
mov dword [ebp - 0xa4], esi
cmp edx, esi
jbe 0x4069ce
mov dword [ebp - 0x88], esi
mov edx, esi
mov edi, 1
shl edi, cl
mov dword [ebx], edx
cmp ecx, esi
jae 0x4069f1
jmp 0x4069e0
sub edi, dword [ebp + ecx*4 - 0x44]
js 0x406ae9
inc ecx
add edi, edi
cmp ecx, esi
jb 0x4069e0
lea ecx, [esi*4]
lea ebx, [ebp + ecx - 0x44]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebx]
sub edi, ecx
mov dword [ebp - 0xd0], edi
js 0x406ae9
add ecx, edi
mov dword [ebx], ecx
xor ecx, ecx
dec esi
mov dword [ebp - 0x80], eax
je 0x406a2e
xor edi, edi
add ecx, dword [ebp + edi - 0x40]
add edi, 4
dec esi
mov dword [ebp + edi - 0x80], ecx
jne 0x406a20
mov esi, dword [ebp - 0x98]
xor edi, edi
jmp 0x406a40
mov ecx, dword [esi]
add esi, 4
mov dword [ebp - 0x90], esi
cmp ecx, eax
je 0x406a6f
mov esi, dword [ebp + ecx*4 - 0x84]
mov ebx, dword [ebp - 0xc0]
lea ecx, [ebp + ecx*4 - 0x84]
mov dword [ebx + esi*4], edi
inc esi
mov dword [ecx], esi
mov esi, dword [ebp - 0x90]
inc edi
cmp edi, dword [ebp - 0xb0]
jb 0x406a40
mov ecx, dword [ebp - 0xa0]
mov ecx, dword [ebp + ecx - 0x84]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp - 0x8c]
mov ebx, edx
xor edi, edi
neg ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa0], eax
cmp ecx, dword [ebp - 0xa4]
jg 0x406de8
mov esi, dword [ebp - 0xb4]
lea ecx, [ebp + ecx*4 - 0x44]
mov dword [ebp - 0xa8], ecx
jmp 0x406b02
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx]
mov dword [ebp - 0x9c], ecx
cmp ecx, eax
je 0x406dc6
jmp 0x406b20
dec dword [ebp - 0x9c]
lea eax, [ebx + edx]
cmp dword [ebp - 0x8c], eax
jle 0x406c94
mov ecx, dword [ebp - 0x9c]
inc ecx
sub ebx, edx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xbc], ebx
jmp 0x406b56
mov edx, dword [ebp - 0x88]
add dword [ebp - 0xbc], edx
mov edx, dword [ebp - 0xa4]
inc dword [ebp - 0x94]
mov ebx, eax
mov eax, dword [ebp - 0x88]
sub edx, ebx
cmp edx, eax
jbe 0x406b78
mov edx, eax
mov ecx, dword [ebp - 0x8c]
sub ecx, ebx
mov eax, 1
shl eax, cl
cmp eax, dword [ebp - 0xcc]
jbe 0x406bce
or edi, 0xffffffff
sub edi, dword [ebp - 0x9c]
add eax, edi
mov edi, dword [ebp - 0xa8]
cmp ecx, edx
jae 0x406bce
inc ecx
cmp ecx, edx
jae 0x406bce
jmp 0x406bb6
mov edi, dword [ebp - 0x98]
add edi, 4
mov dword [ebp - 0x98], edi
mov edi, dword [edi]
add eax, eax
cmp eax, edi
jbe 0x406bce
inc ecx
sub eax, edi
cmp ecx, edx
jb 0x406bb0
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
mov edx, 1
shl edx, cl
mov dword [ebp - 0xa0], edx
add edx, eax
cmp edx, 0x5a0
ja 0x406ae9
mov edi, dword [ebp - 0xc8]
lea edi, [edi + eax*8]
mov eax, dword [ebp - 0x94]
lea eax, [ebp + eax*4 - 0x114]
mov dword [ebp - 0xd8], eax
mov dword [eax], edi
mov eax, dword [ebp - 0xc4]
mov dword [eax], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], edi
test eax, eax
je 0x406c71
mov esi, dword [ebp - 0xac]
mov dl, byte [ebp - 0x88]
mov dword [ebp + eax*4 - 0x84], esi
mov byte [ebp - 0xb8], cl
mov ecx, dword [ebp - 0xbc]
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0xd8]
mov ecx, dword [ecx - 4]
mov esi, edi
sub esi, ecx
mov byte [ebp - 0xb7], dl
mov edx, dword [ebp - 0xb8]
sar esi, 3
sub esi, eax
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
jmp 0x406c79
mov eax, dword [ebp - 0xd4]
mov dword [eax], edi
mov ecx, dword [ebp - 0x88]
lea eax, [ebx + ecx]
cmp dword [ebp - 0x8c], eax
jg 0x406b50
mov edi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc0]
mov dl, cl
sub dl, bl
mov byte [ebp - 0xb7], dl
mov edx, dword [ebp - 0xb0]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x90]
cmp eax, edx
jb 0x406cc6
mov byte [ebp - 0xb8], 0xc0
jmp 0x406d08
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jae 0x406ce6
cmp eax, 0x100
sbb dl, dl
and dl, 0xa0
add dl, 0x60
mov byte [ebp - 0xb8], dl
mov esi, eax
jmp 0x406d01
sub eax, edx
mov edx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov dl, byte [eax + edx]
add dl, 0x50
mov byte [ebp - 0xb8], dl
mov edx, dword [ebp + 0x14]
mov esi, dword [eax + edx]
add dword [ebp - 0x90], 4
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, dword [ebp - 0xa0]
jae 0x406d54
mov ecx, dword [ebp - 0x98]
lea ecx, [ecx + eax*8]
jmp 0x406d30
mov edi, dword [ebp - 0xb8]
mov dword [ecx], edi
lea edi, [edx*8]
mov dword [ecx + 4], esi
add eax, edx
add ecx, edi
cmp eax, dword [ebp - 0xa0]
jb 0x406d30
mov edi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x8c]
dec ecx
mov eax, 1
shl eax, cl
test edi, eax
je 0x406d6e
xor edi, eax
shr eax, 1
test edi, eax
jne 0x406d66
mov edx, 1
mov ecx, ebx
shl edx, cl
xor edi, eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xac], edi
dec edx
and edx, edi
cmp edx, dword [ebp + eax*4 - 0x84]
je 0x406db3
sub ebx, dword [ebp - 0x88]
mov edx, 1
mov ecx, ebx
shl edx, cl
dec eax
dec edx
and edx, edi
cmp edx, dword [ebp + eax*4 - 0x84]
jne 0x406d91
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x9c], 0
mov edx, dword [ebp - 0x88]
jne 0x406b20
mov eax, dword [ebp - 0x8c]
add dword [ebp - 0xa8], 4
inc eax
mov dword [ebp - 0x8c], eax
cmp eax, dword [ebp - 0xa4]
jle 0x406b00
xor eax, eax
cmp dword [ebp - 0xd0], eax
je 0x406dfe
cmp dword [ebp - 0xa4], 1
je 0x406dfe
mov eax, 0xfffffffb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret