Function at 0x1000ceef
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add eax, 0xffffc0fe
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, edx
push esi
mov esi, dword [esp + 0x28]
xor edx, 0x7e39
push edi
mov edi, dword [esp + 0x44]
xor ebx, 0x7c56
add edi, 0xffffc182
mov dword [esp + 0x14], eax
mov ecx, edi
mov dword [esp + 0x18], ebx
add esi, 0xfffffd33
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], edx
lea eax, [ecx + 0x3e4f]
mov dword [esp + 0x2c], ecx
cmp edx, eax
jge 0x1000d0c2
mov eax, dword [esp + 0x14]
add eax, 0x3c82
cmp ecx, eax
jg 0x1000d012
xor ebx, 0x4e
cmp dword [ebp + 0x50], 0xbc2f
jne 0x1000cf82
mov ecx, dword [0x10055f54]
mov eax, dword [ebp + 0x7c]
imul eax, dword [ecx + 0x48]
mov dword [ecx + 0x48], eax
mov ecx, edi
jmp 0x1000cf89
xor dword [ebp + 0x48], 0x1a83f3
push dword [esp + 0x44]
mov eax, dword [esp + 0x18]
add eax, 0x3aad
push eax
lea eax, [ebx + 0x3e]
push eax
lea eax, [edx - 0x205]
push eax
push ebp
push dword [esp + 0x50]
lea eax, [ecx + 0x3e04]
push eax
call sym.goa913xa1.dll_SxJN89f0Q
mov ebx, eax
mov eax, edi
xor eax, 0x3ea3
mov dword [esp + 0x34], ebx
lea ecx, [ebx + 0x17e]
push ecx
mov ecx, dword [esp + 0x34]
xor ecx, 0x3c82
push ecx
lea ecx, [ebx - 0x290]
push ecx
push eax
push dword [0x10055f54]
lea eax, [esi - 0x1d5]
push eax
call sym.goa913xa1.dll_Stj6Hv6
mov edx, dword [esp + 0x6c]
add edi, 0x3f02
xor edx, 0x57
mov dword [esp + 0x50], edi
add esp, 0x34
mov dword [esp + 0x38], edx
sub esi, 0x6f
mov ecx, eax
mov dword [esp + 0x10], esi
jmp 0x1000d0c2
mov eax, dword [0x10074b0c]
xor eax, 0x3cab
mov dword [esp + 0x44], ebx
or eax, dword [ebp + 0xd0]
cmp ebx, eax
je 0x1000d0c2
mov eax, dword [esp + 0x14]
xor edx, eax
mov dword [esp + 0x20], edx
lea ebx, [eax + 0x3c77]
mov dword [esp + 0x3c], ebx
mov ebx, esi
mov eax, dword [esp + 0x2c]
mov edx, dword [0x10055f54]
or eax, ebx
mov edi, dword [0x10074ae4]
xor eax, 0x3f1e
push eax
push dword [esp + 0x40]
sub ecx, dword [edx + 0x84]
or edi, 0x3ea3
mov esi, dword [edx + 0xd8]
sub ecx, dword [edx + 8]
add esi, 0x3ea3
push edx
push dword [esp + 0x2c]
push ecx
push esi
push edi
call sym.goa913xa1.dll_CDHcW5zNr
mov ecx, dword [0x10074b0c]
mov ebx, eax
mov eax, dword [esp + 0x60]
xor ecx, 0x3cab
or ecx, dword [ebp + 0xd0]
add esp, 0x1c
inc eax
cmp eax, ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x2c]
jne 0x1000d044
mov edx, dword [esp + 0x38]
mov edi, ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
lea eax, [ebx - 0x9f]
cmp dword [esp + 0x14], eax
je 0x1000d10d
push ebp
lea eax, [edi - 0x2c9]
push eax
mov eax, ebx
xor ebx, 0x261
xor eax, 0x9a
push eax
push edi
push ebx
call fcn.1000d679
mov ecx, dword [0x10055f54]
mov eax, 0x1fbb44
add esp, 0x14
sub eax, dword [ecx + 0x84]
add dword [ecx + 0x1c], eax
xor edi, 0x3cc
jmp 0x1000d234
mov eax, dword [ebp + 0xb0]
sub eax, dword [ebp + 0x98]
sub eax, edx
cmp ebx, eax
je 0x1000d234
mov eax, edx
mov dword [esp + 0x44], ebx
xor eax, esi
add eax, dword [ebp + 0x70]
cmp ebx, eax
jae 0x1000d1f9
mov edx, edi
mov eax, ecx
or edx, 0x3c82
or eax, edi
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
lea edx, [ebx - 0x7d7c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], ecx
sub eax, dword [ebp + 0xf0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp + 0xa4]
mov edx, ecx
mov eax, dword [ebp + 0x9c]
imul edx, dword [0x10074adc]
xor eax, 0x3efe
imul esi, dword [0x10074af0], 0x3c13
or eax, ecx
push ebp
push dword [esp + 0x40]
push eax
push dword [esp + 0x2c]
or edx, 0x4008
push edx
push dword [esp + 0x40]
push esi
call fcn.1000a6ca
mov ebx, eax
add esp, 0x1c
mov eax, dword [0x10055f54]
mov dword [esp + 0x10], ebx
mov eax, dword [eax + 0x28]
xor eax, 0x3efe
push eax
mov eax, dword [ebp + 0xe8]
imul eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
xor eax, ebx
add eax, dword [ebp + 0x70]
add ecx, 3
cmp ecx, eax
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x24]
jb 0x1000d15c
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
sub esi, edi
cmp dword [ebp + 0x74], esi
jge 0x1000d234
imul eax, dword [esp + 0x10], 0x3f1e
sub esi, dword [ebp + 0x74]
mov dword [esp + 0x38], edi
or edi, ebx
dec esi
shr esi, 1
mov dword [esp + 0x44], eax
inc esi
push eax
mov eax, dword [ebp + 0x50]
imul eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [esp + 0x44]
sub esi, 1
jne 0x1000d219
mov edi, dword [esp + 0x1c]
lea eax, [edi - 0x4c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret