Function at 0x100378d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], edi
cmp edi, ebx
jge 0x10037b83
cmp dword [esi + 0x24], ebx
jge 0x10037962
test ebx, ebx
je 0x10037911
lea eax, [ebx*4]
push 0x10
push eax
call fcn.10077ec0
add esp, 8
mov dword [ebp - 4], eax
mov edx, eax
jmp 0x10037916
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x20]
lea edi, [esi + 0x28]
xor ecx, ecx
test eax, eax
jle 0x10037934
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x10037924
mov ebx, dword [ebp - 0x10]
mov ecx, dword [edi]
lea eax, [esi + 0x2c]
test ecx, ecx
je 0x10037954
cmp byte [eax], 0
je 0x1003794e
push ecx
call fcn.10077ed0
add esp, 4
lea eax, [esi + 0x2c]
mov dword [edi], 0
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov edi, dword [ebp - 8]
mov dword [esi + 0x24], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edx, 4
jb 0x100379d0
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 0xc], ecx
add eax, 0xfffffffc
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x28]
cmp ecx, eax
mov ecx, edi
ja 0x1003798d
cmp dword [ebp - 0x10], eax
jae 0x100379d0
and edx, 0x80000003
jns 0x1003799a
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop
add ecx, 4
cmp ecx, eax
jl 0x100379a0
sub eax, edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x100379df
nop dword [eax]
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x100379d0
mov dword [esi + 0x20], ebx
mov edi, dword [esi + 0x34]
mov dword [ebp - 0xc], edi
cmp ebx, edi
jl 0x10037adf
jle 0x10037a5c
cmp dword [esi + 0x38], ebx
jge 0x10037a5c
test ebx, ebx
je 0x10037a14
lea eax, [ebx*4]
push 0x10
push eax
call fcn.10077ec0
add esp, 8
mov dword [ebp - 4], eax
mov edx, eax
jmp 0x10037a19
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x34]
xor ecx, ecx
test eax, eax
jle 0x10037a35
mov edi, eax
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, edi
jl 0x10037a24
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x3c]
lea eax, [esi + 0x40]
test ecx, ecx
je 0x10037a50
cmp byte [eax], 0
je 0x10037a50
push ecx
call fcn.10077ed0
add esp, 4
lea eax, [esi + 0x40]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x38], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x10037adf
cmp edx, 4
jb 0x10037ad0
mov eax, dword [esi + 0x3c]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 0xc], ecx
add eax, 0xfffffffc
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x3c]
cmp ecx, eax
mov ecx, edi
ja 0x10037a8b
cmp dword [ebp - 0x10], eax
jae 0x10037ad0
and edx, 0x80000003
jns 0x10037a98
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop dword [eax]
add ecx, 4
cmp ecx, eax
jl 0x10037aa0
sub eax, edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x10037adf
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x10037ad0
xor ecx, ecx
mov dword [esi + 0x34], ebx
test ebx, ebx
jle 0x10037b10
nop dword [eax + eax]
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x10037af0
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x10037b01
mov ebx, dword [ebp - 8]
xor edi, edi
test ebx, ebx
jle 0x10037b83
xor eax, eax
mov dword [ebp - 8], eax
nop
mov ecx, dword [esi + 0x10]
add ecx, eax
mov eax, dword [ecx + 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx]
shl edx, 0x10
or edx, dword [eax + 0xc]
mov eax, edx
shl eax, 0xf
not eax
add edx, eax
mov eax, edx
shr eax, 0xa
xor eax, edx
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, dword [esi + 0xc]
dec eax
mov edx, ecx
shr edx, 0x10
xor edx, ecx
mov ecx, dword [esi + 0x3c]
and edx, eax
mov eax, dword [esi + 0x28]
mov eax, dword [eax + edx*4]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x28]
mov dword [eax + edx*4], edi
inc edi
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 8], eax
cmp edi, ebx
jl 0x10037b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret