Function at 0x421050
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4e64aa
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x670f1c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov eax, dword [esp + 0x130]
push eax
lea ecx, [esp + 0xe8]
push ecx
call fcn.004193c0
add esp, 8
xor ebp, ebp
cmp dword [esp + 0xf8], ebp
mov dword [esp + 0x128], ebp
jne 0x4210d0
cmp dword [esp + 0xfc], 8
jb 0x4213ab
mov edx, dword [esp + 0xe8]
push edx
jmp 0x4213a3
mov eax, dword [esp + 0xe8]
mov edi, 8
cmp dword [esp + 0xfc], edi
jae 0x4210ec
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.004c5092
add esp, 8
test eax, eax
je 0x421118
cmp dword [esp + 0xfc], edi
jb 0x4213ab
mov edx, dword [esp + 0xe8]
push edx
jmp 0x4213a3
push ebp
call fcn.004c0de9
mov ecx, dword [esp + 0x50]
add esp, 4
cmp ecx, edx
jg 0x421392
mov esi, dword [esp + 0x48]
jl 0x42113b
cmp esi, eax
ja 0x421392
sub eax, esi
sbb edx, ecx
cmp edx, ebp
jg 0x421392
jl 0x421154
cmp eax, 0x3f480
ja 0x421392
mov eax, dword [esp + 0x38]
push eax
call fcn.004aef3e
add esp, 4
push 1
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.00427cf0
cmp dword [esp + 0xfc], edi
mov eax, dword [esp + 0xe8]
mov byte [esp + 0x128], 1
jae 0x42118d
lea eax, [esp + 0xe8]
push 0x40
push 0x20
push eax
lea ecx, [esp + 0x64]
call fcn.00428200
mov ecx, dword [esp + 0x38]
push ecx
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x64]
call fcn.00427df0
lea ecx, [esp + 0x58]
call fcn.00427160
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], ebp
mov byte [esp + 0x104], 0
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
xor ebx, ebx
mov eax, edi
sub eax, 1
sbb edx, ebp
mov byte [esp + 0x128], 2
mov byte [esp + 0x17], 0
mov dword [esp + 0x1c], edx
js 0x421240
jg 0x4211f9
cmp eax, ebp
jbe 0x421240
mov al, byte [ebx + esi]
xor al, byte [esp + 0x130]
lea ecx, [esp + 0x100]
xor al, bl
xor al, 0x5a
xor byte [esp + 0x17], al
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
push eax
push 1
call fcn.00423af0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add ebx, 1
mov ecx, edi
sub ecx, 1
sbb eax, ebp
xor edx, edx
cmp edx, eax
jl 0x4211f9
jg 0x421240
cmp ebx, ecx
jb 0x4211f9
mov bl, byte [edi + esi - 1]
xor bl, byte [esp + 0x130]
push esi
xor bl, 0xe4
call fcn.004aef39
add esp, 4
cmp bl, byte [esp + 0x17]
je 0x4212db
cmp dword [esp + 0x118], 0x10
jb 0x421277
mov ecx, dword [esp + 0x104]
push ecx
call fcn.004aef39
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], ebp
mov byte [esp + 0x104], 0
mov byte [esp + 0x128], 0
call fcn.00426720
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.004e2702
add esp, 4
cmp dword [esp + 0xfc], 8
jb 0x4213ab
mov eax, dword [esp + 0xe8]
push eax
jmp 0x4213a3
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x124]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebp
push edx
mov byte [ecx + 4], 0
call fcn.004014d0
mov eax, dword [esp + 0x14c]
push eax
call fcn.0041b610
add esp, 0x20
cmp dword [esp + 0x118], 0x10
mov esi, eax
jb 0x42132f
mov ecx, dword [esp + 0x104]
push ecx
call fcn.004aef39
add esp, 4
lea ecx, [esp + 0xb0]
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebp
mov byte [esp + 0x104], 0
mov byte [esp + 0x128], 0
call fcn.00426720
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], vtable.std::ios_base.0
call fcn.004e2702
add esp, 4
cmp dword [esp + 0xfc], 8
jb 0x42138e
mov eax, dword [esp + 0xe8]
push eax
call fcn.004aef39
add esp, 4
mov eax, esi
jmp 0x4213ad
cmp dword [esp + 0xfc], edi
jb 0x4213ab
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004aef39
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.004bfdfd
add esp, 0x118
ret