Function at 0x10002d30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x28]
add dword [esp + 0x1c], 0xffffe87c
add eax, 0xfffff88b
push ebx
push ebp
mov dword [esp + 0x18], eax
lea ebx, [ecx + 0x164]
mov eax, dword [esp + 0x40]
lea ebp, [ecx - 0x149]
push esi
add eax, 0x1d4
mov dword [esp + 0x10], ebx
push edi
lea esi, [ecx - 0x30d]
mov dword [esp + 0x1c], eax
lea edi, [edx - 0x13fc]
mov dword [esp + 0x18], esi
lea edx, [ecx - 0x14e4]
mov ecx, dword [esp + 0x50]
add ecx, 0x2a4
mov dword [esp + 0x10], edx
lea eax, [ebx - 0x2ad]
mov dword [esp + 0x48], ecx
cmp ebp, eax
jne 0x10002f7e
mov ebx, dword [esp + 0x34]
lea eax, [ecx - 0x24c]
cmp ebp, eax
jge 0x10002f2c
mov eax, dword [ebx + 0x19c]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x64]
sub eax, 0x197d
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x84]
sub eax, 0x132f
xor dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x64]
sub eax, 0x174
mov dword [ebx + 0x140], 1
mov dword [ebx + 4], 0x10029030
cmp eax, 0x1590
ja 0x10002e00
mov eax, dword [ebx + 0x10]
add eax, 0x16cb
add dword [ebx + 0x194], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xf8]
mov ebp, dword [esp + 0x14]
imul eax, dword [eax + 0x98], 0xffffeb1c
add dword [ecx + 0xc8], eax
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x58]
or eax, 0x132f
xor dword [ebx + 0x50], eax
mov eax, dword [esp + 0x38]
add eax, 0xffffff5a
push eax
lea eax, [edx + 0x1590]
push eax
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [esp + 0x28]
add eax, 0x15c
push eax
lea eax, [esi + 0x225]
push eax
lea eax, [edx + 0x1550]
mov edx, ebx
push eax
call fcn.1000fb70
mov eax, dword [esp + 0x60]
add esp, 0x14
add eax, 0xffffff27
push eax
push ebx
lea eax, [edi + 0x1292]
push eax
lea eax, [edi + 0x132f]
push eax
sub esp, 0x10
lea eax, [esi + 0x1cd]
push eax
push ecx
lea ecx, [edi + 0x1197]
call fcn.10005c60
mov edx, dword [esp + 0x74]
add esp, 0x2c
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0x738
lea ecx, [edx - 0x14d]
push ecx
mov ecx, dword [esp + 0x30]
add ecx, 0x1550
push ecx
push ebx
sub esp, 0x14
push eax
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [edx + 0x13c]
push eax
lea eax, [esi + 0x5d7]
mov edx, ebp
push eax
lea ecx, [ecx - 0x42b]
call fcn.10001000
imul eax, dword [ebx + 0x198], 0x7e00f718
mov edx, ebx
push 0x10029060
push 0x8c
push 0xa6
mov ecx, 0x1197
push eax
push 0xdd4
push 0x14fb
call fcn.1000c0b0
add esp, 0x48
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0x90], eax
lea eax, [esi + 0x439]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov esi, dword [ebx + 0xc8]
or edi, 0x132f
mov eax, dword [ebx + 0x50]
imul edi, esi
cmp eax, edi
jae 0x10002f70
xor esi, dword [ebx]
sub edi, eax
mov ecx, dword [ebx + 0x38]
dec edi
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
inc edx
imul ecx, esi
sub edx, 1
jne 0x10002f54
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x38], ecx
add eax, 0x439
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
lea eax, [edx + 0x439]
pop ebx
add esp, 0x14
ret
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x98]
or eax, ebp
and eax, dword [esi + 0x19c]
cmp ebx, eax
jb 0x10002fdc
add edi, 0xffffe7c7
xor edi, 0x13a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xf8]
add ebx, 4
mov ecx, dword [esi + 0x98]
imul eax, edi
mov dword [esi + 0xf8], eax
mov eax, ecx
xor eax, dword [esp + 0x18]
or ecx, ebp
imul eax, eax, 0xffffe7c7
add dword [esi], eax
and ecx, dword [esi + 0x19c]
cmp ebx, ecx
jae 0x10002fa0
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x198]
mov ecx, dword [esi + 0x30]
add eax, edx
and eax, dword [esp + 0x2c]
add edx, eax
mov eax, dword [esp + 0x20]
sub dword [esi + 0x108], eax
mov eax, edx
xor eax, dword [esp + 0x14]
sub eax, ecx
mov dword [esp + 0x10], edx
add dword [esi], eax
mov eax, dword [esp + 0x48]
sub ebp, dword [esi]
xor eax, 0x1784
add dword [esi + 0x1c4], eax
lea eax, [edx - 0x1a46]
imul eax, dword [esi + 0x13c]
mov dword [esi + 0x13c], eax
mov eax, dword [esi + 0x50]
and eax, edx
mov edx, dword [esi + 0x12c]
push eax
mov eax, dword [esp + 0x20]
and eax, dword [esp + 0x18]
or edx, dword [esi + 0x24]
and eax, 0x1a46
push ebp
push esi
sub esp, 0x14
sub edx, 0x156f
push eax
mov eax, dword [esi + 8]
sub eax, dword [esp + 0x6c]
push ecx
or ecx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12d8
push eax
call fcn.10001000
mov eax, dword [esp + 0x40]
add esp, 0x30
add eax, 0x439
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret