Function at 0x479d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
test esi, esi
js 0x479d9d
shr esi, 2
mov edi, dword [ebx + esi*4]
dec esi
push edi
jns 0x479d96
mov dword [ebp + 0x14], esp
mov ebx, ecx
imul ebx, ebx, 6
add ebx, 5
test ebx, ebx
js 0x479db6
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x479daf
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec dword [ebp - 8]
jne 0x479dca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00479744
test bl, bl
jne 0x479e9c
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x479e00
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x479e14
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00479c58
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x479e46
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x479df5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x479e69
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x479e7a
mov eax, 4
lea ecx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
dec eax
jne 0x479e8e
jmp 0x479f67
cmp bl, 1
jne 0x479f67
mov dword [ebp - 8], 0xfffffff0
mov eax, dword [ebp - 4]
add eax, 0x5a
mov dword [ebp - 0x18], eax
mov eax, 4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x479ec0
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x479ed4
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00479c58
mov eax, 4
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
mov esi, dword [ebp + 0xc]
add esi, 4
mov bl, byte [edx]
xor bl, byte [ecx]
mov byte [esi], bl
inc esi
inc ecx
inc edx
dec eax
jne 0x479f06
sub dword [ebp - 0x18], 6
inc dword [ebp - 8]
jne 0x479eb5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx]
mov byte [edx], cl
inc edx
inc dword [ebp - 0x18]
dec eax
jne 0x479f2c
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x479f42
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
mov ebx, dword [ebp - 0x18]
mov byte [ebx], cl
inc dword [ebp - 0x18]
inc edx
dec eax
jne 0x479f59
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004797c8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0x10