Function at 0x4af49c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4dcb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4af40e
lea eax, [ecx - 7]
jmp 0x4af729
lea eax, [esi + 0x30]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push ecx
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WriteFile_1]
test eax, eax
je 0x4af43e
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
jmp 0x4af729
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0xe9
ja 0x4af47d
je case.0x4af462.109
cmp edi, 0xe8
ja case.0x4af462.1
movzx eax, byte [edi + 0x4af760]
jmp dword [eax*4 + 0x4af74c]
mov eax, 0xfffffff2
jmp 0x4af729
mov eax, 0xffffffe7
jmp 0x4af729
sub eax, 0x3e5
je case.0x4af462.0
sub eax, 0x313
je case.0x4af462.8
sub eax, 0x20
je case.0x4af462.8
mov eax, dword [0x4fdaa8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0
push 0x30
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004aa4a0
mov ecx, eax
mov dword [ebp - 0x14], 0x2f
mov dword [ebp - 0x18], 0x26
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
mov dword [ecx + 0x20], 0
mov word [ecx + 0x24], 0
mov byte [ecx + 0x26], 0
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x28], ecx
jb 0x4af507
movsx edx, byte [ecx]
jmp 0x4af50d
movsx edx, byte [eax]
lea ecx, [ebp - 0x28]
mov eax, 0x4f4810
add edx, 0x1739807
sub eax, ecx
mov esi, 0x26
mov dword [ebp - 0x44], eax
mov edi, eax
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xdef5
shr eax, 0xc
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x12df0bf4
sub esi, 1
jne 0x4af524
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x64], 0x4efc60
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, 0x4f45fc
inc eax
cmp byte [eax], 0
jne 0x4af568
sub eax, 0x4f45fc
mov dword [ebp - 0x58], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x5c], ecx
test ecx, ecx
jne 0x4af584
xor eax, eax
jmp 0x4af58d
push ecx
call fcn.004d4296
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, 0x4f45fc
mov dword [ebp - 0x60], eax
inc ecx
cmp byte [ecx], 0
jne 0x4af598
sub ecx, 0x4f45fc
inc ecx
push ecx
push 0x4f45fc
push eax
call fcn.004d1d90
add esp, 0xc
push edi
lea ecx, [ebp - 0x94]
call fcn.004b6e90
push 0x30
mov byte [ebp - 4], 3
call fcn.004aa4a0
mov edx, eax
mov dword [ebp - 0x30], 0x23
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0x2f
mov dword [ebp - 0x40], edx
mov edi, 0x4f48a0
mov esi, 0x23
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], 0
movsx ecx, byte [edx]
add ecx, 0x1739807
sub edi, edx
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xdbf5
shr eax, 0xc
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x12df0bf4
sub esi, 1
jne 0x4af604
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x84]
call fcn.004b7340
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
lea ecx, [ebp - 0x74]
call fcn.004b6680
push ecx
mov ecx, dword [ebp - 0x54]
push esi
push 0xf3
push dword [ebp - 0x50]
mov byte [ebp - 4], 7
push dword [eax + 4]
call fcn.004c3d30
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x4efc60
test eax, eax
je 0x4af677
push eax
call fcn.004d427b
add esp, 4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], 0x4efc60
test eax, eax
je 0x4af691
push eax
call fcn.004d427b
add esp, 4
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4af6c5
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4af6bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af746
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x4af6d8
push eax
call fcn.004d427b
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4af6e8
push eax
call fcn.004d427b
add esp, 4
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4af718
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4af70e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4af746
push edx
push ecx
call fcn.004cf4f2
add esp, 8
or eax, 0xffffffff
jmp 0x4af729
mov eax, 0xfffffff6
jmp 0x4af729
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
ret 8
call fcn.004d4192
nop
and al, 0xf7
dec edx
add byte [0x73004af7], bl
hlt