Function at 0x47c365
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
push esi
push edi
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x534], ecx
mov edx, dword [ebp - 0x534]
mov dword [ebp - 0x538], edx
cmp dword [ebp - 0x538], 0
je 0x47c3b3
sub dword [ebp - 0x538], 1
je 0x47c4b7
sub dword [ebp - 0x538], 1
je 0x47c3b3
jmp 0x47c908
mov eax, dword [ebp + 8]
mov dword [eax + 0x30], 0
push edx
push ecx
pushfd
mov ecx, 0x20
xor eax, eax
xor edx, edx
or edx, 0x2edd
xor dl, 0x23
xor dh, 0x51
shl edx, 0x10
xor eax, dword [edx + ecx]
rol eax, 3
sub ecx, 4
jne 0x47c3d8
popfd
pop ecx
pop edx
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
or ecx, 0xf0000000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x18], ecx
lea eax, [ebp - 0xc]
push eax
call fcn.0046a265
add esp, 4
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], 0
jne 0x47c478
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a4f15
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c45c
mov eax, dword [ebp - 4]
jmp 0x47c91b
mov eax, dword [ebp - 0x14]
call fcn.0047c1c5
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.00466485
add esp, 4
jmp 0x47c4a6
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
push ecx
push 0
call fcn.004a2ed5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c49c
mov eax, 0x2bb
jmp 0x47c91b
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x10], edx
jmp 0x47c90f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x290], 0
push 0x1000
call fcn.004664f5
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47c502
mov dword [ebp - 4], 3
jmp 0x47c7f7
lea eax, [ebp - 0x238]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 0x200
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], 0x200
call fcn.0046c265
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c548
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
xor ecx, ecx
push ecx
push eax
push 0x61706913
lea edx, [ebp - 0x4e0]
push edx
call fcn.00481525
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
and ecx, 8
je 0x47c589
mov esi, dword [ebp + 8]
add esi, 0x150
mov ecx, 9
lea edi, [ebp - 0x528]
rep movsd dword es:[edi], dword [esi]
jmp 0x47c5f1
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
call int.004a0e45
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c5b8
mov dword [ebp - 4], 0x22
jmp 0x47c7f7
lea eax, [ebp - 0x528]
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00475a55
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c5e7
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
mov dword [ebp - 0x290], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
and ecx, 8
je 0x47c614
mov esi, dword [ebp + 8]
add esi, 0x174
mov ecx, 9
lea edi, [ebp - 0x504]
rep movsd dword es:[edi], dword [esi]
jmp 0x47c679
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
push edx
call int.0049edb5
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c643
mov dword [ebp - 4], 0x22
jmp 0x47c7f7
lea eax, [ebp - 0x504]
push eax
mov ecx, dword [ebp - 0x27c]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00475a55
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c672
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x2d]
push eax
push 0
call fcn.0049cd75
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c69c
mov dword [ebp - 4], 0x22
jmp 0x47c7f7
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0x23
lea eax, [ebp - 0x2d]
push eax
call fcn.004641e5
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c6ca
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x294]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004a4f15
add esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.00466955
add esp, 4
cmp dword [ebp - 4], 0
je 0x47c708
jmp 0x47c7f7
lea ecx, [ebp - 0x1c]
push ecx
push 0x24
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.004641a5
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c736
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
xor eax, eax
push eax
push edx
push 0x766c6962
lea ecx, [ebp - 0x28]
push ecx
call fcn.00481525
add esp, 0x10
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x278]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x528]
push edx
call fcn.004815a5
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c781
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00466955
add esp, 4
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x23c]
push edx
push 0x25
lea eax, [ebp - 0x278]
push eax
call fcn.004641e5
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c7c8
mov dword [ebp - 4], 0x2bb
jmp 0x47c7f7
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004a4f15
add esp, 0x18
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.00466955
add esp, 4
cmp dword [ebp - 8], 0
je 0x47c809
mov edx, dword [ebp - 8]
push edx
call fcn.00466485
add esp, 4
cmp dword [ebp - 0x290], 0
je 0x47c821
lea eax, [ebp - 0x528]
push eax
call fcn.0046ab05
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x47c836
lea ecx, [ebp - 0x504]
push ecx
call fcn.0046ab05
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x47c84a
push 0x24
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00464225
add esp, 8
cmp dword [ebp - 4], 0
je 0x47c858
mov eax, dword [ebp - 4]
jmp 0x47c91b
push 0x10
lea eax, [ebp - 0x4b8]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x3b0
push ecx
call fcn.0046ca35
add esp, 0xc
push 0x10
lea edx, [ebp - 0x4a8]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x3c0
push eax
call fcn.0046ca35
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x28c]
push ecx
call fcn.00481245
add esp, 0xc
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x28c]
call fcn.0047c1e5
mov edx, dword [ebp + 0xc]
add edx, 0x28
push edx
push 0
push 0x10
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x28c]
push ecx
push 6
call fcn.0049cd35
add esp, 4
push eax
call fcn.0049ccb5
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47c8ed
mov eax, 0x2bb
jmp 0x47c91b
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x3d0], 1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov dword [eax + 0x10], edx
jmp 0x47c90f
mov eax, 0x2bb
jmp 0x47c91b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0xc], 1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret