Function at 0x10037c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd54a
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x100e70dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0xffffffffffffffff
mov dword [ebp - 0x154], 0
push 0
push esi
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.100035a0
push 0xa
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push 0xa
push eax
push dword [esi + 0x10]
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x13], 0
call fcn.100a5c4d
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
add esp, 0x10
mov dword [ebp - 0x140], eax
push 0
call fcn.100164a0
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x16c], 0
jne 0x10037d5c
xor ecx, ecx
jmp 0x10037d6b
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10037d62
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x16c]
call fcn.100038b0
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x138]
cmp dword [ebp - 0x158], 0x10
mov edx, 0x100
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x16c]
cmovae eax, dword [ebp - 0x16c]
mov dword [ebp - 0x14c], eax
xor eax, eax
nop
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x10037db0
mov edi, dword [ebp - 0x14c]
lea esi, [ebp - 0x138]
xor dl, dl
mov word [ebp - 0x38], 0
xor ebx, ebx
mov dword [ebp - 0x13c], 0x100
nop dword [eax + eax]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, dl
mov al, byte [edi + edx]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x138]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x150]
sub dword [ebp - 0x13c], 1
mov byte [ebp + ebx - 0x138], cl
jne 0x10037de0
mov edi, dword [ebp - 0x144]
xor esi, esi
cmp dword [ebp - 0x140], esi
jle 0x10037e8f
movzx edx, byte [ebp - 0x38]
movzx ebx, byte [ebp - 0x37]
mov edi, dword [ebp - 0x140]
nop word [eax + eax]
inc dl
movzx edx, dl
mov cl, byte [ebp + edx - 0x138]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x138]
mov byte [ebp + edx - 0x138], al
mov byte [ebp + ebx - 0x138], cl
mov al, byte [ebp + edx - 0x138]
add al, cl
mov ecx, dword [ebp - 0x148]
movzx eax, al
movzx eax, byte [ebp + eax - 0x138]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x10037e40
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x158]
cmp eax, 0x10
jb 0x10037ead
inc eax
lea ecx, [ebp - 0x16c]
push eax
push dword [ebp - 0x16c]
call fcn.10003a90
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x13c]
push eax
lea esi, [ebp - 0x34]
mov dword [ebp - 0x13c], 0
cmovae esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
push 0
call fcn.1000ac60
mov edx, eax
mov ecx, esi
call fcn.1003a480
mov dword [edi + 0x14], 0xf
add esp, 8
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov eax, dword [ebp - 0x13c]
mov ecx, edi
inc eax
mov dword [ebp - 0x154], 1
push eax
call fcn.10016480
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x13c]
push eax
lea esi, [ebp - 0x34]
mov ecx, edi
cmovae esi, dword [ebp - 0x34]
push 0
call fcn.100164a0
push eax
lea ecx, [ebp - 0x34]
call fcn.1000ac60
mov edx, eax
mov ecx, esi
call fcn.1003a480
mov ecx, dword [ebp - 0x20]
add esp, 8
cmp ecx, 0x10
jb 0x10037f4e
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.10003a90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bf25
mov esp, ebp
pop ebp
ret