Function at 0x407828
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x47046d
call fcn.0046ffb4
sub esp, 0x6c
cmp dword [0x565874], 0
push esi
push edi
jne 0x407898
push dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00412dab
push ecx
push 0x18
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.004123c9
xor edx, edx
mov cl, byte [esi + edx + 1]
lea eax, [ebp - 0x40]
xor cl, byte [esi]
cmp dword [ebp - 0x2c], 0xf
cmova eax, dword [ebp - 0x40]
mov byte [eax + edx], cl
inc edx
cmp edx, 0x18
jb 0x40785b
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
cmova eax, dword [ebp - 0x40]
push eax
call fcn.004504e4
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00412370
jmp 0x407a28
mov edi, dword [0x565870]
mov dword [ebp - 0x1c], edi
mov esi, dword [edi]
cmp esi, edi
je 0x407a28
mov eax, dword [esi + 8]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call fcn.0041214c
mov ah, al
mov byte [ebp - 0x29], 0
xor al, 0x6e
mov byte [ebp - 0x38], ah
mov byte [ebp - 0x35], al
mov cl, ah
mov al, ah
xor cl, 0x43
xor al, 0x74
mov byte [ebp - 0x37], cl
mov byte [ebp - 0x34], al
mov cl, ah
mov al, ah
xor cl, 0x72
xor al, 0x6c
mov byte [ebp - 0x33], cl
mov byte [ebp - 0x31], al
mov dl, ah
mov byte [ebp - 0x30], al
xor dl, 0x6f
mov al, ah
mov byte [ebp - 0x2e], cl
xor al, 0x65
mov byte [ebp - 0x36], dl
mov byte [ebp - 0x2f], al
mov al, ah
xor al, 0x20
mov byte [ebp - 0x32], dl
mov byte [ebp - 0x2d], al
mov al, ah
xor al, 0x25
mov byte [ebp - 0x2c], al
mov al, ah
xor al, 0x64
mov byte [ebp - 0x2b], al
mov al, ah
push ecx
xor al, 0x3a
lea ecx, [ebp - 0x5c]
push 0xe
mov byte [ebp - 0x2a], al
call fcn.004123c9
mov ch, byte [ebp - 0x38]
xor edx, edx
mov cl, byte [ebp + edx - 0x37]
lea eax, [ebp - 0x5c]
xor cl, ch
cmp dword [ebp - 0x48], 0xf
cmova eax, dword [ebp - 0x5c]
mov byte [eax + edx], cl
inc edx
cmp edx, 0xe
jb 0x40792c
push dword [ebp - 0x18]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0xf
cmova eax, dword [ebp - 0x5c]
push eax
call fcn.004504e4
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.00412370
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0xf
jbe 0x40797d
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.0041214c
mov dl, al
mov byte [ebp - 0x1d], 0
xor al, 0x65
mov byte [ebp - 0x26], dl
mov byte [ebp - 0x22], al
mov cl, dl
xor cl, 0x4e
mov al, dl
xor al, 0x3a
mov byte [ebp - 0x25], cl
mov byte [ebp - 0x21], al
mov cl, dl
xor cl, 0x61
mov al, dl
xor al, 0x20
mov byte [ebp - 0x24], cl
mov byte [ebp - 0x20], al
mov cl, dl
mov al, dl
xor cl, 0x6d
xor al, 0x25
mov byte [ebp - 0x23], cl
mov byte [ebp - 0x1f], al
mov al, dl
push ecx
xor al, 0x73
lea ecx, [ebp - 0x74]
push 8
mov byte [ebp - 0x1e], al
call fcn.004123c9
mov dl, byte [ebp - 0x26]
xor edi, edi
mov cl, byte [ebp + edi - 0x25]
lea eax, [ebp - 0x74]
xor cl, dl
cmp dword [ebp - 0x60], 0xf
cmova eax, dword [ebp - 0x74]
mov byte [eax + edi], cl
inc edi
cmp edi, 8
jb 0x4079d4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x60], 0xf
push ecx
cmova eax, dword [ebp - 0x74]
push eax
call fcn.004504e4
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00412370
call fcn.004525a0
mov esi, dword [esi]
cmp esi, dword [ebp - 0x1c]
jne 0x4078ab
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret