Function at 0x6bda90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f4905
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x70b414]
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 0x6be340
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 0x6be336
cmp dword [ebp - 0x84], 0
jne 0x6bdb34
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x70]
call dword [eax + 0x18]
jmp 0x6be336
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 0x6bddef
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 0x6bdb82
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 0x6be376
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 0x6bde13
cmp esi, 1
je 0x6bde13
cmp esi, 0xfffffff2
je 0x6bde13
cmp esi, 0xffffffe7
je 0x6bde13
cmp esi, 0xfffffff6
je 0x6bddc3
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x14], 0
je 0x6bddc3
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.006ba460
push 0x3c
mov esi, eax
mov dword [ebp - 0x18], 0x3c
push 0
push esi
mov dword [ebp - 0x14], 0x3f
call fcn.006e0650
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 0x6bdc3c
movsx eax, byte [esi]
jmp 0x6bdc42
movsx eax, byte [eax]
lea esi, [ebp - 0x28]
mov ebx, 0x7045e0
add eax, 0x10e9cb5
sub ebx, esi
mov edx, 0x3c
mov ecx, eax
lea esi, [esi + 1]
imul eax, eax, 0xf4f5
shr ecx, 8
xor cl, byte [esi + ebx - 1]
mov byte [esi - 1], cl
add eax, 0xdbe48ca
sub edx, 1
jne 0x6bdc53
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.006ba460
push 0x2f
mov esi, eax
mov dword [ebp - 0x30], 0x2f
push 0
push esi
mov dword [ebp - 0x2c], 0x2f
call fcn.006e0650
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 0x6bdcd4
movsx ecx, byte [esi]
jmp 0x6bdcda
movsx ecx, byte [eax]
lea esi, [ebp - 0x40]
mov ebx, 0x704510
add ecx, 0x10e9cb5
sub ebx, esi
mov edx, 0x2f
nop dword [eax]
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xe7f5
shr eax, 8
xor al, byte [ebx + esi - 1]
mov byte [esi - 1], al
add ecx, 0xdbe48ca
sub edx, 1
jne 0x6bdcf0
push 0xb1
push dword [ebp - 0x8c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov edx, 0x6ff7c8
push 2
cmovae ecx, dword [ebp - 0x40]
push 1
call int.006bcde0
mov byte [ebp - 4], 6
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x6bdd73
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6bdd69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6be37b
push edx
push ecx
call fcn.006df222
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 0x6bddbd
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6bddb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6be37b
push edx
push ecx
call fcn.006df222
add esp, 8
mov esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x6bddda
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 0x6bdde9
cmp dword [ebx + 0x14], 0
jne 0x6bdb58
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 0x6bde58
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x6be336
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 0x6bde3b
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 0x6bde50
mov dword [ebx + 0x10], 0
jmp 0x6bddc3
inc dword [ebx + 0x10]
jmp 0x6bddc3
mov eax, dword [ebp - 0x84]
cmp byte [eax + 0x1c], 0
je 0x6bde74
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x6be336
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x88]
test edx, edx
jne 0x6be0f7
cmp eax, 8
jne 0x6be0f7
mov eax, dword [ecx + 8]
test eax, eax
je 0x6be0bd
push eax
call fcn.006e3fc6
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.006bd980
test al, al
jne 0x6be0ad
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x14], 0
je 0x6be0ad
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.006ba460
push 0x3c
mov edi, eax
mov dword [ebp - 0x18], 0x3c
push 0
push edi
mov dword [ebp - 0x14], 0x3f
call fcn.006e0650
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 0x6bdf28
movsx ecx, byte [edi]
jmp 0x6bdf31
movsx ecx, byte [eax]
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x78]
mov ebx, 0x704490
add ecx, 0x131b52c
sub ebx, edi
mov edx, 0x3c
mov eax, ecx
lea edi, [edi + 1]
imul ecx, ecx, 0xf4f5
shr eax, 9
xor al, byte [ebx + edi - 1]
mov byte [edi - 1], al
add ecx, 0xf8686d5
sub edx, 1
jne 0x6bdf43
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.006ba460
push 0x27
mov edi, eax
mov dword [ebp - 0x30], 0x27
push 0
push edi
mov dword [ebp - 0x2c], 0x2f
call fcn.006e0650
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 0x6bdfc2
movsx ecx, byte [edi]
jmp 0x6bdfcb
movsx ecx, byte [eax]
lea edi, [ebp - 0x40]
mov esi, dword [ebp - 0x78]
mov ebx, 0x704540
add ecx, 0x131b52c
sub ebx, edi
mov edx, 0x27
nop dword [eax]
mov eax, ecx
lea edi, [edi + 1]
imul ecx, ecx, 0xdff5
shr eax, 9
xor al, byte [ebx + edi - 1]
mov byte [edi - 1], al
add ecx, 0xf8686d5
sub edx, 1
jne 0x6bdfe0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov edx, 0x6ff7c8
push 0xc8
push dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x40]
push 2
push 1
call int.006bcde0
mov byte [ebp - 4], 0xa
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x6be060
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6be056
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6be37b
push edx
push ecx
call fcn.006df222
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 0x6be0aa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6be0a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6be37b
push edx
push ecx
call fcn.006df222
add esp, 8
mov ebx, dword [ebp - 0x74]
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x6be336
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 0x6be376
mov eax, dword [ecx]
lea edi, [ebp - 0x90]
push edi
lea edi, [ebp - 0x94]
push edi
push edx
call dword [eax + 8]
jmp 0x6be1d1
cmp dword [ecx + 8], eax
jne 0x6be132
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 0x6be376
mov eax, dword [ecx]
lea edi, [ebp - 0x98]
push edi
lea edi, [ebp - 0x9c]
push edi
push edx
call dword [eax + 8]
jmp 0x6be1d1
push ecx
push 0x3c
lea ecx, [ebp - 0x28]
call fcn.006ba330
or dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x6be152
mov edx, dword [ebp - 0x28]
movsx ecx, byte [edx]
jmp 0x6be15b
movsx ecx, byte [eax]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x78]
mov ebx, 0x7044d0
add ecx, 0x14a1f3c
sub ebx, edx
mov edi, 0x3c
nop dword [eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xf4f5
shr eax, 5
xor al, byte [ebx + edx - 1]
mov byte [edx - 1], al
add ecx, 0x10c3e9a5
sub edi, 1
jne 0x6be170
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edx, 0x6ff7c8
push 0xd8
cmovae eax, dword [ebp - 0x28]
mov ecx, 0x70446c
push eax
push 2
push 1
call int.006bcde0
mov byte [ebp - 4], 1
add esp, 0x10
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x6be1d1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.006ba4c0
mov ebx, dword [ebp - 0x74]
cmp byte [ebx + 0x34], 0
jne 0x6be1ea
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
jmp 0x6be336
mov edi, dword [ebp - 0x70]
push dword [edi + 0xc]
call fcn.006e3fab
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.006bd980
test al, al
jne 0x6be328
mov eax, dword [ebp - 0x70]
cmp byte [eax + 0x14], 0
je 0x6be328
push ecx
push 0x3c
lea ecx, [ebp - 0x40]
call fcn.006ba330
or dword [ebp - 0x6c], 0x20
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
jb 0x6be245
mov edx, dword [ebp - 0x40]
movsx ecx, byte [edx]
jmp 0x6be24e
movsx ecx, byte [eax]
lea edx, [ebp - 0x40]
mov esi, dword [ebp - 0x78]
mov ebx, 0x7045a0
add ecx, 0x157dae5
sub ebx, edx
mov edi, 0x3c
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xf4f5
shr eax, 5
xor al, byte [ebx + edx - 1]
mov byte [edx - 1], al
add ecx, 0x1176713a
sub edi, 1
jne 0x6be260
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.006ba330
or dword [ebp - 0x6c], 0x40
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
jb 0x6be2b2
mov edx, dword [ebp - 0x28]
movsx ecx, byte [edx]
jmp 0x6be2bb
movsx ecx, byte [eax]
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x78]
mov ebx, 0x704570
add ecx, 0x157dae5
sub ebx, edx
mov edi, 0x27
nop dword [eax]
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xdff5
shr eax, 5
xor al, byte [ebx + edx - 1]
mov byte [edx - 1], al
add ecx, 0x1176713a
sub edi, 1
jne 0x6be2d0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov edx, 0x6ff7c8
push 0xe1
push dword [ebp - 0x7c]
cmovae ecx, dword [ebp - 0x28]
push 2
push 1
call int.006bcde0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.006ba2e0
lea ecx, [ebp - 0x40]
call fcn.006ba2e0
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 0x6bdaf0
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x6be358
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.006df1da
mov esp, ebp
pop ebp
ret 0x28
call fcn.006def1d
call fcn.006e3ec2
int3