Function at 0x4ace20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4a55
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x48], ecx
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x68], 0x4efc60
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [ebx + 8]
mov dword [ebp - 4], 0
cmp eax, 9
ja case.0x4ace99.0
jmp dword [eax*4 + 0x4ad4bc]
push 0x20
mov byte [ebp - 4], 0
call fcn.004aa4a0
mov ecx, eax
mov dword [ebp - 0x1c], 0x13
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x2c], ecx
mov eax, 0x4f45b0
mov esi, 0x13
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
movsx edx, byte [ecx]
add edx, 0x2e93bb
sub eax, ecx
mov edi, eax
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xcbf5
shr eax, 0xc
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x25dd418
sub esi, 1
jne 0x4acee2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004b7340
mov edi, dword [ebp - 0x30]
movups xmm0, xmmword [eax]
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x4efc60
movups xmmword [ebp - 0x68], xmm0
test eax, eax
je 0x4acf38
push eax
call fcn.004d427b
add esp, 4
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4ad26d
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4acf66
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ad4b7
push edx
push ecx
call fcn.004cf4f2
add esp, 8
jmp 0x4ad26d
push 0x20
mov byte [ebp - 4], 0
call fcn.004aa4a0
mov edx, eax
mov dword [ebp - 0x1c], 0x12
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x1f
mov dword [ebp - 0x2c], edx
mov eax, 0x4f4600
mov esi, 0x12
movups xmmword [edx], xmm0
mov word [edx + 0x10], 0
mov byte [edx + 0x12], 0
movsx ecx, byte [edx]
add ecx, 0x33279e
sub eax, edx
mov edi, eax
nop word [eax + eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xcaf5
shr eax, 9
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x299569f
sub esi, 1
jne 0x4acfc0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004b7340
mov edi, dword [ebp - 0x30]
movups xmm0, xmmword [eax]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x4efc60
movups xmmword [ebp - 0x68], xmm0
test eax, eax
je 0x4acf38
jmp 0x4acf2f
push 0x30
mov byte [ebp - 4], 0
call fcn.004aa4a0
push 0x29
mov esi, eax
mov dword [ebp - 0x1c], 0x29
push 0
push esi
mov dword [ebp - 0x18], 0x2f
call fcn.004d0920
mov byte [esi + 0x29], 0
mov eax, 0x4f45d0
mov dword [ebp - 0x2c], esi
add esp, 0xc
movsx ecx, byte [esi]
mov edx, 0x29
add ecx, 0x37bb81
sub eax, esi
mov edi, eax
nop dword [eax + eax]
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xe1f5
shr eax, 6
xor al, byte [edi + esi - 1]
mov byte [esi - 1], al
add ecx, 0x2d4d926
sub edx, 1
jne 0x4ad070
jmp 0x4acfe0
push 0x30
mov byte [ebp - 4], 0
call fcn.004aa4a0
mov ecx, eax
mov dword [ebp - 0x1c], 0x28
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x2f
mov dword [ebp - 0x2c], ecx
mov eax, 0x4f4620
mov esi, 0x28
movups xmmword [ecx], xmm0
movups xmmword [ecx + 0x10], xmm0
movq qword [ecx + 0x20], xmm0
mov byte [ecx + 0x28], 0
movsx edx, byte [ecx]
add edx, 0x3c4f64
sub eax, ecx
mov edi, eax
nop dword [eax]
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xe0f5
shr eax, 0xc
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x3105bad
sub esi, 1
jne 0x4ad0e0
jmp 0x4acfe0
push ecx
push 0xe
lea ecx, [ebp - 0x2c]
call fcn.004aa330
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
jb 0x4ad121
mov edx, dword [ebp - 0x2c]
movsx ecx, byte [edx]
jmp 0x4ad127
movsx ecx, byte [eax]
lea edx, [ebp - 0x2c]
mov eax, 0x4f464c
add ecx, 0x40e347
sub eax, edx
mov esi, 0xe
mov dword [ebp - 0x34], eax
mov edi, eax
nop
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xc6f5
shr eax, 9
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x34bde34
sub esi, 1
jne 0x4ad140
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.004b7340
mov edi, dword [ebp - 0x30]
jmp 0x4ad232
push ecx
push 7
lea ecx, [ebp - 0x2c]
call fcn.004aa330
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
jb 0x4ad190
mov edx, dword [ebp - 0x2c]
movsx ecx, byte [edx]
jmp 0x4ad196
movsx ecx, byte [eax]
lea edx, [ebp - 0x2c]
add ecx, 0x46fdcb
mov eax, ecx
imul ecx, ecx, 0xbff5
shr eax, 8
xor al, 0xa8
mov byte [edx], al
add ecx, 0x39b36e8
mov eax, ecx
imul ecx, ecx, 0xbff5
shr eax, 8
xor al, 0xe1
mov byte [edx + 1], al
add ecx, 0x39b36e8
mov eax, ecx
imul ecx, ecx, 0xbff5
shr eax, 8
xor al, 0x24
mov byte [edx + 2], al
add ecx, 0x39b36e8
mov eax, ecx
imul ecx, ecx, 0xbff5
shr eax, 8
xor al, 0x66
mov byte [edx + 3], al
add ecx, 0x39b36e8
mov eax, ecx
imul ecx, ecx, 0xbff5
shr eax, 8
xor al, 0x72
mov byte [edx + 4], al
add ecx, 0x39b36e8
mov eax, ecx
shr eax, 8
xor al, 0x42
mov byte [edx + 5], al
imul eax, ecx, 0xbff5
lea ecx, [ebp - 0x44]
add eax, 0x39b36e8
shr eax, 8
xor al, 0x45
mov byte [edx + 6], al
lea eax, [ebp - 0x2c]
push eax
call fcn.004b7340
movups xmm0, xmmword [eax]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x4efc60
movups xmmword [ebp - 0x68], xmm0
test eax, eax
je 0x4ad265
push eax
call fcn.004d427b
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.004aa2e0
mov dword [ebp - 0x58], 0x4efc60
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.004b74d0
mov eax, 1
cmp eax, dword [ebx + 0xc]
sbb esi, esi
add esi, 2
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], esi
jne 0x4ad2bd
push 0x4f45fc
lea ecx, [ebp - 0x58]
call fcn.004b74d0
jmp 0x4ad300
mov edi, 0x4f45fc
inc edi
cmp byte [edi], 0
jne 0x4ad2c2
sub edi, 0x4f45fc
test edi, edi
jle 0x4ad2fd
push edi
lea ecx, [ebp - 0x58]
call fcn.004b77c0
mov ecx, dword [ebp - 0x54]
lea eax, [edi + 1]
mov esi, dword [ebp - 0x4c]
add ecx, esi
push eax
push 0x4f45fc
push ecx
call fcn.004d1d90
add esp, 0xc
add esi, edi
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x30]
push ecx
mov ecx, dword [0x4fdaa8]
push esi
push dword [ebx + 0x14]
push edi
push dword [ebp - 0x54]
call fcn.004c3d30
mov eax, dword [0x4fdaa8]
xor ecx, ecx
mov esi, dword [ebp - 0x64]
cmp dword [eax + 4], 1
setge cl
cmp dword [ebx + 0xc], ecx
jle 0x4ad47c
push 0x24
call fcn.004cf4bd
add esp, 4
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
mov ecx, dword [ebp - 0x64]
mov esi, 0x4ef9c8
mov edx, dword [ebx + 8]
test ecx, ecx
cmovne esi, ecx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x14], edx
mov edx, dword [ebx + 0x14]
mov dword [ecx + 0x18], edx
mov edx, dword [ebx + 0xc]
mov dword [ecx + 0x1c], edx
mov dword [ecx], 0x4efebc
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x54]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ad390
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004d4296
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10], ecx
test ecx, ecx
je 0x4ad3c2
mov edx, dword [ebp - 0x54]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4ad3b4
mov ecx, dword [ebp - 0x6c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ad3c8
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004d4296
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], ecx
test ecx, ecx
je 0x4ad3fe
mov edx, dword [ebp - 0x6c]
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4ad3f0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ad403
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004d4296
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], ecx
test ecx, ecx
je 0x4ad432
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4ad424
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ad437
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.004d4296
mov edx, dword [ebp - 0x30]
mov ecx, eax
add esp, 4
mov dword [edx + 8], ecx
test ecx, ecx
je 0x4ad466
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4ad458
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], edx
push eax
push 1
push 0
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException_1]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4ad48c
push eax
call fcn.004d427b
add esp, 4
test esi, esi
je 0x4ad499
or dword [esi - 0x18], edx
in eax, 0x6d
add al, byte [eax]
push esi
call fcn.004d427b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004d4192
je 0x4ad48f
dec edx
add byte [eax + 0x75004ace], ah
iretd