Function at 0x420a23
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 0x44601b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4570cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0xc], 2
mov ecx, dword [eax + 8]
mov esi, dword [eax + 0xc]
setne dh
cmp dword [ebx + 0xc], 1
sete dl
add eax, 8
mov dword [ebp - 0x20], eax
nop dword [eax]
mov eax, ecx
mov dword [ebp - 0x28], ecx
shr eax, 0xc
mov edi, esi
dec eax
shl eax, 0xc
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
mov eax, ecx
shr eax, 0x1e
and al, 1
or dl, al
or dh, al
mov byte [ebp - 0x13], dl
mov byte [ebp - 0x14], dh
jne 0x420b1b
test esi, esi
je 0x420b1b
lea eax, [ecx - 1]
mov byte [ebp - 0x15], 0
xor eax, ecx
and eax, 0xfff
xor ecx, eax
mov eax, ecx
shr eax, 0x13
dec eax
shl eax, 0x13
xor eax, ecx
and eax, 0x3ff80000
xor ecx, eax
sub esi, 1
je 0x420ae1
test ecx, 0x7f000
jne 0x420ae1
mov dl, 1
jmp 0x420ae3
xor dl, dl
mov byte [ebp - 0x11], dl
test ecx, 0x3ff80000
jne 0x420b15
test ecx, ecx
js 0x420afa
test ecx, 0x7f000
jbe 0x420b15
mov eax, ecx
mov byte [ebp - 0x12], 1
and eax, 0xfff80000
add eax, 0x80000
xor eax, ecx
and eax, 0x3ff80000
xor ecx, eax
jmp 0x420b69
mov byte [ebp - 0x12], 0
jmp 0x420b69
mov byte [ebp - 0x15], 1
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 0
test dh, dh
je 0x420b92
mov eax, ecx
shr eax, 0x13
dec eax
shl eax, 0x13
xor eax, ecx
and eax, 0x3ff80000
xor ecx, eax
test ecx, 0x7f000
jne 0x420b92
test dl, dl
je 0x420b6f
mov edx, ecx
mov eax, ecx
shl edx, 0x14
shr eax, 0x13
sar edx, 0x14
and eax, 0x7ff
sub eax, edx
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x54]
setne dl
mov byte [ebp - 0x11], dl
test dl, dl
je 0x420b92
jmp 0x420b77
test esi, esi
je 0x420b8e
mov byte [ebp - 0x11], 1
mov eax, ecx
and eax, 0xfffff000
add eax, 0x1000
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
jmp 0x420b92
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0x28]
mov edx, edi
push ebx
mov ebx, ecx
mov ecx, esi
mov esi, dword [ebp - 0x20]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, eax
mov esi, edx
cmp ecx, dword [ebp - 0x28]
jne 0x420bb1
cmp esi, edi
je 0x420bbc
mov dl, byte [ebp - 0x13]
mov dh, byte [ebp - 0x14]
jmp 0x420a80
cmp byte [ebp - 0x12], 0
je 0x420bcf
mov ecx, dword [ebp - 0x1c]
push dword [ebx + 0x10]
push 1
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [ebp - 0x11], 0
je 0x420cc0
xor eax, eax
cmp byte [ebp - 0x13], al
sete al
inc eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test byte [0x469540], 0x10
mov edi, eax
mov esi, dword [ebp - 0x28]
je 0x420c05
push edi
push esi
mov edx, 0x44b8a0
call fcn.0041f035
mov eax, dword [ebp - 0x1c]
push 0
push esi
push edi
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x420c2c
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x10]
push esi
push 0
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x420cc3
test byte [0x469540], 0x20
je 0x420c41
push edi
push esi
mov edx, 0x44b870
call fcn.0041f035
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x1c135e
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov esi, ecx
mov edi, dword [eax + 4]
mov eax, ecx
shr eax, 0xc
mov edx, edi
dec eax
mov dword [ebp - 0x28], esi
shl eax, 0xc
xor eax, ecx
and eax, 0x7f000
xor ecx, eax
mov eax, esi
mov esi, dword [ebp - 0x20]
push ebx
mov ebx, ecx
mov ecx, edi
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, dword [ebp - 0x28]
jne 0x420c90
cmp ecx, edi
je 0x420cc0
nop
mov esi, eax
mov dword [ebp - 0x28], ecx
shr esi, 0xc
mov edi, eax
dec esi
mov edx, ecx
shl esi, 0xc
xor esi, eax
and esi, 0x7f000
xor esi, eax
push ebx
mov ebx, esi
mov esi, dword [ebp - 0x20]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, edx
cmp eax, edi
jne 0x420c90
cmp ecx, dword [ebp - 0x28]
jne 0x420c90
mov esi, dword [ebx + 0x10]
cmp byte [ebp - 0x14], 0
je 0x420cf7
cmp dword [ebx + 0xc], 3
jne 0x420cdb
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, 3
jmp 0x420d00
cmp byte [ebp - 0x13], 0
jne 0x420cf3
mov eax, dword [0x4575f4]
mov ecx, 0x4575f4
push 0x1c1394
call dword [eax + 4]
xor eax, eax
jmp 0x420d00
xor eax, eax
cmp byte [ebp - 0x15], al
sete al
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc