Function at 0x10007d0d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1c0251c], 0
push ebx
push esi
push edi
mov esi, eax
jne 0x10007d2e
call fcn.10007adc
mov dword [0x1c0251c], 1
mov ecx, dword [ebp + 8]
lea eax, [esi + 8]
xor edx, edx
mov dword [esi], 0xe
mov dword [esi + 4], eax
add ecx, 2
movzx edi, byte [ecx + 1]
movzx ebx, byte [ecx]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 2]
shl edi, 8
or edi, ebx
mov dword [eax + edx*4], edi
inc edx
add ecx, 4
cmp edx, 8
jb 0x10007d42
mov esi, dword [esi]
sub esi, 0xa
je 0x10007edd
dec esi
dec esi
je 0x10007e5c
dec esi
dec esi
jne 0x10007f4c
and dword [ebp - 4], esi
mov esi, 0xff
mov ecx, dword [eax + 0x1c]
movzx edx, byte [eax + 0x1f]
movzx edx, byte [edx + 0x1c00000]
and ecx, esi
movzx ecx, byte [ecx + 0x1c00000]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1e]
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1d]
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
mov edx, dword [ebp - 4]
xor ecx, dword [edx + 0x1c00900]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add dword [ebp - 4], 4
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x2c], edx
movzx ecx, byte [eax + 0x2f]
movzx ecx, byte [ecx + 0x1c00000]
movzx ebx, byte [eax + 0x2e]
movzx ebx, byte [ebx + 0x1c00000]
shl ecx, 8
xor ecx, ebx
movzx ebx, byte [eax + 0x2d]
movzx ebx, byte [ebx + 0x1c00000]
shl ecx, 8
xor ecx, ebx
and edx, esi
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, dword [eax + 0x1c]
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
add eax, 0x20
cmp dword [ebp - 4], 0x1c
jb 0x10007d8f
jmp 0x10007f4c
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0x14]
movzx edx, byte [eax + 0x17]
movzx edx, byte [edx + 0x1c00000]
and ecx, esi
movzx ecx, byte [ecx + 0x1c00000]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x16]
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x15]
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
xor ecx, dword [ebx + 0x1c00900]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add ebx, 4
xor edx, ecx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x28], ecx
xor ecx, dword [eax + 0x14]
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
add eax, 0x18
cmp ebx, 0x20
jb 0x10007e63
jmp 0x10007f4c
xor ebx, ebx
mov esi, 0xff
mov ecx, dword [eax + 0xc]
movzx edx, byte [eax + 0xf]
movzx edx, byte [edx + 0x1c00000]
and ecx, esi
movzx ecx, byte [ecx + 0x1c00000]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + 0x1c00000]
shl ecx, 8
xor ecx, edx
xor ecx, dword [ebx + 0x1c00900]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add ebx, 4
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, dword [eax + 0xc]
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
add eax, 0x10
cmp ebx, 0x28
jb 0x10007ee4
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret