Function at 0x407ff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov word [esp + 0xf2], 0x7c3d
mov dword [esp + 0xe8], 0x707458d5
mov byte [esp + 0xe7], 0xf4
mov esi, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
mov ebx, dword [esp + 0xe8]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x21741c24
mov dword [esp + 0x2c], eax
mov eax, ebx
add eax, 0xe4bef01c
mov dword [esp + 0x4c], eax
mov eax, ebx
xor eax, 0xffffffff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xec], eax
mov ax, word [esp + 0xf4]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, 0x7d856bda
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov word [esp + 0xe], ax
jbe 0x40835b
mov dword [esp + 0xe0], 0
jmp 0x4083f5
cmp byte [esp + 0xe7], 6
jbe 0x408282
jmp 0x408310
mov ax, word [esp + 0xe]
and ax, 0x6c4c
mov word [esp + 0xf4], ax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x38]
mov eax, dword [esp + eax*4 + 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
or eax, 0x5258821e
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xec], eax
mov dword [esp + 0xd8], ecx
mov al, byte [esp + 0xf7]
mul byte [esp + 0xf7]
mov byte [esp + 0xf7], al
mov al, byte [esp + 0xf7]
xor al, 0xff
mov ecx, dword [esp + 0xd8]
mov byte [esp + 0xf7], al
mov edx, dword [esp + 0x1c]
xor edx, 0x66733fce
mov esi, dword [ebp + 0x10]
mov dword [esp + 0xec], edx
cmp ecx, esi
jae 0x408487
mov al, byte [esp + 0xf7]
add al, 0x7a
mov byte [esp + 0xf7], al
mov ecx, dword [esp + 0xd8]
mov si, word [esp + 0xe]
mov dx, si
and ecx, 0x1f
mov word [esp + 0xf4], si
mov edi, dword [esp + 0x10]
not edi
mov ebx, dword [esp + 0x14]
not ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], edi
add edx, 0xffffdca2
mov ax, dx
mov edx, dword [esp + 0x40]
mov cl, byte [edx + ecx]
mov word [esp + 0xf4], ax
mov byte [esp + 0xdf], cl
mov edi, dword [esp + 0x1c]
add edi, 0x379b6156
mov dword [esp + 0xec], edi
mov edi, esp
mov dword [edi], edx
call fcn.004070d0
mov edx, dword [esp + 0x1c]
and edx, 0x28cce0a4
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0xd8]
mov edi, dword [esp + 0x30]
movzx edx, byte [edi + edx]
movzx edi, byte [esp + 0xdf]
mov ebx, dword [esp + 0x14]
or ebx, 0x1d83b1b9
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xfc], ecx
mov dword [esp + 0xf8], ebx
mov ebx, dword [esp + 0x40]
sub edx, edi
mov edi, esp
mov dword [edi], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call fcn.004070d0
mov ecx, dword [esp + 4]
add ecx, eax
mov al, cl
mov byte [esp + 0x37], al
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 0x37]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0
mov si, word [esp + 0xe]
add si, 0x9a7f
mov edx, dword [esp + 0xd8]
mov word [esp + 0xf4], si
mov byte [esp + 0xf7], 0xb5
mov byte [ecx + edx], al
jmp 0x40844b
mov eax, 0x205c4a4d
mov dword [esp + 0x50], 0x57db2f79
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xf8], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xfc], edx
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
or edi, 0x84cc01c
mov dword [esp + 0xec], edi
cmp eax, esi
jbe 0x4083d4
jmp 0x408310
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.004070d0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0xe0]
movzx esi, byte [ecx + edx]
sub esi, eax
mov bl, byte [esp + 0xf7]
sub bl, 0x94
mov byte [esp + 0xf7], bl
mov eax, esi
mov bl, al
mov di, word [esp + 0xe]
imul si, di, 0xcb14
mov word [esp + 0xf4], si
mov byte [ecx + edx], bl
jmp 0x408282
mov cx, word [esp + 0xe]
mov ax, cx
xor eax, 0xe8e2
mov dx, ax
mov word [esp + 0xf4], dx
mov eax, dword [esp + 0x38]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x678d9bbf
or cx, cx
mov word [esp + 0xf4], cx
cmp eax, 0x20
jb 0x4080e8
jmp 0x4080ac
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 0x40a0a7
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x7519266
mov esi, 0x40a0c8
mov ecx, 0x20
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
xor ecx, 0x418581fd
mov esi, dword [esp + 0x10]
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x44], 0x20
mov word [esp + 0xf4], 0x2aa0
mov dword [esp + 0x38], 0
jmp 0x4080bc
mov eax, dword [esp + 0xe0]
add eax, 1
mov dword [esp + 0xe0], eax
mov cx, word [esp + 0xe]
add cx, cx
mov word [esp + 0xf4], cx
mov ax, 0x2a91
mov cx, word [esp + 0xf2]
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x4c7fe55d
sub ax, cx
mov word [esp + 0x4a], 0x9600
mov cx, word [esp + 0x4a]
mov dx, word [esp + 0xe]
mov word [esp + 0xf4], dx
mov bl, byte [esp + 0xf7]
xor bl, 0xff
mov byte [esp + 0xf7], bl
cmp cx, ax
jae 0x4083f5
jmp 0x408462
mov eax, dword [esp + 0xd8]
add eax, dword [esp + 0x44]
mov dword [esp + 0xd8], eax
jmp 0x40810f
mov eax, dword [ebp + 0x10]
cmp dword [esp + 0xe0], eax
jne 0x4082c4
jmp 0x4080cf
mov eax, dword [esp + 0x38]
add eax, 1
mov dword [esp + 0x38], eax
jmp 0x4080bc
jmp 0x408477