Function at 0x422070
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x42cb6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0x1e]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x16]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x484]
push eax
push ecx
push 5
mov dword [esp + 0x44], 0xa
mov dword [esp + 0x3c], 1
call fcn.00427660
add esp, 0x24
test ax, ax
je 0x4220ee
or eax, 0xffffffff
jmp 0x422368
or ebx, 0xffffffff
lea edi, [esp + 0x5c]
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strtol]
add esp, 0xc
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.0042996a
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x5c]
lea edx, [esp + 0x1e]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x16]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x484]
push eax
push ecx
push 5
mov dword [esp + 0x44], 0xb
mov dword [esp + 0x3c], ebp
call fcn.00427660
add esp, 0x24
test ax, ax
jne 0x4221d2
lea edi, [esp + 0x5c]
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jle 0x4221cb
mov cl, byte [esp + 0x470]
shl cl, 3
mov dl, byte [esp + eax + 0x30]
xor dl, cl
mov byte [esp + eax + 0x30], dl
inc eax
cmp eax, ebp
jl 0x4221bc
cmp byte [esp + 0x30], 0x53
je 0x4221e9
lea ecx, [esp + 0x10]
mov dword [esp + 0x464], ebx
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x422368
cmp ebp, 1
jle 0x422211
lea ecx, [ebp - 1]
lea esi, [esp + 0x31]
mov edx, ecx
lea edi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
lea ecx, [eax + 1]
cmp ecx, ebp
jl 0x422209
lea edx, [esp + 0x28]
lea ebx, [esp + ebp + 0x47]
push 0x10
lea eax, [esp + 0x4c]
push edx
push eax
mov byte [ebx], 0
call dword [sym.imp.MSVCRT.dll_strtol]
lea ecx, [ebp + 0xb]
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], ecx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x22]
push edx
lea ecx, [esp + 0x2e]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x490]
push edx
push eax
push 5
mov dword [esp + 0x48], ebp
call fcn.00427660
add esp, 0x30
test ax, ax
je 0x42229c
lea ecx, [esp + 0x10]
mov dword [esp + 0x464], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x422368
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
jle 0x4222e0
mov cl, byte [esp + 0x470]
shl cl, 4
mov dl, byte [esp + eax + 0x30]
xor dl, cl
mov byte [esp + eax + 0x30], dl
inc eax
cmp eax, ebp
jl 0x4222d1
cmp byte [esp + 0x30], 0x57
je 0x422300
lea ecx, [esp + 0x10]
mov dword [esp + 0x464], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x422368
cmp ebp, 1
jle 0x422328
lea ecx, [ebp - 1]
lea esi, [esp + 0x31]
mov edx, ecx
lea edi, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
lea ecx, [eax + 1]
cmp ecx, ebp
jl 0x422320
lea edx, [esp + 0x28]
push 0x10
lea eax, [esp + 0x4c]
push edx
push eax
mov byte [ebx], 0
call dword [sym.imp.MSVCRT.dll_strtol]
mov esi, dword [esp + 0x50]
add esp, 0xc
cmp esi, eax
mov dword [esp + 0x464], 0xffffffff
lea ecx, [esp + 0x10]
je 0x422361
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x422368
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x458
ret