Function at 0x472360
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x789568
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x67c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x68c]
mov ebx, ecx
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
mov dword [esp + 0x4c], ebx
call edx
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x1c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
lea edi, [ebp + 4]
push ecx
push eax
lea esi, [esp + 0x28]
mov dword [esp + 0x48], eax
call fcn.00473ef0
mov ecx, edi
mov esi, eax
call fcn.00592190
mov edx, dword [esp + 0x40]
mov dword [edx + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, edi
call fcn.005bacb0
mov esi, eax
mov eax, dword [ebx + 0x28]
mov dword [esi], eax
mov ecx, dword [ebx + 0x1c]
mov dword [esi + 4], ecx
cmp dword [ebx + 0x18], 0x10
mov dword [esp + 0x34], esi
jb 0x472429
mov ecx, dword [ebx + 4]
jmp 0x47242c
lea ecx, [ebx + 4]
lea edx, [esp + 0x274]
push edx
call fcn.00471eb0
lea eax, [esp + 0x278]
add esp, 4
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472460
sub eax, edi
push eax
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x70]
call fcn.004016e0
xor eax, eax
mov dword [esp + 0x684], eax
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], eax
mov byte [esp + 0x8c], al
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xb8]
push edx
lea edi, [esp + 0x8c]
mov byte [esp + 0x68c], 1
call fcn.00473b20
lea edx, [esp + 0x108]
lea ecx, [ebp + 0x20]
push edx
push ecx
mov byte [esp + 0x68c], 2
call fcn.00473940
cmp dword [esp + 0xf0], 0x10
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x20], ecx
jb 0x4724fa
mov edx, dword [esp + 0xdc]
push edx
call fcn.006441c7
add esp, 4
cmp dword [esp + 0xcc], 0x10
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], 0
mov byte [esp + 0xdc], 0
jb 0x472532
mov eax, dword [esp + 0xb8]
push eax
call fcn.006441c7
add esp, 4
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], 0
mov byte [esp + 0xb8], 0
jb 0x47256a
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.006441c7
add esp, 4
mov dword [esp + 0x684], 0xffffffff
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
jb 0x4725aa
mov edx, dword [esp + 0x6c]
push edx
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x472683
call fcn.006441b7
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4725c7
call fcn.006441b7
lea eax, [esp + 0x274]
mov dword [edi + 0x30], esi
lea ecx, [edi + 0x34]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4725d7
sub eax, esi
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004016e0
xor esi, esi
mov dword [edi + 0x58], esi
mov ecx, dword [ebx + 0x24]
push 0xffffffffffffffff
mov dword [edi + 0x5c], ecx
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push 0x81da84
lea eax, [esp + 0x27c]
push eax
mov ecx, ebp
call edx
mov edi, eax
mov dword [esp + 0x28], edi
cmp edi, esi
je 0x47267c
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
push edi
push 1
push 4
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
mov dword [esp + 0x40], esi
call edx
mov eax, dword [esp + 0x30]
call fcn.00498200
mov dword [esp + 0x30], eax
cmp eax, 0xbac04ac0
mov eax, dword [ebp]
push edi
jne 0x472675
mov edx, dword [eax + 0x1c]
push 1
push 4
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
mov dword [esp + 0x3c], esi
call edx
mov eax, dword [esp + 0x2c]
call fcn.00498200
mov dword [esp + 0x2c], eax
cmp eax, esi
jbe 0x47268a
mov eax, dword [ebp]
push edi
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
xor al, al
jmp 0x472af1
mov eax, dword [eax]
jmp 0x4725bd
lea eax, [esp + 0x50]
push eax
call fcn.00448d70
push edi
mov dword [esp + 0x688], 3
mov edx, dword [ebp]
mov edx, dword [edx + 0x1c]
push 1
push 1
lea eax, [esp + 0x26]
push eax
mov ecx, ebp
mov dword [esp + 0x48], esi
mov byte [esp + 0x2a], 0
call edx
test byte [esp + 0x1a], 0x80
jne 0x472a12
jmp 0x4726d0
xor edi, edi
cmp eax, edi
je 0x472a12
mov esi, dword [esp + 0x28]
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
push esi
push 1
push 1
lea ecx, [esp + 0x27]
push ecx
mov ecx, ebp
mov byte [esp + 0x2b], 0
call edx
movzx ecx, byte [esp + 0x1b]
mov eax, dword [ebp]
mov eax, dword [eax + 0x1c]
push esi
push ecx
push 1
lea edx, [esp + 0x180]
push edx
mov ecx, ebp
call eax
movzx ecx, byte [esp + 0x1b]
xor eax, eax
cmp ecx, edi
mov byte [esp + ecx + 0x174], 0
jle 0x47273c
cmp byte [esp + eax + 0x174], 0x2f
jne 0x472737
mov byte [esp + eax + 0x174], 0x5c
inc eax
cmp eax, ecx
jl 0x472725
mov edx, dword [ebp]
mov edx, dword [edx + 0x1c]
push esi
push 1
push 4
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
mov dword [esp + 0x2c], edi
call edx
mov eax, dword [esp + 0x1c]
call fcn.00498200
push esi
push 1
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
push 8
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call edx
mov eax, dword [esp + 0x44]
call fcn.00498200
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
call fcn.00498200
mov dword [esp + 0x48], eax
mov esi, 0xf
lea eax, [esp + 0x174]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x6c], 0
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4727b0
sub eax, ecx
push eax
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x70]
call fcn.004016e0
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], edi
mov byte [esp + 0xbc], 0
lea ebx, [esp + 0x68]
lea edi, [esp + 0x84]
mov byte [esp + 0x684], 5
call fcn.00471da0
push eax
lea ecx, [esp + 0x118]
push ecx
lea edi, [esp + 0xbc]
mov byte [esp + 0x68c], 6
call fcn.00473b20
lea edx, [esp + 0x168]
push edx
lea ecx, [ebp + 0x20]
push ecx
mov byte [esp + 0x68c], 7
call fcn.00473940
cmp dword [esp + 0x150], 0x10
mov edi, dword [eax]
mov ebx, dword [eax + 4]
jb 0x47284e
mov eax, dword [esp + 0x13c]
push eax
call fcn.006441c7
add esp, 4
xor esi, esi
cmp dword [esp + 0x12c], 0x10
mov dword [esp + 0x150], 0xf
mov dword [esp + 0x14c], esi
mov byte [esp + 0x13c], 0
jb 0x472884
mov ecx, dword [esp + 0x118]
push ecx
call fcn.006441c7
add esp, 4
cmp dword [esp + 0x9c], 0x10
mov dword [esp + 0x12c], 0xf
mov dword [esp + 0x128], esi
mov byte [esp + 0x118], 0
jb 0x4728b8
mov edx, dword [esp + 0x88]
push edx
call fcn.006441c7
add esp, 4
cmp dword [esp + 0xd0], 0x10
mov dword [esp + 0x9c], 0xf
mov dword [esp + 0x98], esi
mov byte [esp + 0x88], 0
jb 0x4728ec
mov eax, dword [esp + 0xbc]
push eax
call fcn.006441c7
add esp, 4
mov byte [esp + 0x684], 3
cmp dword [esp + 0x80], 0x10
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], esi
mov byte [esp + 0xbc], 0
jb 0x472925
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.006441c7
add esp, 4
cmp edi, esi
jne 0x472994
call fcn.006441b7
xor edi, edi
cmp ebx, dword [edi + 0x18]
jne 0x47293a
call fcn.006441b7
mov edx, dword [esp + 0x34]
lea edi, [ebx + 0x30]
lea eax, [esp + 0x174]
mov dword [edi], edx
mov dword [esp + 0x3c], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472951
sub eax, edx
push eax
lea eax, [esp + 0x178]
push eax
lea ecx, [edi + 4]
call fcn.004016e0
mov ebx, dword [esp + 0x38]
mov dword [edi + 0x28], ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
mov dword [edi + 0x2c], ecx
call fcn.00472210
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov ecx, dword [esp + 0x5c]
cmp ecx, esi
jne 0x472998
xor edx, edx
jmp 0x4729a1
mov edi, dword [edi]
jmp 0x472930
mov edx, dword [esp + 0x64]
sub edx, ecx
sar edx, 2
mov eax, dword [esp + 0x60]
mov esi, eax
sub esi, ecx
sar esi, 2
cmp esi, edx
jae 0x4729bb
mov dword [eax], edi
add eax, 4
mov dword [esp + 0x60], eax
jmp 0x4729e2
mov edi, eax
cmp ecx, eax
jbe 0x4729c6
call fcn.006441b7
mov eax, dword [esp + 0x50]
push edi
push eax
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x60]
call fcn.004594a0
mov eax, dword [esp + 0x28]
add ebx, dword [esp + 0x1c]
mov edx, dword [ebp]
mov edx, dword [edx + 0x1c]
push eax
push 1
push 1
lea ecx, [esp + 0x26]
push ecx
mov ecx, ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x2a], 0
call edx
test byte [esp + 0x1a], 0x80
je 0x4726d0
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, ebp
call edx
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x38]
mov eax, dword [eax]
mov esi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov ebx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x20]
test edi, edi
je 0x472a45
cmp edi, eax
je 0x472a4a
call fcn.006441b7
cmp esi, ebx
je 0x472a88
test edi, edi
jne 0x472a84
call fcn.006441b7
cmp esi, dword [edi + 0x18]
jne 0x472a61
call fcn.006441b7
mov ecx, dword [esp + 0x34]
cmp dword [esi + 0x30], ecx
jne 0x472a71
mov edx, dword [esp + 0x3c]
add dword [esi + 0x58], edx
lea esi, [esp + 0x20]
call fcn.004741a0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jmp 0x472a37
mov edi, dword [edi]
jmp 0x472a57
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, ebp
call edx
cmp byte [ebp + 0x44], 0
je 0x472ac3
cmp byte [ebp + 0x45], 0
jne 0x472ac3
mov edi, dword [esp + 0x4c]
xor esi, esi
xor eax, eax
cmp dword [edi + 0x24], esi
jbe 0x472ac5
mov ecx, dword [edi + 0x1c]
mov dl, byte [ebp + 0x44]
xor byte [ecx + eax], dl
add ecx, eax
inc eax
cmp eax, dword [edi + 0x24]
jb 0x472ab0
jmp 0x472ac5
xor esi, esi
mov eax, dword [esp + 0x5c]
cmp eax, esi
je 0x472ad6
push eax
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x50]
push eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call fcn.006441c7
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x67c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.00643db8
add esp, 0x674
ret 4