Function at 0x4168b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, edx
mov esi, eax
shr esi, 4
mov dword [ebp - 0x1c], ecx
mov edx, esi
shl edx, 4
mov ecx, eax
sub ecx, edx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], ecx
mov dword [ebx], 0
test eax, eax
je case.default.0x41690b
mov eax, dword [0x448364]
cmp eax, 3
ja case.default.0x41690b
jmp dword [eax*4 + 0x416dec]
xor ebx, ebx
test esi, esi
je 0x41694f
mov eax, dword [ebp - 0x1c]
sub eax, edi
mov esi, edi
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
add edx, esi
push edx
mov edx, 0x10
mov ecx, esi
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
add dword [ebp - 0x18], 0x10
inc ebx
add esi, 0x10
cmp ebx, dword [ebp - 0x20]
jb 0x416922
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x416977
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx]
push edx
mov edx, dword [ebp - 0x24]
lea ecx, [eax + edi]
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
add dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
je 0x416a7f
mov eax, dword [0x44836c]
sub eax, edi
mov dword [ebp - 0x28], eax
mov eax, edi
lea edx, [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x34], eax
xor eax, eax
test ebx, ebx
jne 0x4169ff
mov edx, dword [ebp - 0x34]
lea ecx, [ebp + eax - 0x14]
lea esi, [ecx + edx]
mov edx, dword [ebp - 0x28]
mov dl, byte [esi + edx]
xor dl, byte [esi]
mov byte [ecx], dl
mov edx, dword [0x44836c]
mov dl, byte [edx + eax + 1]
xor dl, byte [eax + edi + 1]
mov byte [ecx + 1], dl
mov edx, dword [0x44836c]
mov dl, byte [edx + eax + 2]
xor dl, byte [eax + edi + 2]
mov byte [ecx + 2], dl
mov edx, dword [0x44836c]
mov dl, byte [edx + eax + 3]
xor dl, byte [eax + edi + 3]
mov byte [ecx + 3], dl
jmp 0x416a3b
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
shl ecx, 4
add edx, ecx
lea esi, [ecx + edi]
mov cl, byte [edx + eax - 0x10]
xor cl, byte [esi + eax]
mov byte [ebp + eax - 0x14], cl
mov cl, byte [edx + eax - 0xf]
xor cl, byte [esi + eax + 1]
mov byte [ebp + eax - 0x13], cl
mov cl, byte [edx + eax - 0xe]
xor cl, byte [esi + eax + 2]
mov byte [ebp + eax - 0x12], cl
mov cl, byte [edx + eax - 0xd]
xor cl, byte [esi + eax + 3]
mov byte [ebp + eax - 0x11], cl
add eax, 4
cmp eax, 0x10
jb 0x4169b2
mov edx, ebx
shl edx, 4
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push edx
mov edx, 0x10
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
add dword [ebp - 0x18], 0x10
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x4169b0
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
test ecx, ecx
je 0x416b42
xor eax, eax
test ecx, ecx
je 0x416adc
mov ecx, dword [0x44836c]
sub ecx, edi
mov dword [ebp - 0x28], ecx
mov ebx, edi
lea ecx, [ebp - 0x14]
sub ebx, ecx
mov dword [ebp - 0x34], ebx
jmp 0x416aa7
mov ebx, dword [ebp - 0x34]
test esi, esi
jne 0x416ac1
lea ecx, [ebp + eax - 0x14]
lea esi, [ecx + ebx]
mov ebx, dword [ebp - 0x28]
mov bl, byte [esi + ebx]
xor bl, byte [esi]
mov esi, dword [ebp - 0x20]
mov byte [ecx], bl
jmp 0x416ad4
mov ecx, dword [ebp - 0x1c]
add ecx, edx
mov cl, byte [ecx + eax - 0x10]
lea ebx, [edx + eax]
xor cl, byte [ebx + edi]
mov byte [ebp + eax - 0x14], cl
mov ecx, dword [ebp - 0x24]
inc eax
cmp eax, ecx
jb 0x416aa4
mov eax, ecx
cmp ecx, 0x10
jae 0x416b1f
mov edi, dword [0x44836c]
lea ecx, [ebp - 0x14]
sub edi, ecx
mov cl, byte [0x44835d]
jmp 0x416af9
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x416b0a
lea esi, [ebp + eax - 0x14]
mov bl, byte [esi + edi]
xor bl, cl
mov byte [esi], bl
jmp 0x416b19
mov esi, dword [ebp - 0x1c]
add esi, edx
mov bl, byte [esi + eax - 0x10]
xor bl, cl
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 0x10
jb 0x416af6
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push edx
mov edx, 0x10
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
add dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
pop edi
pop esi
mov dword [edx], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
jbe 0x416bfb
test ebx, ebx
jne 0x416b77
mov ecx, dword [0x44836c]
lea eax, [ebp - 0x14]
push eax
jmp 0x416b86
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov edx, ebx
add edx, edx
push ecx
lea ecx, [eax + edx*8 - 0x10]
mov edx, 0x10
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
mov edx, ebx
add edx, edx
lea ecx, [esi + edx*8]
sub edi, esi
mov esi, dword [ebp + 8]
lea esi, [esi + edx*8 + 2]
movzx edx, byte [edi + ecx]
xor dl, byte [ebp + eax - 0x14]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [esi + eax - 5]
xor dl, byte [ebp + eax - 0x17]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [esi + eax - 4]
xor dl, byte [ebp + eax - 0x16]
mov byte [ecx - 2], dl
movzx edx, byte [esi + eax - 3]
xor dl, byte [ebp + eax - 0x15]
mov byte [ecx - 1], dl
cmp eax, 0x10
jb 0x416bb1
add dword [ebp - 0x18], 0x10
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x416b67
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x24], 0
je 0x416c87
test ebx, ebx
jne 0x416c15
mov ecx, dword [0x44836c]
lea eax, [ebp - 0x14]
push eax
jmp 0x416c24
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov edx, ebx
add edx, edx
push ecx
lea ecx, [eax + edx*8 - 0x10]
mov edx, 0x10
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
mov ecx, dword [ebp - 0x24]
xor esi, esi
test ecx, ecx
je 0x416c5f
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shl eax, 4
add eax, edx
sub edi, edx
mov edi, edi
mov dl, byte [eax + edi]
xor dl, byte [ebp + esi - 0x14]
inc esi
mov byte [eax], dl
inc eax
cmp esi, ecx
jb 0x416c50
mov eax, ecx
cmp ecx, 0x10
jae 0x416c83
mov ecx, dword [ebp - 0x1c]
add ebx, ebx
lea esi, [ecx + ebx*8]
mov cl, byte [0x44835d]
mov dl, byte [ebp + eax - 0x14]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 0x10
jb 0x416c74
add dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test esi, esi
jbe 0x416d3b
lea esp, [esp]
test ebx, ebx
jne 0x416cc0
mov ecx, dword [0x44836c]
lea edx, [ebp - 0x14]
push edx
jmp 0x416cc6
lea eax, [ebp - 0x14]
push eax
mov ecx, eax
mov edx, 0x10
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
shl edx, 4
mov edi, esi
add ecx, edx
sub edi, dword [ebp - 0x1c]
lea esi, [edx + esi + 2]
movzx edx, byte [ecx + edi]
xor dl, byte [ebp + eax - 0x14]
add eax, 4
mov byte [ecx], dl
movzx edx, byte [esi + eax - 5]
xor dl, byte [ebp + eax - 0x17]
add ecx, 4
mov byte [ecx - 3], dl
movzx edx, byte [esi + eax - 4]
xor dl, byte [ebp + eax - 0x16]
mov byte [ecx - 2], dl
movzx edx, byte [esi + eax - 3]
xor dl, byte [ebp + eax - 0x15]
mov byte [ecx - 1], dl
cmp eax, 0x10
jb 0x416cf1
add dword [ebp - 0x18], 0x10
inc ebx
cmp ebx, dword [ebp - 0x20]
jb 0x416cb0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x416db8
mov edx, 0x10
test ebx, ebx
jne 0x416d5b
mov ecx, dword [0x44836c]
lea eax, [ebp - 0x14]
push eax
jmp 0x416d5f
lea ecx, [ebp - 0x14]
push ecx
call fcn.00416670
add esp, 4
test eax, eax
jne 0x416dd8
xor ecx, ecx
test esi, esi
je 0x416d90
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shl eax, 4
add eax, edx
sub edi, edx
mov dl, byte [eax + edi]
xor dl, byte [ebp + ecx - 0x14]
inc ecx
mov byte [eax], dl
inc eax
cmp ecx, esi
jb 0x416d81
mov eax, esi
cmp esi, 0x10
jae 0x416db4
mov ecx, dword [ebp - 0x1c]
add ebx, ebx
lea esi, [ecx + ebx*8]
mov cl, byte [0x44835d]
mov dl, byte [ebp + eax - 0x14]
xor dl, cl
mov byte [esi + eax], dl
inc eax
cmp eax, 0x10
jb 0x416da5
add dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418fcb
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418fcb
mov esp, ebp
pop ebp
ret