Function at 0x40195a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov ecx, dword [ebp + 0xc]
shr edx, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ecx], 0
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], esi
test eax, eax
jne 0x40183d
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
mov ecx, edx
shl ecx, 4
sub eax, ecx
jne 0x401828
mov eax, dword [0x41ef40]
push edi
cmp eax, 3
ja case.default.0x401855
jmp dword [eax*4 + 0x401adc]
test edx, edx
je 0x401aaa
mov edi, dword [0x41ef48]
and edi, 0x80000000
sub esi, ebx
lea edx, [esi + ebx]
mov ecx, ebx
test edi, edi
je 0x401882
call fcn.00403320
jmp 0x401887
call fcn.00403220
add ebx, 0x10
dec dword [ebp - 0x20]
jne 0x401872
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
xor edi, edi
test edx, edx
je 0x401aaa
mov eax, dword [0x41ef38]
lea edx, [ebp - 0x14]
mov ecx, dword [0x41ef48]
sub eax, esi
mov dword [ebp - 0x3c], eax
and ecx, 0x80000000
mov eax, esi
mov dword [ebp - 0x1c], ecx
sub eax, edx
mov dword [ebp - 0x34], eax
mov esi, edi
lea edx, [ebp - 0x14]
shl esi, 4
test ecx, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + ebx]
mov dword [ebp - 0x30], eax
mov ecx, eax
je 0x4018f5
call fcn.00403320
jmp 0x4018fa
call fcn.00403220
mov ebx, dword [ebp - 0x30]
xor eax, eax
nop
test edi, edi
jne 0x40191d
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x14]
mov ecx, dword [ebp - 0x3c]
add edx, eax
add esi, edx
mov cl, byte [esi + ecx]
xor cl, byte [edx]
mov byte [esi], cl
mov esi, dword [ebp - 0x38]
jmp 0x40192d
mov dl, byte [ebx + eax - 0x10]
xor dl, byte [ebp + eax - 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, esi
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x10
jb 0x401900
mov ebx, dword [ebp - 0x2c]
inc edi
mov ecx, dword [ebp - 0x1c]
cmp edi, dword [ebp - 0x20]
jb 0x4018d7
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
xor esi, esi
test edx, edx
je 0x401aaa
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x401979
mov ecx, dword [0x41ef38]
jmp 0x401983
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, ebx
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x401aca
mov edx, dword [ebp - 0x18]
mov eax, esi
shl eax, 4
mov edi, ebx
xor ecx, ecx
add edx, eax
sub edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
lea edi, [eax + ebx]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ecx]
movzx eax, byte [ebx + edx]
lea edx, [edx + 4]
xor al, byte [ebp + ecx - 0x14]
mov byte [edx - 4], al
movzx eax, byte [edi + ecx + 1]
xor al, byte [ebp + ecx - 0x13]
mov byte [edx - 3], al
movzx eax, byte [edi + ecx + 2]
xor al, byte [ebp + ecx - 0x12]
mov byte [edx - 2], al
movzx eax, byte [edi + ecx + 3]
xor al, byte [ebp + ecx - 0x11]
add ecx, 4
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x4019b0
mov ebx, dword [ebp - 0x2c]
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x401964
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
mov esp, ebp
pop ebp
ret
xor edi, edi
test edx, edx
je 0x401aaa
lea esp, [esp]
mov ecx, dword [0x41ef38]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test edi, edi
je 0x401a35
mov ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x401aca
mov eax, edi
xor ecx, ecx
add eax, eax
lea edx, [esi + eax*8]
mov esi, ebx
sub esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], esi
lea esi, [ebx + eax*8]
mov ebx, dword [ebp - 0x1c]
lea esp, [esp]
movzx eax, byte [ebx + edx]
lea edx, [edx + 4]
xor al, byte [ebp + ecx - 0x14]
mov byte [edx - 4], al
movzx eax, byte [esi + ecx + 1]
xor al, byte [ebp + ecx - 0x13]
mov byte [edx - 3], al
movzx eax, byte [esi + ecx + 2]
xor al, byte [ebp + ecx - 0x12]
mov byte [edx - 2], al
movzx eax, byte [esi + ecx + 3]
xor al, byte [ebp + ecx - 0x11]
add ecx, 4
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401a60
mov ebx, dword [ebp - 0x2c]
inc edi
mov esi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x20]
jb 0x401a20
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004051f4
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.004051f4
mov esp, ebp
pop ebp
ret