Function at 0x10037d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov edi, edx
mov ebx, ecx
mov dword [esp + 0x14], edi
push eax
mov dword [esp + 0x1c], ebx
call fcn.10037c70
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10037e2a
mov eax, dword [ebp + 8]
mov esi, dword [ecx + 8]
test eax, eax
jne 0x10037e1b
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x10037dd2
mov dword [edx], eax
jmp 0x10037dd5
mov dword [ebx + 8], eax
mov edx, dword [ecx]
test edx, edx
je 0x10037de1
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x10037dfc
mov eax, dword [esp + 0x10]
cmp dword [edx + eax*8 + 4], ecx
lea edx, [edx + eax*8]
jne 0x10037dfa
mov eax, dword [ecx]
mov dword [edx + 4], eax
dec dword [edx]
push ecx
call fcn.10033830
add esp, 4
add dword [ebx + 4], 0xffffffff
jne 0x10037e21
mov ecx, ebx
call fcn.10037b30
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
test esi, esi
je 0x10037ff7
push 0
push 0x10
call fcn.10033440
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
test edi, edi
je 0x10037e21
mov eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov dword [edi + 8], esi
inc dword [ebx + 4]
mov esi, dword [ebx + 4]
cmp esi, 0xa
jb 0x10037fc8
mov ecx, dword [ebx]
lea eax, [ecx + ecx]
cmp esi, eax
jbe 0x10037fc8
add esi, esi
mov edx, 0x80
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, edx
cmp esi, ecx
je 0x10037fc8
mov eax, dword [0x100fe560]
test eax, eax
je 0x10037e9a
call eax
lea eax, [esi*8]
push 0
push eax
call fcn.10033440
mov ecx, dword [0x100fe564]
add esp, 8
mov esi, eax
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x10037ebe
call ecx
test esi, esi
je 0x10037fc8
push dword [ebx + 0xc]
call fcn.10033830
add esp, 4
mov dword [ebx + 0xc], esi
push esi
call dword [0x100fc81c]
shr eax, 3
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.100b7060
mov esi, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test esi, esi
je 0x10037fb9
nop dword [eax]
mov edi, dword [esi + 0xc]
xor eax, eax
mov cl, byte [edi]
test cl, cl
je 0x10037f4a
mov ebx, eax
nop dword [eax]
movzx eax, cl
lea edi, [edi + 1]
lea ecx, [ebx*8]
movzx edx, byte [eax + 0x100eac28]
xor edx, ecx
mov cl, byte [edi]
xor ebx, edx
test cl, cl
jne 0x10037f20
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
xor edx, edx
mov edi, dword [esi]
div dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea edx, [eax + edx*8]
test edx, edx
je 0x10037f92
mov eax, dword [edx]
test eax, eax
je 0x10037f68
mov ecx, dword [edx + 4]
jmp 0x10037f6a
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0x10037f92
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x10037f8a
mov dword [eax], esi
mov dword [ecx + 4], esi
jmp 0x10037fab
mov dword [ebx + 8], esi
mov dword [ecx + 4], esi
jmp 0x10037fab
mov eax, dword [ebx + 8]
mov dword [esi], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x10037fa1
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [ebx + 8], esi
mov esi, edi
test edi, edi
jne 0x10037f10
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
call fcn.10037bd0
xor edx, edx
div dword [ebx]
jmp 0x10037fcc
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10037fea
lea edx, [eax + edx*8]
mov ecx, ebx
push edi
call fcn.10037c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov ecx, ebx
push edi
call fcn.10037c00
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret