Function at 0x407d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42da31
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x43b698]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, 0xf
mov esi, ecx
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x454], edi
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x458], 1
mov word [ebp - 0x468], 0x63
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [ebp - 0x468]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call edx
mov dword [ebp - 0x438], edi
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x43c], 1
mov word [ebp - 0x44c], 0x9c
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0x44c]
push edx
mov byte [ebp - 4], 1
call eax
push 0x400
lea ecx, [ebp - 0x413]
push ebx
push ecx
mov byte [ebp - 0x414], bl
call fcn.0042ccee
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 1
call edx
mov byte [ebp + eax - 0x414], bl
mov al, byte [ebp - 0x414]
cmp al, 0x1f
je 0x408098
cmp al, 0x79
jne 0x408098
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x430], bl
movzx eax, byte [ebp + 8]
dec al
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
mov byte [ebp - 0x478], al
push eax
call fcn.004026b0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [ebp - 0x430]
push eax
call edx
movzx edx, byte [ebp + 8]
xor edi, edi
mov dword [ebp - 0x470], edx
cmp edx, ebx
jle 0x407ef2
lea esp, [esp]
cmp dword [ebp - 0x41c], 1
mov eax, dword [ebp - 0x474]
mov cl, byte [eax + edi]
mov byte [ebp - 0x46c], cl
jae 0x407e8c
mov edx, dword [ebp - 0x420]
push edx
push 1
lea ecx, [ebp - 0x430]
call fcn.00402420
mov eax, dword [ebp - 0x430]
mov ecx, 0x10
cmp dword [ebp - 0x41c], ecx
jae 0x407ea5
lea eax, [ebp - 0x430]
mov dl, byte [ebp - 0x46c]
mov byte [eax], dl
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x420], 1
cmp dword [ebp - 0x41c], ecx
jae 0x407ecb
lea eax, [ebp - 0x430]
mov byte [eax + 1], bl
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
lea edx, [ebp - 0x430]
push edx
call eax
inc edi
cmp edi, dword [ebp - 0x470]
jl 0x407e60
mov edx, dword [ebp - 0x470]
mov edi, dword [ebp - 0x474]
mov cl, byte [edi]
mov eax, 1
mov byte [ebp - 0x46c], cl
cmp edx, eax
jle 0x407f1e
lea esp, [esp]
xor cl, byte [edi + eax]
inc eax
cmp eax, edx
jl 0x407f10
mov byte [ebp - 0x46c], cl
cmp dword [ebp - 0x41c], 1
jae 0x407f41
mov ecx, dword [ebp - 0x420]
push ecx
push 1
lea ecx, [ebp - 0x430]
call fcn.00402420
mov cl, byte [ebp - 0x46c]
mov al, byte [ebp - 0x478]
xor al, cl
mov ecx, dword [ebp - 0x430]
mov edi, 0x10
cmp dword [ebp - 0x41c], edi
jae 0x407f62
lea ecx, [ebp - 0x430]
mov byte [ecx], al
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x420], 1
cmp dword [ebp - 0x41c], edi
jae 0x407f82
lea eax, [ebp - 0x430]
mov byte [eax + 1], bl
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [ebp - 0x430]
push eax
call edx
mov esi, dword [esi + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
lea ecx, [ebp - 0x414]
push ecx
push 1
mov ecx, esi
call edx
mov byte [ebp + eax - 0x414], bl
cmp byte [ebp - 0x414], 0x79
jne 0x408030
cmp dword [ebp - 0x41c], edi
jb 0x407fd2
mov eax, dword [ebp - 0x430]
push eax
call fcn.0042cccc
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x430], bl
cmp dword [ebp - 0x438], edi
jb 0x408000
mov ecx, dword [ebp - 0x44c]
push ecx
call fcn.0042cccc
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
cmp dword [ebp - 0x454], edi
jb 0x408029
mov edx, dword [ebp - 0x468]
push edx
call fcn.0042cccc
add esp, 4
xor al, al
jmp 0x4080df
cmp dword [ebp - 0x41c], edi
jb 0x408047
mov eax, dword [ebp - 0x430]
push eax
call fcn.0042cccc
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x420], ebx
mov byte [ebp - 0x430], bl
cmp dword [ebp - 0x438], edi
jb 0x408075
mov ecx, dword [ebp - 0x44c]
push ecx
call fcn.0042cccc
add esp, 4
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x43c], ebx
mov byte [ebp - 0x44c], bl
cmp dword [ebp - 0x454], edi
jb 0x4080dd
mov edx, dword [ebp - 0x468]
push edx
jmp 0x4080d5
mov esi, 0x10
cmp dword [ebp - 0x438], esi
jb 0x4080b4
mov eax, dword [ebp - 0x44c]
push eax
call fcn.0042cccc
add esp, 4
mov byte [ebp - 0x44c], bl
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x438], edi
cmp dword [ebp - 0x454], esi
jb 0x4080dd
mov ecx, dword [ebp - 0x468]
push ecx
call fcn.0042cccc
add esp, 4
mov al, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ccde
mov esp, ebp
pop ebp
ret 8