Function at 0x39320c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x3934b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x7b4]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x10b0]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x10b0]
xor edx, edx
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x194]
mov eax, dword [0x3c2e40]
call fcn.00392f78
lea eax, [ebp - 0x194]
mov edx, 0x3934cc
call fcn.003055cc
mov eax, dword [ebp - 0x194]
call fcn.00309ef4
test al, al
je 0x393489
lea edx, [ebp - 0x198]
mov eax, dword [0x3c2e40]
call fcn.00392f78
lea eax, [ebp - 0x198]
mov edx, 0x3934cc
call fcn.003055cc
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x164]
call fcn.003032d0
mov edx, 1
lea eax, [ebp - 0x164]
call fcn.003039e4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 1]
mov ecx, 1
lea eax, [ebp - 0x164]
call fcn.00303434
dec byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 1]
lea eax, [ebp - 0x10]
call fcn.00305950
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov cl, byte [ebp - 1]
lea edx, [ebp - 0x190]
lea eax, [ebp - 0x164]
call fcn.00303434
xor edx, edx
mov dl, byte [ebp - 1]
lea eax, [ebp - 0x10]
call fcn.00305950
inc byte [ebp - 1]
cmp dword [ebp - 0x18], 0
je 0x393442
movzx esi, byte [ebp - 1]
dec esi
test esi, esi
jle 0x39338a
mov dword [ebp - 8], 1
lea edi, [ebp - 0x190]
mov bl, byte [edi]
xor bl, byte [ebp - 1]
xor bl, byte [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.0030581c
mov edx, dword [ebp - 8]
mov byte [eax + edx - 1], bl
inc dword [ebp - 8]
inc edi
dec esi
jne 0x39336c
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x7b4]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14]
push eax
mov ecx, 0xb
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00305824
lea eax, [ebp - 0x10]
mov ecx, 0xb
mov edx, 1
call fcn.00305864
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x1a0]
mov ecx, dword [0x3bfe94]
mov edx, dword [ebp - 0x10]
call fcn.00305610
mov eax, dword [ebp - 0x1a0]
mov ecx, 0x20
mov edx, 1
call fcn.00305824
push dword [ebp - 0x19c]
push 0x3934e0
push dword [ebp - 0x14]
push 0x3934ec
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00305684
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x10b0]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x10b0]
inc dword [eax + 0xc]
inc dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
jne 0x3932fb
lea edx, [ebp - 0x1a4]
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x10b0]
mov eax, dword [eax + 0xc]
call fcn.0030996c
mov edx, dword [ebp - 0x1a4]
mov eax, dword [0x15c330c]
mov eax, dword [eax + 0x10cc]
call fcn.0034b09c
lea eax, [ebp - 0x164]
call fcn.00303474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3934bb
lea eax, [ebp - 0x1a4]
mov edx, 5
call fcn.00305328
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00305328
ret