Function at 0x42f670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x58bea8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x40], edx
mov edx, dword [ebp + 0x18]
lea esi, [eax + ebx]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], edx
movzx edx, word [esi - 3]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], esi
mov eax, 8
jmp 0x42f6c0
xor word [ebx + eax], dx
add eax, 2
cmp eax, 0x34
jb 0x42f6c0
lea eax, [ebx + 9]
add esi, 0xffffffd2
mov dword [ebp - 0x3c], 0xb
lea esp, [esp]
movzx edx, byte [esi - 1]
sub byte [eax - 1], dl
movzx edx, byte [esi]
sub byte [eax], dl
movzx edx, byte [esi + 1]
sub byte [eax + 1], dl
movzx edx, byte [esi + 2]
sub byte [eax + 2], dl
add esi, 4
add eax, 4
dec dword [ebp - 0x3c]
jne 0x42f6e0
movzx eax, word [ebx + 0x1c]
dec eax
cmp eax, 7
ja case.default.0x42f713
jmp dword [eax*4 + 0x42f948]
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
add ecx, 0x24
call fcn.0050c040
mov dword [ebp - 0x2c], eax
jmp case.default.0x42f713
lea edx, [ebp - 0x30]
push edx
push 0
push ebx
add ecx, 0x24
call fcn.0050be60
mov dword [ebp - 0x2c], eax
jmp case.default.0x42f713
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
add ecx, 0x24
call fcn.0050be60
mov dword [ebp - 0x2c], eax
jmp case.default.0x42f713
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x30]
push eax
push ebx
add ecx, 0x24
call fcn.0050b510
mov dword [ebp - 0x2c], eax
jmp case.default.0x42f713
lea edx, [ebp - 0x30]
push edx
push ebx
add ecx, 0x24
call fcn.0050b3a0
mov dword [ebp - 0x2c], eax
jmp case.default.0x42f713
mov eax, 0xc73afe59
lea esi, [ebx + 0x34]
mov ecx, 8
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
xor dword [ebp - 0x1c], eax
xor dword [ebp - 0xc], eax
mov edx, 0xa37869c5
xor dword [ebp - 0x24], edx
xor dword [ebp - 0x14], edx
mov ecx, 0x794fa53e
xor dword [ebp - 0x20], ecx
xor dword [ebp - 0x10], ecx
push str..pb3
lea eax, [ebp - 0x28]
mov esi, 0x9cf375a6
xor dword [ebp - 0x28], esi
xor dword [ebp - 0x18], esi
push eax
call dword [0x5471f8]
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x28]
push ecx
push edx
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
mov dword [esi + 0x5870], 1
call fcn.0042f3c0
test eax, eax
je 0x42f8ac
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x30]
push ecx
push ebx
push edx
lea ecx, [esi + 0x24]
call fcn.0050b130
jmp 0x42f8a9
lea eax, [ebp - 0x30]
push eax
push ebx
add ecx, 0x24
call fcn.0050aff0
mov dword [ebp - 0x2c], eax
jmp case.default.0x42f713
lea esi, [ebx + 0x34]
mov ecx, 8
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x794fa53e
xor dword [ebp - 0x20], ecx
xor dword [ebp - 0x10], ecx
mov edx, 0xa37869c5
xor dword [ebp - 0x24], edx
xor dword [ebp - 0x14], edx
mov eax, 0xc73afe59
xor dword [ebp - 0x1c], eax
xor dword [ebp - 0xc], eax
push str..pb3
lea ecx, [ebp - 0x28]
mov esi, 0x9cf375a6
xor dword [ebp - 0x28], esi
xor dword [ebp - 0x18], esi
push ecx
call dword [0x5471f8]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x38]
push 0
lea edx, [ebp - 0x28]
push edx
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, esi
mov dword [esi + 0x5870], 1
call fcn.0042f3c0
test eax, eax
je 0x42f8ac
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
lea ecx, [esi + 0x24]
call fcn.0050b130
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
mov dword [edi + 4], edx
mov dword [edi], ecx
movzx eax, word [ebx + 0x1e]
mov dword [edi + 8], eax
movzx ecx, word [ebx + 0x20]
mov eax, 0x20
mov dword [edi + 0x10], eax
xor edx, edx
mov dword [edi + 0xc], ecx
cmp word [ebx + 0x22], ax
lea eax, [ebx + 9]
sete dl
add esi, 0xffffffd2
mov dword [edi + 0x14], edx
movzx ecx, word [esi + 0x2b]
mov edi, 0xb
mov edi, edi
movzx edx, byte [esi - 1]
add byte [eax - 1], dl
movzx edx, byte [esi]
add byte [eax], dl
movzx edx, byte [esi + 1]
add byte [eax + 1], dl
movzx edx, byte [esi + 2]
add byte [eax + 2], dl
add esi, 4
add eax, 4
dec edi
jne 0x42f8f0
mov eax, 8
jmp 0x42f920
xor word [ebx + eax], cx
add eax, 2
cmp eax, 0x34
jb 0x42f920
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x2c], eax
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b2eb
mov esp, ebp
pop ebp
ret 0x14