Function at 0x4012fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x434098]
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 [0x43d178]
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.0x401279
jmp dword [eax*4 + 0x401610]
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.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
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 0x401290
mov eax, dword [ebp - 0x18]
add eax, 0xb0
lea ecx, [esi + 0xb0]
mov edx, 0xe
push eax
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
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.0041026c
mov esp, ebp
pop ebp
ret
mov edx, dword [0x43d170]
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 0x40132f
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 0x401344
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 0x401318
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.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ebx, 0x10
inc edi
mov dword [ebp - 0x1c], ebx
cmp edi, 0xb
jb 0x401313
mov edx, dword [ebp - 0x18]
xor ecx, ecx
jmp 0x401390
mov al, byte [edx + ecx + 0xa0]
xor al, byte [esi + ecx + 0xb0]
inc ecx
mov byte [ebp + ecx - 0x15], al
cmp ecx, 0xe
jb 0x401390
mov ah, byte [0x43d17c]
mov ecx, 0xe
mov al, byte [edx + ecx + 0xa0]
xor al, ah
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 0x10
jb 0x4013b3
lea eax, [edx + 0xb0]
mov edx, 0x10
lea ecx, [ebp - 0x14]
jmp 0x4012d2
xor esi, esi
jmp 0x4013e3
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x4013f8
mov ecx, dword [0x43d170]
jmp 0x401402
mov ecx, esi
shl ecx, 4
add ecx, 0xfffffff0
add ecx, edi
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
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 0x401426
add dword [ebp - 0x1c], 0x10
inc esi
cmp esi, 0xb
jb 0x4013e0
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
jne 0x401486
mov ecx, dword [0x43d170]
call fcn.004018b0
mov edi, dword [ebp - 0x18]
jmp 0x401498
mov edi, dword [ebp - 0x18]
mov eax, esi
shl eax, 4
lea ecx, [edi - 0x10]
add ecx, eax
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
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 0x4014b1
mov dl, byte [0x43d17c]
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 0x4014d0
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.0041026c
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x401503
mov edi, dword [ebp - 0x18]
mov ecx, dword [0x43d170]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
je 0x401518
mov ecx, eax
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
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 0x401540
add dword [ebp - 0x1c], 0x10
inc esi
cmp esi, 0xb
jb 0x401500
mov ecx, dword [0x43d170]
lea eax, [ebp - 0x14]
mov edx, 0x10
push eax
test esi, esi
je 0x401594
mov ecx, eax
call fcn.004018b0
add esp, 4
test eax, eax
jne 0x4015ff
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 0x4015b0
mov dl, byte [0x43d17c]
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 0x4015d0
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.0041026c
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.0041026c
mov esp, ebp
pop ebp
ret