Function at 0x477ad8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb20
mov eax, 0x484c30
push ebx
push esi
push edi
call fcn.004da3d0
xor edx, edx
lea edi, [ebp - 0x2e0]
mov dword [ebp - 0x64], edx
mov esi, 0x484482
mov word [ebp - 0x6a], 0
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x4e0]
mov ecx, 0x80
mov esi, 0x484682
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x48d668]
mov esi, dword [eax + 0x318]
mov edx, dword [eax + 0x31c]
add eax, 0x320
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
sar eax, 1
jns 0x477b43
adc eax, 0
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
add ecx, ecx
push ecx
call fcn.004d9878
pop ecx
mov dword [ebp - 0x60], eax
mov dl, 1
mov eax, dword [0x44fb54]
call fcn.00477a40
mov dword [ebp - 0x98], eax
mov dl, 1
mov eax, dword [0x44fb54]
call fcn.00477a40
mov dword [ebp - 0x9c], eax
cmp dword [ebp + 0x18], 1
je 0x477b89
cmp dword [ebp + 0x18], 0xa
jne 0x477cc7
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x98]
call fcn.004c8c2c
test esi, esi
jle 0x477f5b
cmp dword [ebp + 0x10], 0x2800
jle 0x477f5b
mov edx, 4
mov eax, dword [ebp - 0x98]
call fcn.004c8b78
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0xcc]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x477bdf
adc edx, 0
mov eax, dword [ebp - 0x98]
call fcn.004c8b78
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0xe0]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 4]
cmp esi, 1
jne 0x477c5c
push 0x15
push 0
lea eax, [ebp - 0xb8]
push eax
call fcn.004da07c
add esp, 0xc
mov edx, dword [ebp - 0x78]
push edx
push 0x484897
lea ecx, [ebp - 0xb8]
push ecx
call fcn.004dcbf4
add esp, 0xc
xor esi, esi
lea edx, [ebp - 0xcc]
lea eax, [ebp - 0xe0]
mov ecx, 0x14
sub ecx, esi
inc esi
mov cl, byte [ebp + ecx - 0xb8]
xor cl, byte [eax]
xor cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp esi, 0x14
jl 0x477c3e
jmp 0x477c8a
cmp esi, 2
jne 0x477c8a
xor esi, esi
lea eax, [ebp - 0xcc]
lea edx, [ebp - 0xe0]
mov ecx, 0x14
mov ebx, dword [ebp - 0x7c]
sub ecx, esi
inc esi
mov cl, byte [ebx + ecx]
xor cl, byte [edx]
xor cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp esi, 0x14
jl 0x477c6f
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x477c94
adc edx, 0
mov eax, dword [ebp - 0x98]
call fcn.004c8b78
mov eax, dword [ebp - 0x98]
lea edx, [ebp - 0xe0]
mov ecx, 0x14
mov ebx, dword [eax]
call dword [ebx + 8]
xor edx, edx
mov eax, dword [ebp - 0x98]
call fcn.004c8b78
jmp 0x477f5b
cmp dword [ebp + 0x18], 2
je 0x477ce3
cmp dword [ebp + 0x18], 3
je 0x477ce3
cmp dword [ebp + 0x18], 0x14
je 0x477ce3
cmp dword [ebp + 0x18], 0x1e
jne 0x477f5b
mov dl, 1
mov eax, dword [0x44fb54]
call fcn.00477a40
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x68]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov ecx, dword [ebp + 0x10]
sub ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, ebx
call fcn.004c8c2c
test esi, esi
jle 0x477e20
cmp dword [ebp + 0x10], 0x2800
jle 0x477e20
xor edx, edx
mov eax, ebx
call fcn.004c8b78
mov eax, ebx
lea edx, [ebp - 0xcc]
mov ecx, 0x14
mov edi, dword [eax]
call dword [edi + 4]
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x477d4b
adc edx, 0
sub edx, 4
mov eax, ebx
call fcn.004c8b78
mov eax, ebx
lea edx, [ebp - 0xe0]
mov ecx, 0x14
mov edi, dword [eax]
call dword [edi + 4]
cmp esi, 1
jne 0x477dc3
push 0x15
push 0
lea eax, [ebp - 0xb8]
push eax
call fcn.004da07c
add esp, 0xc
mov edx, dword [ebp - 0x78]
push edx
push 0x48489a
lea ecx, [ebp - 0xb8]
push ecx
call fcn.004dcbf4
add esp, 0xc
xor esi, esi
lea edx, [ebp - 0xcc]
lea eax, [ebp - 0xe0]
mov ecx, 0x14
sub ecx, esi
inc esi
mov cl, byte [ebp + ecx - 0xb8]
xor cl, byte [eax]
xor cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp esi, 0x14
jl 0x477da5
jmp 0x477df1
cmp esi, 2
jne 0x477df1
xor esi, esi
lea eax, [ebp - 0xcc]
lea edx, [ebp - 0xe0]
mov ecx, 0x14
mov edi, dword [ebp - 0x7c]
sub ecx, esi
inc esi
mov cl, byte [edi + ecx]
xor cl, byte [edx]
xor cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp esi, 0x14
jl 0x477dd6
mov edx, dword [ebp + 0x10]
sar edx, 1
jns 0x477dfb
adc edx, 0
sub edx, 4
mov eax, ebx
call fcn.004c8b78
mov eax, ebx
lea edx, [ebp - 0xe0]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 8]
xor edx, edx
mov eax, ebx
call fcn.004c8b78
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x68]
inc edx
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [ebp - 0x98]
call fcn.004c8b84
mov dword [ebp - 0xa0], eax
mov eax, ebx
call fcn.004c8b84
push eax
lea ecx, [ebp - 0xa0]
mov edx, dword [ebx + 4]
push edx
push ecx
mov eax, dword [ebp - 0x98]
mov edx, dword [eax + 4]
push edx
call fcn.004865e4
add esp, 0x10
test eax, eax
je 0x477f34
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], 0
je 0x477e96
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov word [ebp - 0x4c], 0x14
mov edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x4c], 8
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x477ec6
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [ebp - 0xc], edx
mov word [ebp - 0x4c], 0x2c
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x4c], 0x20
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x477ef6
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x4c], 0x44
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x4c], 0x38
mov word [ebp - 0x4c], 0x50
mov edx, 0x48489d
lea eax, [ebp - 0x1c]
call fcn.004e5404
inc dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.004ac3b4
dec dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004e54bc
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x47828a
mov esi, ebx
mov dword [ebp - 0x24], esi
test esi, esi
je 0x477f5b
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x4c], 0x68
mov edx, 3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x4c], 0x5c
xor edx, edx
mov eax, dword [ebp - 0x98]
call fcn.004c8b78
mov edx, dword [ebp - 0x98]
mov ebx, dword [edx + 4]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
mov cx, word [ebx]
mov word [eax + edx*2], cx
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x98]
call fcn.004c8b84
mov ecx, eax
sar ecx, 1
jns 0x477f95
adc ecx, 0
lea edx, [ecx - 3]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x70]
jge 0x47801a
mov edx, dword [ebp - 0x68]
cmp word [ebx + edx*2], 0
jne 0x477ffb
mov eax, dword [ebp - 0x68]
cmp word [ebx + eax*2 + 2], 0
jne 0x477ffb
mov edx, dword [ebp - 0x68]
cmp word [ebx + edx*2 + 4], 0
je 0x477ffb
xor eax, eax
mov edx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
lea edx, [edx + esi*2]
jmp 0x477fe9
mov esi, dword [ebp - 0x68]
mov si, word [ebx + esi*2 + 6]
mov word [edx], si
add edx, 2
inc dword [ebp - 0x64]
inc eax
mov esi, dword [ebp - 0x68]
movzx esi, word [ebx + esi*2 + 4]
cmp eax, esi
jl 0x477fd7
add dword [ebp - 0x68], 3
jmp 0x47800f
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
mov si, word [ebx + esi*2]
mov word [eax + edx*2], si
inc dword [ebp - 0x64]
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x70]
jl 0x477faa
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
lea eax, [edx + eax*2]
cmp ecx, dword [ebp - 0x68]
jle 0x478040
mov edx, dword [ebp - 0x68]
mov dx, word [ebx + edx*2]
mov word [eax], dx
inc dword [ebp - 0x64]
add eax, 2
inc dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x68]
jg 0x478028
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x74]
jle 0x478086
mov word [ebp - 0x4c], 0x74
mov edx, 0x4848b0
lea eax, [ebp - 0x28]
call fcn.004e5404
inc dword [ebp - 0x40]
mov eax, dword [eax]
call fcn.004ac3b4
dec dword [ebp - 0x40]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004e54bc
xor eax, eax
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
jmp 0x47828a
mov eax, dword [ebp + 0x18]
mov ecx, 0xa
cdq
idiv ecx
test eax, eax
jle 0x4781f0
mov esi, dword [ebp - 0x60]
push 2
push esi
lea eax, [ebp - 0x7e]
push eax
call fcn.004da00c
add esp, 0xc
push 2
lea edx, [esi + 2]
push edx
lea ecx, [ebp - 0x80]
push ecx
call fcn.004da00c
add esp, 0xc
push 2
lea eax, [esi + 4]
push eax
lea edx, [ebp - 0x92]
push edx
call fcn.004da00c
add esp, 0xc
push 2
lea ecx, [esi + 6]
push ecx
lea eax, [ebp - 0x94]
push eax
call fcn.004da00c
add esp, 0xc
lea ebx, [ebp - 0x2e0]
cmp word [ebp - 0x94], 0x40
jne 0x4780fd
lea ebx, [ebp - 0x4e0]
movsx eax, word [ebp - 0x7e]
add eax, eax
add eax, 3
test eax, eax
jns 0x47810d
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 0x88], eax
push 0
push 0x10
movsx edx, word [ebp - 0x80]
push edx
movsx ecx, word [ebp - 0x7e]
push ecx
call fcn.004778a4
add esp, 0x10
mov dword [ebp - 0x90], eax
movsx eax, word [ebp - 0x80]
imul dword [ebp - 0x88]
add eax, dword [ebp - 0x90]
push eax
call fcn.004d9878
pop ecx
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
push edx
push 0x10
movsx ecx, word [ebp - 0x80]
push ecx
movsx eax, word [ebp - 0x7e]
push eax
call fcn.004778a4
mov ecx, dword [ebp - 0x84]
add esp, 0x10
add ecx, dword [ebp - 0x90]
xor eax, eax
mov dword [ebp - 0x60], ecx
lea edx, [esi + 8]
jmp 0x4781bd
xor ecx, ecx
mov dword [ebp - 0x68], ecx
jmp 0x4781a4
mov ecx, dword [ebp - 0x68]
movzx ecx, byte [edx + ecx]
push dword [ebx + ecx*2]
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x68]
lea edi, [ecx + edi*2]
pop ecx
mov word [edi], cx
inc dword [ebp - 0x68]
movsx ecx, word [ebp - 0x7e]
cmp ecx, dword [ebp - 0x68]
jg 0x47818a
movsx ecx, word [ebp - 0x7e]
add edx, ecx
mov ecx, dword [ebp - 0x88]
add dword [ebp - 0x60], ecx
inc eax
movsx ecx, word [ebp - 0x80]
cmp eax, ecx
jl 0x478183
push esi
call fcn.004d96a0
pop ecx
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
movsx edx, word [ebp - 0x80]
imul edx, dword [ebp - 0x88]
add edx, dword [ebp - 0x90]
sar edx, 1
jns 0x4781ed
adc edx, 0
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x64]
add ecx, ecx
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx + 8]
xor edx, edx
mov eax, dword [ebp - 0x9c]
call fcn.004c8b78
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov ebx, dword [ebp - 0x98]
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x478249
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x4c], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x4c], 0x80
mov ebx, dword [ebp - 0x9c]
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x478274
mov eax, dword [ebx]
mov dword [ebp - 0x34], eax
mov word [ebp - 0x4c], 0xa4
mov edx, 3
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x4c], 0x98
mov edx, dword [ebp - 0x60]
push edx
call fcn.004d96b0
pop ecx
mov al, 1
mov edx, dword [ebp - 0x5c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret