Function at 0x1001fdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [eax + 0x115c]
push esi
mov edx, eax
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], ecx
cmp eax, ecx
ja 0x10020596
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0xc]
jmp 0x1001fe20
cmp edx, 0x7810
ja 0x10020267
je 0x1002025f
cmp edx, 0x6ec5
ja 0x100201f9
je 0x1001ff1b
lea eax, [edx - 0x6e15]
cmp eax, 0x84
ja case.0x10020291.30781
movzx eax, byte [eax + 0x10020680]
jmp dword [eax*4 + 0x1002066c]
cmp dword [ebp - 4], 0
jne case.0x10020291.30781
pop edi
pop esi
mov eax, 0xfffffff6
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x1c]
push 0
push 0x1ae4
lea eax, [ebp - 0x18]
push eax
push ecx
push 0
mov dword [ebp - 0x18], edx
call fcn.10063d80
add esp, 0x14
mov dword [ebp - 4], eax
jmp 0x100205eb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test eax, eax
js 0x1002064b
mov ecx, dword [ebx]
dec ecx
cmp ecx, 0xf
ja case.0x10020291.30781
jmp dword [ecx*4 + 0x10020708]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x1001fef7
mov dword [ebp - 0xc], 3
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0xc]
push 0x383a
push eax
call fcn.1001d180
add esp, 0xc
mov dword [ebp + 0xc], eax
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov dword [ebp + 0xc], 3
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push 0x56d7
mov dword [ebp - 0xc], eax
call fcn.10069ec0
add esp, 0x10
mov dword [ebp + 0xc], eax
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x1001ff36
mov dword [ebp - 0xc], 2
jmp 0x1001fed2
mov dword [ebp + 0xc], 2
jmp 0x1001fefe
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x1001ff50
mov dword [ebp - 0xc], 8
jmp 0x1001fed2
mov dword [ebp + 0xc], 8
jmp 0x1001fefe
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x1001ff6d
mov dword [ebp - 0xc], 0x10
jmp 0x1001fed2
mov dword [ebp + 0xc], 0x10
jmp 0x1001fefe
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
mov dword [ebp + 0xc], eax
jne 0x1001ffa1
or ecx, 0xffffffff
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1c]
push edx
jmp 0x1001ffc8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x28
mov dword [ebp - 0x1c], 5
push eax
push 0
push 0
push 0
push 0x3e87
call fcn.1006a6a0
add esp, 0x24
mov dword [ebp + 0xc], eax
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x63db
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], edx
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x1c], 0xffffffff
call fcn.100190a0
add esp, 0x10
mov dword [ebp + 0xc], eax
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x63db
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], 0xffffffff
call fcn.100190a0
add esp, 0x10
mov dword [ebp + 0xc], eax
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov edx, dword [ebp - 4]
mov ecx, 0x1b2d
mov eax, ecx
sub eax, 0x1b2d
je 0x10020085
sub eax, 2
je 0x1002007c
sub eax, 2
je 0x1001ff1b
mov edx, dword [ebp - 4]
jmp 0x1002008d
mov dword [ebp + 0xc], 0
jmp 0x1002008d
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [edx + 0x38], eax
add ecx, 2
cmp ecx, 0x1b31
jbe 0x10020060
jmp 0x1002009d
mov edx, dword [ebp - 4]
mov ecx, 0x66de
mov eax, ecx
sub eax, 0x66de
je 0x100200cc
sub eax, 8
je 0x100200be
sub eax, 8
je 0x1001ff1b
mov edx, dword [ebp - 4]
jmp 0x100200d4
ret
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [edx + 0x3c], eax
add ecx, 8
cmp ecx, 0x66ee
jbe 0x100200a2
jmp 0x100200e4
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
je 0x100200fa
or dword [edx + 0x28], 1
mov edx, 0x6ec5
jmp case.0x10020291.30781
and dword [edx + 0x28], 0xfffffffe
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov edx, dword [ebp + 0x18]
cmp dword [edx], 0
mov eax, dword [ebp - 4]
je 0x10020121
or dword [eax + 0x28], 2
mov edx, 0x6ec5
jmp case.0x10020291.30781
and dword [eax + 0x28], 0xfffffffd
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 6
jne 0x10020178
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
mov edx, dword [ebp - 4]
and ecx, 7
mov dword [edx + 0x1c], ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x40]
push 0x55
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
push eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.10008cd0
add esp, 0x10
mov dword [ebp + 0xc], eax
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov dword [ebp + 0xc], 0xffffffe2
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 6
jne 0x100201a2
mov edx, dword [eax + 0x1c]
mov dword [ebp + 0xc], edx
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov dword [ebp + 0xc], 0
mov edx, 0x6ec5
jmp case.0x10020291.30781
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x20], 6
jne 0x10020178
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
and edx, 7
or dword [ecx + 0x1c], edx
mov ecx, dword [ecx + 0x1c]
jmp 0x10020146
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 6
jne 0x10020178
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
not edx
and dword [ecx + 0x1c], edx
mov ecx, dword [ecx + 0x1c]
jmp 0x10020146
mov dword [ebp + 0xc], 0xffffff9c
jmp case.0x10020291.30781
mov eax, edx
sub eax, 0x6ef1
je 0x10020657
sub eax, 0x8c7
je 0x10020250
sub eax, 0x2c
jne case.0x10020291.30781
cmp dword [ebx], eax
je case.0x10020291.30781
mov edi, edi
mov eax, dword [ebp + 0x14]
test al, 3
je case.0x10020291.30781
movzx ecx, byte [eax]
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [ecx*4 + 0x1007a158]
dec dword [ebx]
inc eax
cmp dword [ebx], 0
mov dword [ebp + 0x14], eax
jne 0x10020220
jmp case.0x10020291.30781
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
not edi
jmp case.0x10020291.30781
mov esi, dword [ebp + 0x14]
jmp case.0x10020291.30781
cmp edx, 0x7baa
ja 0x10020564
je 0x10020558
lea eax, [edx - 0x783c]
cmp eax, 0x84
ja case.0x10020291.30781
movzx ecx, byte [eax + 0x1002075c]
jmp dword [ecx*4 + 0x10020748]
not edi
jmp case.0x10020291.30781
cmp dword [ebx], 0
mov dword [ebp + 0x14], esi
je case.0x10020291.30781
jmp 0x100202b0
mov eax, dword [ebp + 0x14]
movzx ecx, byte [eax]
xor ecx, edi
and ecx, 0xff
shr edi, 8
xor edi, dword [ecx*4 + 0x1007a158]
inc eax
dec dword [ebx]
mov dword [ebp + 0x14], eax
jne 0x100202b0
jmp case.0x10020291.30781
cmp dword [ebx], 0x20
jb 0x100204e8
mov edi, edi
xor edi, dword [esi]
mov eax, edi
mov ecx, edi
shr eax, 0x10
shr ecx, 8
and ecx, 0xff
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a558]
xor eax, dword [ecx*4 + 0x1007a958]
mov ecx, edi
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x1007a158]
and edi, 0xff
xor eax, dword [edi*4 + 0x1007ad58]
xor eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a558]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ecx, dword [edi*4 + 0x1007a958]
mov edi, eax
shr edi, 0x18
xor ecx, dword [edi*4 + 0x1007a158]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ad58]
xor ecx, dword [esi + 8]
mov eax, ecx
shr eax, 0x10
mov edi, ecx
shr edi, 8
and edi, 0xff
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a558]
xor eax, dword [edi*4 + 0x1007a958]
mov edi, ecx
shr edi, 0x18
xor eax, dword [edi*4 + 0x1007a158]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1007ad58]
xor eax, dword [esi + 0xc]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a558]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ecx, dword [edi*4 + 0x1007a958]
mov edi, eax
shr edi, 0x18
xor ecx, dword [edi*4 + 0x1007a158]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ad58]
xor ecx, dword [esi + 0x10]
mov eax, ecx
shr eax, 0x10
mov edi, ecx
shr edi, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a558]
and edi, 0xff
xor eax, dword [edi*4 + 0x1007a958]
mov edi, ecx
shr edi, 0x18
xor eax, dword [edi*4 + 0x1007a158]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1007ad58]
xor eax, dword [esi + 0x14]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a558]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ecx, dword [edi*4 + 0x1007a958]
mov edi, eax
shr edi, 0x18
xor ecx, dword [edi*4 + 0x1007a158]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ad58]
add esi, 0x20
xor ecx, dword [esi - 8]
mov eax, ecx
mov edi, ecx
shr eax, 0x10
shr edi, 8
and edi, 0xff
and eax, 0xff
mov eax, dword [eax*4 + 0x1007a558]
xor eax, dword [edi*4 + 0x1007a958]
mov edi, ecx
shr edi, 0x18
xor eax, dword [edi*4 + 0x1007a158]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1007ad58]
xor eax, dword [esi - 4]
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x1007a558]
mov edi, eax
shr edi, 8
and edi, 0xff
xor ecx, dword [edi*4 + 0x1007a958]
mov edi, eax
shr edi, 0x18
xor ecx, dword [edi*4 + 0x1007a158]
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ad58]
add dword [ebx], 0xffffffe0
cmp dword [ebx], 0x20
mov edi, ecx
jae 0x100202e0
cmp dword [ebx], 4
jb case.0x10020291.30781
mov eax, 0x520e
cmp eax, eax
jne 0x10020544
xor edi, dword [esi]
add esi, 4
mov edx, edi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x1007a558]
mov ecx, edi
shr ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x1007a958]
mov ecx, edi
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x1007a158]
and edi, 0xff
xor edx, dword [edi*4 + 0x1007ad58]
add dword [ebx], 0xfffffffc
mov edi, edx
mov edx, dword [ebp - 8]
add eax, 0xa
cmp eax, 0x520e
jbe 0x100204f8
cmp dword [ebx], 4
jae 0x100204f1
jmp case.0x10020291.30781
mov dword [ebp - 0x10], 0xffffffff
jmp case.0x10020291.30781
mov eax, edx
sub eax, 0x7bd6
je 0x100205d6
sub eax, 0x2c
je 0x10020607
sub eax, 0x2c
jne case.0x10020291.30781
mov ecx, 0x646f
mov dword [ebp - 0xc], ecx
mov eax, ecx
sub eax, 0x646f
je 0x100205a8
sub eax, 0x50
je 0x100205a0
sub eax, 0x50
jne 0x100205c8
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x100205c8
pop edi
lahf
cwde
sub edi, dword [edi]
mov eax, dword [ebp + 0x1c]
cmp dword [eax + 0x74], 0
jne 0x100205c8
mov ecx, eax
add ecx, 0x7c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, 0x50
mov dword [ebp - 0xc], ecx
cmp ecx, 0x650f
jbe 0x10020583
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx + 0x74], 0
jne case.0x10020291.30781
mov edx, ecx
add edx, 0x7c
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 8]
add edx, 0x2c
mov dword [ebp - 8], edx
cmp edx, dword [ebp - 0x20]
jbe 0x1001fe20
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cli
loopne 0x10020649
lodsb al, byte [esi]
fisttp dword [ebx + 0x28b1055]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x1c]
push edx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x18]
push 0x17d5
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.10054790
add esp, 0x1c
mov dword [ebp - 0x10], eax
jmp 0x100205eb
pop edi
pop esi
mov eax, 0xffffffec
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret