Function at 0x4adad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4bd5
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4fb614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 4], 0
cmp byte [ebx + 0x34], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x70], 0
je 0x4ae380
nop dword [eax]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push 0xa
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
test eax, eax
je 0x4ae376
cmp dword [ebp - 0x84], 0
jne 0x4adb74
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x70]
call dword [eax + 0x18]
jmp 0x4ae376
lea esi, [ebx + 0x38]
push esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
lea edi, [ebx + 0x18]
push edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [ebx + 0x14], 0
je 0x4ade2f
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
dec ecx
and ecx, dword [ebx + 0x10]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 3
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4adbc2
mov eax, dword [ecx]
lea edx, [ebp - 0x68]
push edx
call dword [eax]
mov dword [ebp - 0x44], eax
push edi
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4ae3b6
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
test esi, esi
je 0x4ade53
cmp esi, 1
je 0x4ade53
cmp esi, 0xfffffff2
je 0x4ade53
cmp esi, 0xffffffe7
je 0x4ade53
cmp esi, 0xfffffff6
je 0x4ade03
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x14], 0
je 0x4ade03
mov dword [ebp - 0x28], 0
push 0x40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
call fcn.004aa4a0
push 0x3c
mov esi, eax
mov dword [ebp - 0x18], 0x3c
push 0
push esi
mov dword [ebp - 0x14], 0x3f
call fcn.004d0920
or dword [ebp - 0x6c], 1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3c], 0
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x28], esi
jb 0x4adc7c
movsx eax, byte [esi]
jmp 0x4adc82
movsx eax, byte [eax]
lea esi, [ebp - 0x28]
mov ebx, 0x4f4720
add eax, 0x110693d
sub ebx, esi
mov edx, 0x3c
mov ecx, eax
lea esi, [esi + 1]
imul eax, eax, 0xf4f5
shr ecx, 4
xor cl, byte [esi + ebx - 1]
mov byte [esi - 1], cl
add eax, 0xdd5abb2
sub edx, 1
jne 0x4adc93
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], edx
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x8c], eax
push 0x30
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], dl
mov byte [ebp - 4], 6
call fcn.004aa4a0
push 0x2f
mov esi, eax
mov dword [ebp - 0x30], 0x2f
push 0
push esi
mov dword [ebp - 0x2c], 0x2f
call fcn.004d0920
or dword [ebp - 0x6c], 2
lea eax, [ebp - 0x40]
mov byte [esi + 0x2f], 0
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x40], esi
jb 0x4add14
movsx ecx, byte [esi]
jmp 0x4add1a
movsx ecx, byte [eax]
lea esi, [ebp - 0x40]
mov ebx, 0x4f47e0
add ecx, 0x110693d
sub ebx, esi
mov edx, 0x2f
nop dword [eax]
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xe7f5
shr eax, 4
xor al, byte [ebx + esi - 1]
mov byte [esi - 1], al
add ecx, 0xdd5abb2
sub edx, 1
jne 0x4add30
push 0xb2
push dword [ebp - 0x8c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov edx, 0x4ef9c8
push 2
cmovae ecx, dword [ebp - 0x40]
push 1
call int.004ace20
mov byte [ebp - 4], 6
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4addb3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4adda9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae3bb
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x4addfd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4addf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae3bb
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4ade1a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x68]
cmp ecx, eax
setne al
push eax
call edx
cmp esi, 0xfffffff2
jne 0x4ade29
cmp dword [ebx + 0x14], 0
jne 0x4adb98
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
mov ecx, dword [ebp - 0x70]
cmp byte [ecx + 0x14], 0
jne 0x4ade98
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x4ae376
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
dec ecx
and ecx, dword [ebx + 0x10]
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4ade7b
mov eax, dword [ecx]
cmp ecx, esi
mov edx, dword [eax + 0x10]
setne al
push eax
call edx
mov dword [esi + 0x24], 0
add dword [ebx + 0x14], 0xffffffff
mov esi, dword [ebp - 0x80]
jne 0x4ade90
mov dword [ebx + 0x10], 0
jmp 0x4ade03
inc dword [ebx + 0x10]
jmp 0x4ade03
mov eax, dword [ebp - 0x84]
cmp byte [eax + 0x1c], 0
je 0x4adeb4
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x4ae376
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x88]
test edx, edx
jne 0x4ae137
cmp eax, 8
jne 0x4ae137
mov eax, dword [ecx + 8]
test eax, eax
je 0x4ae0fd
push eax
call fcn.004d4296
mov ecx, dword [ebp - 0x70]
add esp, 4
mov dword [ecx + 0xc], eax
mov ecx, ebx
mov eax, dword [ebp - 0x70]
push dword [eax + 8]
push dword [eax + 0xc]
push eax
call fcn.004ad9c0
test al, al
jne 0x4ae0ed
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x14], 0
je 0x4ae0ed
mov dword [ebp - 0x28], 0
push 0x40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
call fcn.004aa4a0
push 0x3c
mov edi, eax
mov dword [ebp - 0x18], 0x3c
push 0
push edi
mov dword [ebp - 0x14], 0x3f
call fcn.004d0920
or dword [ebp - 0x6c], 4
lea eax, [ebp - 0x28]
mov byte [edi + 0x3c], 0
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x28], edi
jb 0x4adf68
movsx ecx, byte [edi]
jmp 0x4adf71
movsx ecx, byte [eax]
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x78]
mov ebx, 0x4f4760
add ecx, 0x13381b4
sub ebx, edi
mov edx, 0x3c
mov eax, ecx
lea edi, [edi + 1]
imul ecx, ecx, 0xf4f5
shr eax, 5
xor al, byte [ebx + edi - 1]
mov byte [edi - 1], al
add ecx, 0xf9de9bd
sub edx, 1
jne 0x4adf83
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], edx
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x7c], eax
push 0x30
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], dl
mov byte [ebp - 4], 0xa
call fcn.004aa4a0
push 0x27
mov edi, eax
mov dword [ebp - 0x30], 0x27
push 0
push edi
mov dword [ebp - 0x2c], 0x2f
call fcn.004d0920
or dword [ebp - 0x6c], 8
lea eax, [ebp - 0x40]
mov byte [edi + 0x27], 0
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x40], edi
jb 0x4ae002
movsx ecx, byte [edi]
jmp 0x4ae00b
movsx ecx, byte [eax]
lea edi, [ebp - 0x40]
mov esi, dword [ebp - 0x78]
mov ebx, 0x4f46b0
add ecx, 0x13381b4
sub ebx, edi
mov edx, 0x27
nop dword [eax]
mov eax, ecx
lea edi, [edi + 1]
imul ecx, ecx, 0xdff5
shr eax, 5
xor al, byte [ebx + edi - 1]
mov byte [edi - 1], al
add ecx, 0xf9de9bd
sub edx, 1
jne 0x4ae020
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov edx, 0x4ef9c8
push 0xc9
push dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x40]
push 2
push 1
call int.004ace20
mov byte [ebp - 4], 0xa
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4ae0a0
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ae096
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae3bb
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x4ae0ea
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ae0e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ae3bb
push edx
push ecx
call fcn.004cf4f2
add esp, 8
mov ebx, dword [ebp - 0x74]
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x4ae376
mov eax, dword [ecx + 0x18]
lea edx, [ecx + 4]
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], 0
test ecx, ecx
je 0x4ae3b6
mov eax, dword [ecx]
lea edi, [ebp - 0x90]
push edi
lea edi, [ebp - 0x94]
push edi
push edx
call dword [eax + 8]
jmp 0x4ae211
cmp dword [ecx + 8], eax
jne 0x4ae172
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x9c], edx
lea edx, [ecx + 4]
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x98], eax
test ecx, ecx
je 0x4ae3b6
mov eax, dword [ecx]
lea edi, [ebp - 0x98]
push edi
lea edi, [ebp - 0x9c]
push edi
push edx
call dword [eax + 8]
jmp 0x4ae211
push ecx
push 0x3c
lea ecx, [ebp - 0x28]
call fcn.004aa330
or dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x4ae192
mov edx, dword [ebp - 0x28]
movsx ecx, byte [edx]
jmp 0x4ae19b
movsx ecx, byte [eax]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x78]
mov ebx, 0x4f46e0
add ecx, 0x14bebc4
sub ebx, edx
mov edi, 0x3c
nop dword [eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xf4f5
shr eax, 0xa
xor al, byte [ebx + edx - 1]
mov byte [edx - 1], al
add ecx, 0x10db4c8d
sub edi, 1
jne 0x4ae1b0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edx, 0x4ef9c8
push 0xd9
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x4f465c
push eax
push 2
push 1
call int.004ace20
mov byte [ebp - 4], 1
add esp, 0x10
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4ae211
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004aa500
mov ebx, dword [ebp - 0x74]
cmp byte [ebx + 0x34], 0
jne 0x4ae22a
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x4ae376
mov edi, dword [ebp - 0x70]
push dword [edi + 0xc]
call fcn.004d427b
add esp, 4
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0x70]
push 8
lea eax, [ecx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.004ad9c0
test al, al
jne 0x4ae368
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x14], 0
je 0x4ae368
push ecx
push 0x3c
lea ecx, [ebp - 0x40]
call fcn.004aa330
or dword [ebp - 0x6c], 0x20
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x4ae285
mov edx, dword [ebp - 0x40]
movsx ecx, byte [edx]
jmp 0x4ae28e
movsx ecx, byte [eax]
lea edx, [ebp - 0x40]
mov esi, dword [ebp - 0x78]
mov ebx, 0x4f47a0
add ecx, 0x159a76d
sub ebx, edx
mov edi, 0x3c
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xf4f5
shr eax, 0xa
xor al, byte [ebx + edx - 1]
mov byte [edx - 1], al
add ecx, 0x118dd422
sub edi, 1
jne 0x4ae2a0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push 0x27
mov dword [ebp - 0x7c], eax
call fcn.004aa330
or dword [ebp - 0x6c], 0x40
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x4ae2f2
mov edx, dword [ebp - 0x28]
movsx ecx, byte [edx]
jmp 0x4ae2fb
movsx ecx, byte [eax]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x78]
mov ebx, 0x4f4680
add ecx, 0x159a76d
sub ebx, edx
mov edi, 0x27
nop dword [eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xdff5
shr eax, 0xa
xor al, byte [ebx + edx - 1]
mov byte [edx - 1], al
add ecx, 0x118dd422
sub edi, 1
jne 0x4ae310
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edx, 0x4ef9c8
push 0xe2
push dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x28]
push 2
push 1
call int.004ace20
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.004aa2e0
lea ecx, [ebp - 0x40]
call fcn.004aa2e0
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
mov ebx, dword [ebp - 0x74]
cmp byte [ebx + 0x34], 0
jne 0x4adb30
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x4ae398
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cf4aa
mov esp, ebp
pop ebp
ret 0x28
call fcn.004cf1ed
call fcn.004d4192
int3