Function at 0x4a1424
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404678
mov eax, dword [ebp - 8]
call fcn.00404678
xor eax, eax
push ebp
push 0x4a16f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004a173c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x4a1498
mov eax, dword [edi + 0x31c]
xor edx, edx
call fcn.0045cfa8
mov eax, dword [edi + 0x30c]
mov dl, 1
call fcn.0045cfa8
mov eax, dword [edi + 0x330]
mov dl, 1
call fcn.0045cfa8
cmp byte [ebp - 9], 0
jne 0x4a16bb
mov eax, dword [ebp - 4]
call fcn.00404488
cmp eax, 4
jl 0x4a14bc
mov eax, dword [ebp - 8]
call fcn.00404488
cmp eax, 0xa
je 0x4a14f4
cmp byte [ebp + 8], 0
je 0x4a16bb
push 0x10
mov eax, dword [0x4baa88]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, dword [0x4bacb8]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, edi
call fcn.00463870
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4a16bb
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408448
xor eax, eax
xor ebx, ebx
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + ebx]
xor al, dl
inc ebx
cmp ebx, 9
jne 0x4a1503
and al, 0xf
and eax, 0xff
mov edx, dword [0x4ba8f0]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
cmp al, byte [edx + 9]
je 0x4a1561
cmp byte [ebp + 8], 0
je 0x4a16bb
push 0x10
mov eax, dword [0x4baa88]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, dword [0x4bacb8]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, edi
call fcn.00463870
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4a16bb
xor esi, esi
xor ebx, ebx
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + ebx]
call fcn.00404394
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4ba8f0]
call fcn.004047cc
test eax, eax
ja 0x4a15bd
cmp byte [ebp + 8], 0
je 0x4a16bb
push 0x10
mov eax, dword [0x4baa88]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, dword [0x4bacb8]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, edi
call fcn.00463870
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4a16bb
dec eax
and eax, 0xf
or esi, eax
cmp ebx, 7
je 0x4a15cb
shl esi, 4
inc ebx
cmp ebx, 8
jne 0x4a1565
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404244
lea edx, [ebp - 0x1c]
mov eax, dword [edi + 0x318]
call fcn.0045d088
mov edx, dword [ebp - 0x1c]
mov eax, 0x4a170c
call fcn.004047cc
test eax, eax
jle 0x4a160b
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a171c
call fcn.004044d4
lea edx, [ebp - 0x20]
mov eax, dword [edi + 0x318]
call fcn.0045d088
mov edx, dword [ebp - 0x20]
mov eax, 0x4a1728
call fcn.004047cc
test eax, eax
jle 0x4a163a
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x4a1738
call fcn.004044d4
mov eax, esi
xor edx, edx
push edx
push eax
call fcn.004a11cc
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.004a10ac
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a165a
cmp eax, dword [esp]
pop edx
pop eax
je 0x4a1682
mov eax, esi
xor edx, edx
push edx
push eax
call fcn.004a11cc
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.004a10ac
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a167e
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4a1688
mov byte [ebp - 9], 1
jmp 0x4a16bb
mov byte [ebp - 9], 0
cmp byte [ebp + 8], 0
je 0x4a16bb
push 0x10
mov eax, dword [0x4baa88]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, dword [0x4bacb8]
mov eax, dword [eax]
call fcn.00404688
push eax
mov eax, edi
call fcn.00463870
push eax
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a16f7
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004041d0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004041d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041d0
ret