Function at 0x40186b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43b860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
shr edi, 4
mov esi, edi
shl esi, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x34]
xor ebx, ebx
mov esi, edx
sub esi, dword [ebp - 0x30]
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
test edx, edx
je case.default.0x4014ee
mov edx, dword [0x444304]
cmp edx, 3
ja case.default.0x4014ee
jmp dword [edx*4 + 0x4019b8]
mov dword [ebp - 0x2c], ebx
test edi, edi
je 0x401538
sub eax, ecx
mov edi, ecx
mov dword [ebp - 0x1c], eax
add eax, edi
push eax
mov edx, 0x10
mov ecx, edi
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
mov eax, dword [ebp - 0x2c]
inc eax
add ebx, 0x10
add edi, 0x10
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
jb 0x401503
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
test esi, esi
je 0x401989
cmp esi, 0x10
ja case.default.0x4014ee
add eax, dword [ebp - 0x30]
add ecx, dword [ebp - 0x30]
push eax
mov edx, esi
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
mov eax, dword [ebp - 0x34]
add ebx, 0x10
pop edi
mov dword [eax], ebx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dc0
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4442fc]
xor ebx, ebx
test edi, edi
je 0x40162b
mov ecx, edx
mov edx, dword [ebp - 0x20]
sub ecx, edx
mov eax, edx
lea edi, [ebp - 0x14]
sub eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], eax
jmp 0x4015a6
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x18]
xor edi, edi
jmp 0x4015b0
test ebx, ebx
jne 0x4015c7
lea edx, [ebp - 0x14]
add edx, edi
add eax, edx
mov cl, byte [eax + ecx]
xor cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x20]
jmp 0x4015dc
mov ecx, ebx
shl ecx, 4
lea eax, [ecx + esi]
add ecx, edi
mov al, byte [eax + edi - 0x10]
xor al, byte [ecx + edx]
mov byte [ebp + edi - 0x14], al
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
inc edi
cmp edi, 0x10
jb 0x4015b0
mov esi, dword [ebp - 0x2c]
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x18]
mov edx, 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add eax, 0x10
inc ebx
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x28]
jb 0x4015a3
mov ecx, edx
mov edx, dword [0x4442fc]
jmp 0x40162d
xor eax, eax
test esi, esi
je 0x4016f2
xor edi, edi
test esi, esi
je 0x401686
mov ebx, dword [ebp - 0x20]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, ecx
lea ecx, [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x38], eax
nop
cmp dword [ebp - 0x28], 0
jne 0x401669
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
add edx, edi
add eax, edx
mov cl, byte [eax + ecx]
xor cl, byte [eax]
mov byte [edx], cl
jmp 0x40167e
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
add eax, ecx
add ecx, edi
mov al, byte [eax + edi - 0x10]
xor al, byte [ecx + ebx]
mov byte [ebp + edi - 0x14], al
mov eax, dword [ebp - 0x38]
inc edi
cmp edi, esi
jb 0x401650
cmp esi, 0x10
jae 0x4016cd
mov eax, dword [0x4442fc]
mov dl, byte [0x444308]
lea ecx, [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, edi
cmp dword [ebp - 0x28], 0
jne 0x4016b4
lea ecx, [ebp - 0x14]
add ecx, esi
mov al, byte [ecx + eax]
xor al, dl
mov byte [ecx], al
jmp 0x4016c4
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov al, byte [eax + esi - 0x10]
xor al, dl
mov byte [ebp + esi - 0x14], al
mov eax, dword [ebp - 0x1c]
inc esi
cmp esi, 0x10
jb 0x4016a0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x30]
mov edx, 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov ecx, dword [ebp - 0x34]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dc0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4442fc]
xor edi, edi
cmp dword [ebp - 0x28], ebx
jbe 0x4017c8
lea ebx, [ebx]
mov edx, 0x10
test edi, edi
jne 0x401739
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00401c60
mov ebx, dword [ebp - 0x18]
jmp 0x40174f
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov eax, edi
shl eax, 4
lea ecx, [ebx - 0x10]
add ecx, eax
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
mov esi, dword [ebp - 0x20]
mov eax, edi
add eax, eax
xor ecx, ecx
lea edx, [ebx + eax*8]
mov ebx, esi
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ebx, [esi + eax*8]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [esi + edx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
movzx eax, byte [ebx + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
movzx eax, byte [ebx + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
movzx eax, byte [ebx + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401774
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x4442fc]
add ebx, 0x10
inc edi
mov dword [ebp - 0x24], ebx
cmp edi, dword [ebp - 0x28]
jb 0x401720
test esi, esi
je 0x401989
mov edx, 0x10
test edi, edi
jne 0x4017e1
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
jmp 0x4017f2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov eax, edi
shl eax, 4
add ecx, 0xfffffff0
add ecx, eax
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
xor edx, edx
test esi, esi
je 0x40182a
mov ebx, dword [ebp - 0x20]
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x18]
mov al, byte [ecx + ebx]
xor al, byte [ebp + edx - 0x14]
inc edx
mov byte [ecx], al
lea ecx, [ecx + 1]
cmp edx, esi
jb 0x401816
mov ebx, dword [ebp - 0x24]
cmp esi, 0x10
jae 0x401986
mov ecx, dword [ebp - 0x18]
mov dl, byte [0x444308]
shl edi, 4
add ecx, edi
mov al, byte [ebp + esi - 0x14]
xor al, dl
mov byte [ecx + esi], al
inc esi
cmp esi, 0x10
jb 0x401841
mov eax, dword [ebp - 0x34]
add ebx, 0x10
pop edi
mov dword [eax], ebx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dc0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4442fc]
xor edi, edi
cmp dword [ebp - 0x28], ebx
jbe 0x401916
jmp 0x401880
lea ecx, [ebp - 0x14]
mov edx, 0x10
test edi, edi
jne 0x401891
push ecx
mov ecx, eax
jmp 0x401895
lea eax, [ebp - 0x14]
push eax
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, edi
shl eax, 4
mov ebx, esi
xor ecx, ecx
add edx, eax
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
lea ebx, [eax + esi]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [edx + esi]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
movzx eax, byte [ebx + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
movzx eax, byte [ebx + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
movzx eax, byte [ebx + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x4018c2
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov eax, dword [0x4442fc]
add ebx, 0x10
inc edi
mov dword [ebp - 0x24], ebx
cmp edi, dword [ebp - 0x28]
jb 0x401880
test esi, esi
je 0x401989
lea ecx, [ebp - 0x14]
mov edx, 0x10
test edi, edi
jne 0x40192b
push ecx
mov ecx, eax
jmp 0x40192f
lea eax, [ebp - 0x14]
push eax
call fcn.00401c60
add esp, 4
test eax, eax
jne 0x4019a6
xor edx, edx
test esi, esi
je 0x401964
mov ebx, dword [ebp - 0x20]
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x18]
nop
mov al, byte [ecx + ebx]
xor al, byte [ebp + edx - 0x14]
inc edx
mov byte [ecx], al
lea ecx, [ecx + 1]
cmp edx, esi
jb 0x401950
mov ebx, dword [ebp - 0x24]
cmp esi, 0x10
jae 0x401986
mov ecx, dword [ebp - 0x18]
mov dl, byte [0x444308]
shl edi, 4
add ecx, edi
mov al, byte [ebp + esi - 0x14]
xor al, dl
mov byte [ecx + esi], al
inc esi
cmp esi, 0x10
jb 0x401977
add ebx, 0x10
mov eax, dword [ebp - 0x34]
pop edi
mov dword [eax], ebx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414dc0
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.00414dc0
mov esp, ebp
pop ebp
ret