Function at 0x100395a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x100ab264], 0xf31
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10039756
lea eax, [ebp - 0x12c]
mov dword [0x100ab264], 0xecad
mov dword [0x100ab260], 0xe0fb
mov dword [ebp - 0x13c], eax
call fcn.10039e42
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.100399ec
mov ecx, eax
mov dword [0x100ab280], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov dword [0x100ab260], 0x820
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, [0x100a1014]
mov esi, ecx
add esi, 1
imul edi, ecx, 0x74
mov ebx, edx
add ebx, edi
add ebx, 0x6c
mov edi, dword [ebp - 0x144]
add edi, eax
mov dword [ebp - 0x150], eax
imul eax, ecx, 0x74
mov dword [ebp - 0x154], eax
mov eax, edx
mov dword [ebp - 0x158], ecx
mov ecx, dword [ebp - 0x154]
add eax, ecx
add eax, 0x68
mov ecx, dword [ebp - 0x158]
imul ecx, ecx, 0x74
add edx, ecx
add edx, 0x70
mov ecx, dword [edx]
mov eax, dword [eax]
movzx edx, word [ebx]
xor edx, ecx
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x160], esi
call fcn.10039c44
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x150]
add eax, ecx
mov edx, dword [ebp - 0x160]
cmp edx, 0x166
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], eax
je 0x100397c6
jmp 0x1003965a
mov eax, dword [ebp - 0x164]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + str.b_n3]
mov dh, byte [eax + 0x1003b3eb]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x164], ecx
je 0x100395d8
jmp 0x1003971d
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, [0x100a1014]
imul esi, eax, 0x74
mov edi, edx
add edi, esi
add edi, 0x70
mov esi, dword [edi]
imul edi, eax, 0x74
add edx, edi
add edx, 0x6c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x166
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10039756
xor eax, eax
mov dword [0x100ab260], 0x132c
mov dword [ebp - 0x164], eax
jmp 0x1003971d
lea eax, [0x1003b3f9]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x100ab260], 0x418b
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
call fcn.1003a858
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.1003a272
xor eax, eax
mov dword [0x100ab260], 0x24ce
mov ecx, dword [ebp - 0x144]
add ecx, 0xceef4
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x12ec00
mov ecx, dword [ebp - 0x144]
add ecx, 0xaa470
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f30
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret