Function at 0x100f7bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1d4
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xdd]
push ebx
mov byte [esp + 0xe0], bl
push ebx
push 0x7d3
rep stosd dword es:[edi], eax
call dword [0x101ea01c]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x101b7828
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0xe0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x101b7824]
or ecx, 0xffffffff
mov word [edi - 1], ax
mov edi, dword [esp + 0x1ec]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xe0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10125dd0
add esp, 8
cmp eax, ebx
mov dword [0x101ea024], eax
jne 0x100f7c82
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d4
ret
push ebx
push ebx
push eax
call fcn.101262c3
mov ecx, dword [0x101ea024]
lea edx, [esp + 0x24]
push ecx
push 1
push 6
push edx
mov word [esp + 0x34], bx
mov dword [esp + 0x36], ebx
call fcn.1012603b
mov eax, dword [esp + 0x36]
mov ecx, dword [0x101ea024]
push ebx
push eax
push ecx
call fcn.101262c3
add esp, 0x28
cmp word [esp + 0x18], bx
mov dword [esp + 0x10], ebx
jbe 0x100f7e01
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
mov edx, dword [0x101ea024]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 1
lea eax, [esp + 0x38]
push 0x2c
push eax
call fcn.1012603b
mov al, byte [esp + 0x20]
mov cl, 0x57
imul cl
add esp, 0x10
add al, 0x61
xor ecx, ecx
mov dl, cl
add dl, al
xor byte [esp + ecx + 0x30], dl
inc ecx
cmp ecx, 0x2c
jb 0x100f7d04
mov al, byte [esp + 0x17]
lea edi, [esp + 0x30]
mov byte [esp + 0x20], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], ebx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.100f8c20
test al, al
je 0x100f7d69
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], bl
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.100f9910
add esp, 0xc
lea ecx, [esp + 0x64]
push eax
call fcn.100f9a40
lea ecx, [esp + 0x64]
lea edx, [esp + 0x5c]
push ecx
push edx
mov ecx, 0x101ea00c
call fcn.100f88e0
lea ecx, [esp + 0x64]
call fcn.100f7e20
lea ecx, [esp + 0xa0]
call fcn.100f7e20
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100f7dda
mov cl, byte [eax - 1]
dec eax
cmp cl, bl
je 0x100f7dd1
cmp cl, 0xff
je 0x100f7dd1
dec cl
mov byte [eax], cl
jmp 0x100f7dda
push eax
call fcn.10135563
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
and ecx, 0xffff
cmp eax, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], eax
jb 0x100f7ccc
push 0x101e9ff4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d4
ret