Function at 0x407af5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4261f4
call fcn.0041bdc0
mov eax, 0x1270
call fcn.0041bd90
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.00402ccc
xor esi, esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00402ccc
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00402eb2
add eax, 0x41
lea ecx, [ebp - 0x18]
push eax
call fcn.00402d7a
lea ecx, [ebp - 0x18]
call fcn.00409563
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00409563
push eax
call fcn.0041476d
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.00402ebf
mov eax, dword [ebp + 8]
lea edi, [eax + 0x110]
mov ecx, edi
call fcn.00409563
push eax
call fcn.0041b566
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x24]
lea eax, [ebx + 0x41]
push eax
call fcn.00402d7a
lea ecx, [ebp - 0x18]
call fcn.00409563
cmp word [eax], 0x22
jne 0x407bc3
push 0x22
lea ecx, [ebp - 0x18]
call fcn.00409563
inc eax
inc eax
push eax
call fcn.00405318
pop ecx
cmp eax, esi
pop ecx
je 0x407ba8
mov word [eax], si
lea ecx, [ebp - 0x18]
call fcn.00409563
inc eax
lea ecx, [ebp - 0x18]
inc eax
push eax
call fcn.00409563
push eax
call fcn.0041b4fb
pop ecx
pop ecx
push ebx
mov ecx, edi
call fcn.00409563
push eax
lea ecx, [ebp - 0x24]
call fcn.00402dc4
test bl, 0x3f
je 0x407be5
push esi
lea ecx, [ebp - 0x24]
call fcn.00402e39
inc ebx
jmp 0x407bd4
cmp ebx, 0x40
jbe 0x407c3a
lea eax, [ebp - 0x27c]
push eax
call fcn.00419a6d
pop ecx
push ebx
lea ecx, [ebp - 0x24]
call fcn.00409563
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0041a4a8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0041a550
add esp, 0x14
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x24]
push 0x10
pop ebx
push 0x20
push eax
call fcn.00409563
push eax
call fcn.0041b110
add esp, 0xc
push 0x20
mov eax, 0x5c005c
pop ecx
lea edi, [ebp - 0x1e4]
rep stosd dword es:[edi], eax
push 0x20
mov eax, 0x360036
pop ecx
lea edi, [ebp - 0x160]
cmp ebx, esi
mov dword [ebp + 0xc], esi
rep stosd dword es:[edi], eax
jbe 0x407c99
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
lea esi, [eax + eax]
call fcn.00409563
mov ax, word [eax + esi]
lea ecx, [ebp - 0x24]
xor word [ebp + esi - 0x160], ax
lea edi, [ebp + esi - 0x1e4]
call fcn.00409563
mov ax, word [eax + esi]
xor word [edi], ax
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
jb 0x407c61
lea eax, [ebp - 0xdc]
push eax
call fcn.00419a6d
lea eax, [ebp - 0x160]
push 0x40
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041a4a8
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.00402eb2
push eax
lea ecx, [ebp - 0x18]
call fcn.00409563
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041a4a8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041a550
lea eax, [ebp - 0xdc]
push eax
call fcn.00419a6d
lea eax, [ebp - 0x1e4]
push 0x40
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041a4a8
lea eax, [ebp - 0x44]
push 0x10
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041a4a8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.0041a550
mov eax, dword [ebp + 8]
add esp, 0x38
lea ecx, [eax + 0x104]
call fcn.00409563
push eax
lea eax, [ebp - 0x127c]
push eax
call fcn.0041b4fb
lea eax, [ebp - 0x127c]
push eax
call fcn.0041b566
mov esi, eax
add esp, 0xc
lea edi, [ebp - 0x44]
mov dword [ebp + 0xc], 0x10
mov word [ebp + esi*2 - 0x127c], 0x20
inc esi
lea ebx, [ebp + esi*2 - 0x127c]
add esi, 0x20
movzx eax, word [edi]
push eax
push str._02hx
push ebx
call fcn.0041af29
add esp, 0xc
add ebx, 4
inc edi
inc edi
dec dword [ebp + 0xc]
jne 0x407d7c
push 0
lea eax, [ebp - 0x127c]
push dword [ebp + 0x10]
push esi
push eax
call fcn.00414a06
push 0x427b14
push dword [ebp + 0x10]
call fcn.0041b4d1
add esp, 0x18
lea ecx, [ebp - 0x24]
call fcn.00402d02
lea ecx, [ebp - 0x18]
call fcn.00402d02
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00402cbe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402cbe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret