Function at 0x4013c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x408a20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov byte [ebp - 0x5d], 1
xor eax, eax
mov dword [ebp - 0x24], 0xacd5acdf
lea edi, [ebp - 0x34]
mov dword [ebp - 0x20], 0xacc9acdf
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0xacdfac82
mov dword [ebp - 0x18], 0xacdfacd5
mov dword [ebp - 0x14], 0xacdcacc5
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0xac82accd
mov dword [ebp - 0xc], 0xacc3accf
mov dword [ebp - 8], 0xacacacc1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ebx
xor byte [ebp + eax - 0x24], 0xac
inc eax
cmp eax, 0x20
jb 0x401420
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00405d58
cmp dword [ebp - 0x30], ebx
jne 0x401445
mov dword [ebp - 0x30], 0xf074b2f
push ebx
mov dword [ebp - 0x4c], 0x14
call fcn.004026d4
push 1
mov dword [ebp - 0x48], eax
call fcn.004026d4
push 2
pop esi
push esi
mov dword [ebp - 0x44], eax
call fcn.004026d4
push 3
mov dword [ebp - 0x40], eax
call fcn.004026d4
push 4
mov dword [ebp - 0x3c], eax
call fcn.004026d4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x3c], ebx
jne 0x40148b
mov dword [ebp - 0x3c], 0x10002
push 0x4e7a
mov dword [ebp - 0x50], 0x32334b41
mov word [ebp - 0x34], si
call fcn.00405ed8
push 0x2328
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x50]
push 0x1c
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040168a
test eax, eax
jne 0x4014c3
xor al, al
jmp 0x40167a
cmp eax, 1
jne 0x4014cf
mov al, al
jmp 0x40167a
push 0x276a
mov word [ebp - 0x34], si
call fcn.00405ed8
push 6
mov word [ebp - 0x32], ax
lea eax, [ebp - 0x34]
push 1
push eax
call fcn.00406366
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x401678
push ebx
push 0x1c
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.004061b4
test eax, eax
jne 0x40166e
push ebx
push 0xc
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.00405fdc
cmp eax, 0xc
jne 0x40166e
mov eax, dword [ebp - 0x5c]
cmp eax, 0x20000
je 0x401648
add eax, 0xfffdffff
cmp eax, 4
ja 0x4015d5
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x4015d5
push 0x46696c65
lea eax, [edi + 4]
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x40166e
lea eax, [edi + 4]
push eax
push ebx
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
test edi, edi
je 0x4015b1
mov eax, dword [ebp - 0x58]
push ebx
sub eax, edi
push edi
add eax, esi
push eax
push dword [ebp - 0x64]
call fcn.00405fdc
test eax, eax
jle 0x401595
sub edi, eax
jne 0x401579
jmp 0x4015b1
push 0x46696c65
push esi
lfence
mov byte [ebp - 0x5d], bl
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov esi, ebx
test edi, edi
jne 0x401641
mov cl, byte [ebp - 0x5d]
test cl, cl
je 0x40163c
mov eax, dword [ebp - 0x5c]
cmp eax, 0x20001
jne 0x4015e8
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push esi
call fcn.00402280
mov esi, dword [ebp - 0x64]
mov cl, byte [ebp - 0x5d]
mov dword [ebp - 0x5c], ebx
test cl, cl
jne 0x401510
jmp 0x40166e
cmp eax, 0x20002
jne 0x4015fd
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push esi
call fcn.00401f70
jmp 0x4015d2
cmp eax, 0x20003
jne 0x401612
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push esi
call fcn.00402390
jmp 0x4015d2
cmp eax, 0x20004
jne 0x401627
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push esi
call fcn.00401f0e
jmp 0x4015d2
cmp eax, 0x20005
jne 0x40163c
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push esi
call fcn.00402688
jmp 0x4015d2
mov esi, dword [ebp - 0x64]
jmp 0x4015d8
mov esi, dword [ebp - 0x64]
mov cl, bl
jmp 0x4015d8
mov eax, dword [ebp - 0x58]
and eax, 1
cmp dword [0x408054], eax
je 0x40165b
mov dword [0x408054], eax
mov eax, dword [ebp - 0x54]
and eax, 1
cmp dword [0x408058], eax
je 0x40166e
mov dword [0x408058], eax
push dword [ebp - 0x64]
call fcn.00405ccc
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406896
leave
ret