Function at 0x40173a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4305c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x24], eax
mov dword [eax], ebx
mov eax, dword [0x439234]
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
cmp eax, 3
ja case.default.0x4014b9
jmp dword [eax*4 + 0x401850]
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x20], ebx
mov edi, esi
mov dword [ebp - 0x28], eax
lea ecx, [ecx]
add eax, edi
push eax
mov edx, 0x10
mov ecx, edi
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov eax, dword [ebp - 0x20]
inc eax
add ebx, 0x10
add edi, 0x10
mov dword [ebp - 0x20], eax
cmp eax, 0xb
mov eax, dword [ebp - 0x28]
jb 0x4014d0
mov eax, dword [ebp - 0x18]
add eax, 0xb0
lea ecx, [esi + 0xb0]
mov edx, 0xe
push eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x10]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
mov esp, ebp
pop ebp
ret
mov edx, dword [0x43922c]
sub edx, esi
lea eax, [ebp - 0x14]
xor edi, edi
sub ecx, eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp - 0x18]
xor eax, eax
test edi, edi
jne 0x40156f
lea esi, [ebp - 0x14]
add esi, eax
add ecx, esi
mov dl, byte [ecx + edx]
xor dl, byte [ecx]
mov byte [esi], dl
mov esi, dword [ebp - 0x20]
jmp 0x401584
mov edx, edi
shl edx, 4
lea ecx, [edx + ebx]
add edx, eax
mov cl, byte [ecx + eax - 0x10]
xor cl, byte [edx + esi]
mov byte [ebp + eax - 0x14], cl
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x10
jb 0x401558
mov ebx, dword [ebp - 0x1c]
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x18]
mov edx, 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ebx, 0x10
inc edi
mov dword [ebp - 0x1c], ebx
cmp edi, 0xb
jb 0x401553
mov edx, dword [ebp - 0x18]
xor ecx, ecx
jmp 0x4015d0
mov al, byte [edx + ecx + 0xa0]
xor al, byte [esi + ecx + 0xb0]
inc ecx
mov byte [ebp + ecx - 0x15], al
cmp ecx, 0xe
jb 0x4015d0
mov ah, byte [0x439238]
mov ecx, 0xe
mov al, byte [edx + ecx + 0xa0]
xor al, ah
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 0x10
jb 0x4015f3
lea eax, [edx + 0xb0]
mov edx, 0x10
lea ecx, [ebp - 0x14]
jmp 0x401512
xor esi, esi
jmp 0x401623
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x401638
mov ecx, dword [0x43922c]
jmp 0x401642
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, edi
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov eax, esi
shl eax, 4
xor ecx, ecx
lea edx, [eax + edi]
mov edi, dword [ebp - 0x20]
mov ebx, edi
sub ebx, dword [ebp - 0x18]
add edi, eax
mov al, byte [ebx + edx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
mov al, byte [edi + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
mov al, byte [edi + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
mov al, byte [edi + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401666
add dword [ebp - 0x1c], 0x10
inc esi
cmp esi, 0xb
jb 0x401620
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x4016c6
mov ecx, dword [0x43922c]
call fcn.00401af0
mov edi, dword [ebp - 0x18]
jmp 0x4016d8
mov edi, dword [ebp - 0x18]
mov eax, esi
shl eax, 4
lea ecx, [edi - 0x10]
add ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov ebx, dword [ebp - 0x20]
shl esi, 4
add esi, edi
xor ecx, ecx
mov edx, esi
sub ebx, edi
mov al, byte [edx + ebx]
xor al, byte [ebp + ecx - 0x14]
inc ecx
mov byte [edx], al
inc edx
cmp ecx, 0xe
jb 0x4016f1
mov dl, byte [0x439238]
mov ebx, dword [ebp - 0x1c]
mov ecx, 0xe
nop
mov al, byte [ebp + ecx - 0x14]
xor al, dl
mov byte [esi + ecx], al
inc ecx
cmp ecx, 0x10
jb 0x401710
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x10]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x401743
mov edi, dword [ebp - 0x18]
mov ecx, dword [0x43922c]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
je 0x401758
mov ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov eax, esi
shl eax, 4
xor ecx, ecx
lea edx, [eax + edi]
mov edi, dword [ebp - 0x20]
mov ebx, edi
sub ebx, dword [ebp - 0x18]
add edi, eax
lea esp, [esp]
mov al, byte [edx + ebx]
xor al, byte [ebp + ecx - 0x14]
add ecx, 4
mov byte [edx], al
mov al, byte [edi + ecx - 3]
xor al, byte [ebp + ecx - 0x17]
lea edx, [edx + 4]
mov byte [edx - 3], al
mov al, byte [edi + ecx - 2]
xor al, byte [ebp + ecx - 0x16]
mov byte [edx - 2], al
mov al, byte [edi + ecx - 1]
xor al, byte [ebp + ecx - 0x15]
mov byte [edx - 1], al
cmp ecx, 0x10
jb 0x401780
add dword [ebp - 0x1c], 0x10
inc esi
cmp esi, 0xb
jb 0x401740
mov ecx, dword [0x43922c]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
je 0x4017d4
mov ecx, eax
call fcn.00401af0
add esp, 4
test eax, eax
jne 0x40183f
mov ebx, dword [ebp - 0x20]
shl esi, 4
add esi, dword [ebp - 0x18]
xor ecx, ecx
sub ebx, dword [ebp - 0x18]
mov edx, esi
mov al, byte [edx + ebx]
xor al, byte [ebp + ecx - 0x14]
inc ecx
mov byte [edx], al
inc edx
cmp ecx, 0xe
jb 0x4017f0
mov dl, byte [0x439238]
mov ebx, dword [ebp - 0x1c]
mov ecx, 0xe
mov edi, edi
mov al, byte [ebp + ecx - 0x14]
xor al, dl
mov byte [esi + ecx], al
inc ecx
cmp ecx, 0x10
jb 0x401810
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x10]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410fdd
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.00410fdd
mov esp, ebp
pop ebp
ret