Function at 0x430e22
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp byte [0x42b494], 0
jne 0x430e36
call fcn.0043121a
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [esi + 0x104], 0x12
mov ah, byte [ecx + 3]
mov al, byte [ecx + 2]
push edi
movzx edx, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx]
shl eax, 8
or eax, edx
mov dword [ebp - 0x20], eax
mov dword [esi], eax
movzx edx, byte [ecx + 5]
xor eax, eax
mov ah, byte [ecx + 7]
mov al, byte [ecx + 6]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 4]
shl eax, 8
or eax, edx
mov dword [ebp - 0x1c], eax
mov dword [esi + 4], eax
movzx edx, byte [ecx + 9]
xor eax, eax
mov ah, byte [ecx + 0xb]
mov al, byte [ecx + 0xa]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 8]
shl eax, 8
or eax, edx
mov dword [esi + 8], eax
mov bh, byte [ecx + 0xf]
mov bl, byte [ecx + 0xe]
mov dword [ebp - 0x18], eax
movzx eax, byte [ecx + 0xd]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 0xc]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0xc]
and al, 0xfc
mov dword [esi + 0xc], ebx
cmp eax, 0x10
jbe 0x430ed6
mov eax, dword [ebp + 0xc]
shr eax, 2
jmp 0x430ed9
push 4
pop eax
mov edi, dword [ebp + 0xc]
add eax, 6
mov dword [esi + 0x100], eax
xor edx, edx
lea eax, [eax*4 + 3]
shr edi, 2
div edi
cmp dword [ebp + 0xc], 0x10
mov edi, eax
je 0x431140
cmp dword [ebp + 0xc], 0x18
je 0x431077
cmp dword [ebp + 0xc], 0x20
je 0x430f1d
and dword [esi + 0x100], 0
xor eax, eax
jmp 0x431213
movzx edx, byte [ecx + 0x11]
xor eax, eax
mov ah, byte [ecx + 0x13]
mov al, byte [ecx + 0x12]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x10]
shl eax, 8
or eax, edx
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
movzx edx, byte [ecx + 0x15]
xor eax, eax
mov ah, byte [ecx + 0x17]
mov al, byte [ecx + 0x16]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x14]
shl eax, 8
or eax, edx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x14], eax
movzx edx, byte [ecx + 0x19]
xor eax, eax
mov ah, byte [ecx + 0x1b]
mov al, byte [ecx + 0x1a]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x18]
shl eax, 8
or eax, edx
xor edx, edx
mov dword [esi + 0x18], eax
mov dh, byte [ecx + 0x1f]
mov dl, byte [ecx + 0x1e]
mov dword [ebp - 8], eax
movzx eax, byte [ecx + 0x1d]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x1c]
shl edx, 8
or edx, eax
test edi, edi
mov dword [esi + 0x1c], edx
jbe 0x4311b6
mov dword [ebp + 0xc], 0x42eca0
lea ecx, [esi + 0x24]
mov dword [ebp + 0x10], edi
mov eax, edx
mov edi, edx
shr eax, 0x10
shr edi, 0x18
movzx eax, al
mov edi, dword [edi*4 + 0x42c4a0]
xor edi, dword [eax*4 + 0x42c0a0]
mov eax, edx
shr eax, 8
movzx eax, al
xor edi, dword [eax*4 + 0x42bca0]
movzx eax, dl
xor edi, dword [eax*4 + 0x42c8a0]
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
xor edi, dword [ebp - 0x20]
xor edi, dword [eax]
mov eax, edi
mov edi, dword [ebp - 0x1c]
xor edi, eax
mov dword [ebp - 0x20], eax
xor dword [ebp - 0x18], edi
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx], edi
xor ebx, eax
mov dword [ecx + 4], eax
mov eax, ebx
mov dword [ebp - 0x1c], edi
mov edi, ebx
mov dword [ecx + 8], ebx
shr eax, 0x10
shr edi, 0x18
movzx eax, al
mov edi, dword [edi*4 + 0x42c8a0]
add ecx, 0x20
xor edi, dword [eax*4 + 0x42c4a0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor edi, dword [eax*4 + 0x42c0a0]
movzx eax, bl
xor edi, dword [eax*4 + 0x42bca0]
xor dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
mov dword [ecx - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x10]
xor dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ecx - 0x10], eax
mov eax, dword [ebp - 8]
xor edx, eax
dec dword [ebp + 0x10]
mov dword [ecx - 0xc], eax
mov dword [ecx - 8], edx
jne 0x430faf
jmp 0x4311b6
movzx edx, byte [ecx + 0x11]
xor eax, eax
mov ah, byte [ecx + 0x13]
mov al, byte [ecx + 0x12]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 0x10]
shl eax, 8
or eax, edx
xor edx, edx
mov dword [esi + 0x10], eax
mov dh, byte [ecx + 0x17]
mov dl, byte [ecx + 0x16]
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 0x15]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0x14]
shl edx, 8
or edx, eax
test edi, edi
mov dword [esi + 0x14], edx
jbe 0x4311b6
mov dword [ebp + 0xc], 0x42eca0
lea ecx, [esi + 0x1c]
mov dword [ebp + 0x10], edi
mov eax, edx
mov edi, edx
shr eax, 0x10
shr edi, 0x18
movzx eax, al
mov edi, dword [edi*4 + 0x42c4a0]
xor edi, dword [eax*4 + 0x42c0a0]
mov eax, edx
shr eax, 8
movzx eax, al
xor edi, dword [eax*4 + 0x42bca0]
movzx eax, dl
xor edi, dword [eax*4 + 0x42c8a0]
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
xor edi, dword [eax]
xor dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
xor dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
xor ebx, eax
mov dword [ecx + 4], eax
xor dword [ebp - 0x10], ebx
mov dword [ecx + 8], ebx
mov eax, dword [ebp - 0x10]
xor edx, eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
add ecx, 0x18
dec dword [ebp + 0x10]
jne 0x4310c9
jmp 0x4311b6
test edi, edi
jbe 0x4311b6
mov dword [ebp + 0x10], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp + 0xc], 0x42eca0
lea ecx, [esi + 0x14]
mov edx, ebx
mov eax, ebx
shr edx, 0x10
shr eax, 0x18
movzx edx, dl
mov eax, dword [eax*4 + 0x42c4a0]
xor eax, dword [edx*4 + 0x42c0a0]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor eax, dword [edx*4 + 0x42bca0]
movzx edx, bl
xor eax, dword [edx*4 + 0x42c8a0]
mov edx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
xor eax, dword [edx]
xor edi, eax
mov eax, dword [ebp - 0x1c]
xor eax, edi
mov dword [ecx - 4], edi
xor dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
xor ebx, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], ebx
add ecx, 0x10
dec dword [ebp + 0x10]
jne 0x431154
mov eax, dword [esi + 0x100]
push 4
pop edi
shl eax, 2
cmp eax, edi
jbe 0x431210
lea eax, [esi + 0x10]
mov ecx, dword [eax]
mov ebx, ecx
mov edx, ecx
shr ebx, 0x10
shr edx, 0x18
movzx ebx, bl
mov edx, dword [edx*4 + 0x430920]
xor edx, dword [ebx*4 + 0x430520]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x430120]
movzx ecx, byte [eax]
xor edx, dword [ecx*4 + 0x42fd20]
inc edi
mov dword [eax], edx
mov ecx, dword [esi + 0x100]
shl ecx, 2
add eax, 4
cmp edi, ecx
jb 0x4311c9
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc