Function at 0x1006f900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b77f3
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x28], edi
mov eax, dword [edi + 0x14]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1006f96a
mov ecx, dword [eax + 0x84]
jmp 0x1006f96c
xor ecx, ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
call fcn.10097c50
mov ecx, dword [edi + 0x14]
xor al, al
mov byte [esp + 0x17], al
mov byte [esp + 0x18], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], al
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x1006f9ab
mov ecx, dword [ecx + 0x84]
jmp 0x1006f9ad
xor ecx, ecx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
mov ecx, edi
sar eax, 2
dec eax
movzx eax, ax
mov dword [esp + 0x34], eax
call fcn.10095340
test eax, eax
je 0x1006f9d0
xor eax, eax
jmp 0x1006febb
push 0x60
lea ecx, [esp + 0x3c]
call fcn.100940a0
mov dword [esp + 0xc8], 0
cmp dword [ebp + 8], 0x154
mov edi, dword [esp + 0x38]
mov dword [esp + 0xa8], 0xe890
mov dword [esp + 0xac], 0x8b410000
mov dword [esp + 0xb0], 0x80f72404
mov dword [esp + 0xb4], 0x2384
jne 0x1006fe86
lea eax, [ebx - 0x2601]
cmp eax, 0x3fe
ja 0x1006fe86
add esi, 0xffffda00
add esi, ebx
mov dl, byte [esi + 2]
test dl, dl
je 0x1006fe86
lea eax, [ebx - 0x25fa]
cmp eax, ebx
jae 0x1006fe86
cmp dl, byte [esi + 3]
jne 0x1006fe86
cmp dl, byte [esi + 4]
jne 0x1006fe86
cmp dl, byte [esi + 5]
jne 0x1006fe86
cmp dl, byte [esi + 6]
je 0x1006fe86
mov ebx, esi
lea eax, [esp + 0xa8]
xor ecx, ecx
sub ebx, eax
jmp 0x1006fa90
lea eax, [ebx + ecx]
mov al, byte [esp + eax + 0xa8]
xor al, dl
cmp al, byte [esp + ecx + 0xa8]
jne 0x1006faad
inc ecx
cmp ecx, 0xb
jb 0x1006fa90
jmp 0x1006fab2
cmp ecx, 0xb
jb 0x1006fac4
xor ecx, ecx
mov al, byte [esi + ecx]
xor al, dl
mov byte [edi + ecx], al
inc ecx
cmp ecx, 0x50
jle 0x1006fab4
jmp 0x1006fb02
xor ecx, ecx
jmp 0x1006fad0
lea eax, [ebx + ecx]
mov al, byte [esp + eax + 0xa8]
sub al, dl
cmp al, byte [esp + ecx + 0xa8]
jne 0x1006faed
inc ecx
cmp ecx, 0xb
jb 0x1006fad0
jmp 0x1006faf2
cmp ecx, 0xb
jb 0x1006fb02
xor ecx, ecx
mov al, byte [esi + ecx]
sub al, dl
mov byte [edi + ecx], al
inc ecx
cmp ecx, 0x50
jle 0x1006faf4
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push 0
sub eax, edi
push eax
push edi
call fcn.1001d150
xor esi, esi
jmp 0x1006fb20
cmp esi, 0x100
jae 0x1006fe56
lea ebx, [esi + 4]
mov dword [esp + 0x20], ebx
cmp ebx, 0x100
jae 0x1006fb67
cmp byte [edi + esi], 0xe8
jne 0x1006fb67
cmp byte [edi + esi + 1], 0
jne 0x1006fb67
cmp byte [edi + esi + 2], 0
jne 0x1006fb67
cmp byte [edi + esi + 3], 0
jne 0x1006fb67
cmp byte [edi + esi + 4], 0
jne 0x1006fb67
mov byte [esp + 0x17], 1
jmp 0x1006fe2f
lea eax, [esi + 9]
cmp eax, 0x100
mov al, byte [esp + 0x17]
jae 0x1006fbc8
test al, al
je 0x1006fbc8
cmp byte [edi + esi], 0xf7
jne 0x1006fbc8
cmp byte [edi + esi + 1], 0x80
jne 0x1006fbc8
mov al, byte [edi + esi + 3]
cmp al, 0x23
je 0x1006fb96
cmp al, 0x24
je 0x1006fb96
cmp al, 0x28
jne 0x1006fbc4
cmp byte [edi + esi + 4], 0
jne 0x1006fbc4
cmp byte [edi + esi + 5], 0
jne 0x1006fbc4
cmp byte [edi + esi + 6], 0
jne 0x1006fbc4
cmp byte [edi + esi + 7], 0
jne 0x1006fbc4
cmp byte [edi + esi + 8], 0
jne 0x1006fbc4
cmp byte [edi + esi + 9], 0x80
je 0x1006fe2a
mov al, byte [esp + 0x17]
lea ecx, [esi + 5]
cmp ecx, 0x100
jae 0x1006fc04
test al, al
je 0x1006fc04
cmp byte [edi + esi], 0x81
jne 0x1006fc04
cmp byte [edi + esi + 1], 0xe1
jne 0x1006fc04
cmp byte [edi + esi + 2], 0
jne 0x1006fc04
cmp byte [edi + esi + 3], 0
jne 0x1006fc04
cmp byte [edi + esi + 4], 0
jne 0x1006fc04
cmp byte [edi + esi + 5], 0x80
je 0x1006fe2a
lea edx, [esi + 6]
cmp edx, 0x100
jae 0x1006fc52
cmp byte [esp + 0x18], 0
je 0x1006fc52
cmp byte [edi + esi], 0x80
jne 0x1006fc52
cmp byte [edi + esi + 1], 0xb8
jne 0x1006fc52
mov al, byte [edi + esi + 3]
cmp al, 0x23
je 0x1006fc33
cmp al, 0x24
je 0x1006fc33
cmp al, 0x28
jne 0x1006fc52
cmp byte [edi + esi + 4], 0
jne 0x1006fc52
cmp byte [edi + esi + 5], 0
jne 0x1006fc52
cmp byte [edi + esi + 6], 0xe8
jne 0x1006fc52
mov byte [esp + 0x19], 1
jmp 0x1006fe2f
cmp ecx, 0x100
jae 0x1006fc96
cmp byte [esp + 0x19], 0
je 0x1006fc96
cmp byte [edi + esi], 3
jne 0x1006fc96
cmp byte [edi + esi + 1], 0x98
jne 0x1006fc96
mov al, byte [edi + esi + 3]
cmp al, 0x23
je 0x1006fc7e
cmp al, 0x24
je 0x1006fc7e
cmp al, 0x28
jne 0x1006fc96
cmp byte [edi + esi + 4], 0
jne 0x1006fc96
cmp byte [edi + esi + 5], 0
jne 0x1006fc96
mov byte [esp + 0x1a], 1
jmp 0x1006fe2f
cmp edx, 0x100
jae 0x1006fcd9
cmp byte [esp + 0x1a], 0
je 0x1006fcd9
cmp byte [edi + esi], 0x8b
jne 0x1006fcd9
cmp byte [edi + esi + 1], 0x5b
jne 0x1006fcd9
cmp byte [edi + esi + 2], 2
jne 0x1006fcd9
cmp byte [edi + esi + 3], 0xff
jne 0x1006fcd9
cmp byte [edi + esi + 4], 0x33
jne 0x1006fcd9
cmp byte [edi + esi + 5], 0xeb
jne 0x1006fcd9
cmp byte [edi + esi + 6], 8
je 0x1006fe82
mov al, byte [edi + esi]
cmp al, 0xc3
je 0x1006fe56
lea ecx, [esi + 1]
cmp ecx, 0x100
jae 0x1006fd15
cmp al, 0xeb
jne 0x1006fd15
movsx eax, byte [edi + esi + 1]
inc eax
add esi, eax
mov eax, dword [esp + 0x44]
inc eax
add eax, esi
cmp eax, dword [esp + 0x48]
ja 0x1006fe43
mov dword [esp + 0x4c], eax
jmp 0x1006fe43
cmp ebx, 0x100
jae 0x1006fe2f
cmp al, 0xe9
jne 0x1006fe2f
lea ecx, [edi + 1]
mov ebx, esi
add ecx, esi
call fcn.1001ca30
mov dword [esp + 0x2c], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov byte [esp + 0xc8], 1
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x2c]
push esi
mov ecx, dword [eax + 0x14]
call fcn.100979a0
test al, al
jne 0x1006fda5
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x44]
lea eax, [esi + 1]
push eax
call fcn.1001d110
mov byte [esp + 0xc8], 0
lea ecx, [esp + 0xa8]
call fcn.100941a0
jmp 0x1006fe43
mov edx, dword [esp + 0xac]
mov ecx, edx
mov eax, dword [esp + 0xa8]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 8
je 0x1006fdd6
cmp eax, edx
je 0x1006fdd8
mov ecx, dword [esp + 0x34]
cmp word [eax + 4], cx
je 0x1006fdd6
add eax, 8
cmp eax, edx
jne 0x1006fdc7
jmp 0x1006fdd8
mov ebx, dword [eax]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push 1
push ecx
add eax, 5
lea ecx, [esp + 0x38]
add eax, ebx
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov dword [esp + 0x40], eax
call fcn.100951f0
test al, al
mov eax, dword [esp + 0x44]
jne 0x1006fe07
mov esi, dword [esp + 0x20]
inc eax
add eax, esi
cmp eax, dword [esp + 0x48]
ja 0x1006fe14
mov dword [esp + 0x4c], eax
mov byte [esp + 0xc8], 0
lea ecx, [esp + 0xa8]
call fcn.100941a0
jmp 0x1006fe43
mov byte [esp + 0x18], 1
lea edx, [esp + 0x27]
lea ecx, [esp + 0x44]
call fcn.100ae1f0
test eax, eax
je 0x1006fe86
dec esi
add esi, eax
mov eax, dword [esp + 0x1c]
inc esi
inc eax
mov dword [esp + 0x1c], eax
cmp eax, 0x32
jl 0x1006fb20
mov cl, byte [esp + 0x1b]
mov al, byte [esp + 0x17]
test al, al
je 0x1006fe86
cmp byte [esp + 0x18], 0
je 0x1006fe86
cmp byte [esp + 0x19], 0
je 0x1006fe86
cmp byte [esp + 0x1a], 0
je 0x1006fe86
test cl, cl
je 0x1006fe86
mov esi, 1
jmp 0x1006fe88
mov cl, 1
jmp 0x1006fe5a
xor esi, esi
mov dword [esp + 0xc8], 0xffffffff
test edi, edi
je 0x1006feb9
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, esi
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.100b37df
mov esp, ebp
pop ebp
ret