Function at 0x10003f20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
lea ebx, [eax + 0x229]
push edi
lea edi, [eax - 0x8d]
mov dword [esp + 0x2c], ebx
add eax, 0x175
mov dword [esp + 0x14], edi
lea ebp, [ecx - 0x1a7b]
mov dword [esp + 0x20], eax
mov edx, esi
mov dword [esp + 0x18], ebp
mov eax, ebp
xor edx, 0x178d
xor eax, 0x1406
mov dword [esp + 0x10], edx
xor esi, 0x38b
cmp ebx, eax
je 0x100041f6
lea eax, [ecx + 0x1ec]
cmp edx, eax
jg 0x1000414c
mov edi, dword [esp + 0x28]
xor ebp, ebp
nop
mov eax, dword [edi + 0xf8]
mov ecx, dword [0x100c0f90]
sub eax, dword [ecx + 0xb8]
add eax, 0x5688e
add dword [ecx + 0x8c], eax
mov eax, dword [0x100c0f1c]
mov esi, dword [0x100c0f90]
mov ebx, dword [0x100c0ed8]
mov edx, dword [eax + ebp]
add ebp, 4
mov eax, dword [esi + 0xac]
xor eax, 0xf1b52
imul ebx, edx
sub dword [0x100c0eb8], eax
mov ecx, dword [esi + 0x24]
add ecx, dword [edi + 0x50]
mov eax, dword [0x100c0f78]
add eax, 0xfe928e39
mov edx, ebx
add eax, ecx
shr edx, 8
mov dword [0x100c0f78], eax
mov ecx, dword [esi + 0xb0]
mov eax, dword [0x100c0ef8]
mov byte [eax + ecx], dl
inc dword [0x100c0ef8]
mov ecx, dword [0x100c0f90]
mov eax, dword [0x100c0ec8]
add eax, 0xffdabc21
add dword [ecx + 0x84], eax
mov eax, dword [0x100c0f90]
mov ecx, dword [eax + 0x80]
mov eax, dword [0x100c0f28]
mov byte [eax + ecx], bl
mov eax, dword [0x100c0f90]
inc dword [eax + 0x80]
mov ecx, dword [0x100c0f90]
mov eax, dword [0x100c0e7c]
sub eax, dword [ecx + 0xf8]
sub eax, 0x203de
xor dword [0x100c0f30], eax
mov eax, dword [edi + 0x4c]
xor eax, 0x888d5
sub dword [ecx + 0x9c], eax
mov eax, dword [0x100c0f7c]
sub eax, dword [0x100c0f40]
mov edx, dword [0x100c0f90]
xor eax, 0x49104
sub dword [0x100c0f64], eax
mov eax, dword [0x100c0ea8]
add eax, 0xffe453fd
add eax, dword [edx + 0xe4]
imul eax, dword [edx + 0x50]
mov dword [edx + 0x50], eax
mov eax, dword [0x100c0efc]
add eax, 0xffe0738f
add eax, dword [edi + 0x78]
or dword [0x100c0f7c], eax
mov eax, dword [0x100c0f24]
add eax, 0xfffc9b50
add eax, dword [edi + 0xb8]
mov dword [0x100c0f24], eax
cmp ebp, 0xb670
jl 0x10003f90
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
xor eax, 0x1614
mov ebp, dword [esp + 0x18]
xor edi, 0x8ad
push 0x100c0e78
push eax
mov eax, dword [esp + 0x28]
xor ebp, 0x1c67
xor eax, 0xfcc
push edi
push eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffb8a
push ebp
push eax
mov eax, dword [esp + 0x48]
xor eax, 0xcdd
sub eax, 0x2db
push eax
call fcn.1000f9d0
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov edx, eax
mov eax, dword [0x100c0f90]
mov ecx, dword [ecx]
add ecx, dword [0x100c0e84]
add ecx, dword [0x100c0f44]
pop edi
pop esi
xor ecx, 0x7c3c3c0e
pop ebp
mov dword [eax + 0x114], ecx
mov eax, edx
pop ebx
add esp, 0xc
ret
mov ecx, dword [0x100c0efc]
mov eax, edi
sub eax, dword [0x100c0f74]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jne 0x100041f6
mov eax, ebp
mov ebp, dword [esp + 0x28]
or eax, ebx
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100c0f90]
mov ebx, dword [ebp + 0x78]
add ebx, 0x1e99
mov edi, dword [eax + 0xa8]
mov edx, dword [eax + 0x10c]
and edi, 0x1e99
mov eax, dword [0x100c0f18]
or eax, dword [esp + 0x2c]
or edx, dword [ebp + 0x5c]
imul ecx, eax, 0x1739
mov eax, dword [ebp + 0xa8]
mov ebp, dword [esp + 0x28]
imul eax, esi
mov esi, dword [esp + 0x30]
add esi, 0xffffe585
push ebp
imul eax, esi
push eax
push ecx
push edx
push edi
push ebx
call fcn.100014d0
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x28]
add esp, 0x18
sub ecx, dword [0x100c0f74]
add eax, 2
mov dword [esp + 0x10], eax
cmp eax, ecx
mov eax, dword [esp + 0x20]
je 0x10004176
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret