Function at 0x43447e
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [0x4b507c]
mov edx, dword [esp + 0x44]
movzx eax, word [esp + 0x40]
xor ecx, esp
test edx, edx
mov dword [esp + 0x20], ecx
je 0x4344a9
movzx ecx, word [esp + 0x48]
mov dword [esp + 0xc], edx
jmp 0x4344b7
lea ecx, [esp + 0x17]
mov dword [esp + 0xc], ecx
mov byte [ecx], 0
xor ecx, ecx
inc ecx
mov dword [esp], ecx
movsx ebx, ax
xor ecx, ecx
mov edi, dword [esp + 0x3c]
mov eax, ecx
cdq
idiv ebx
lea eax, [ecx + 1]
movzx ebp, byte [edi + edx]
mov edi, dword [esp + 0x38]
cdq
shl ebp, 0x18
xor ebp, dword [edi + ecx + 0x1000]
mov dword [edi + ecx + 0x1000], ebp
idiv ebx
mov eax, dword [esp + 0x3c]
movzx esi, byte [eax + edx]
lea eax, [ecx + 2]
cdq
shl esi, 0x10
xor esi, ebp
mov dword [edi + ecx + 0x1000], esi
idiv ebx
mov eax, dword [esp + 0x3c]
movzx ebp, byte [eax + edx]
lea eax, [ecx + 3]
cdq
shl ebp, 8
xor ebp, esi
mov dword [edi + ecx + 0x1000], ebp
idiv ebx
mov eax, dword [esp + 0x3c]
movzx eax, byte [eax + edx]
xor eax, ebp
mov dword [edi + ecx + 0x1000], eax
add ecx, 4
cmp ecx, 0x48
jne 0x4344bf
movsx edx, word [esp]
mov ebp, dword [esp + 0xc]
xor eax, eax
lea ecx, [esp + 0x18]
xor esi, esi
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp + 0x10], edx
mov dword [esp + 4], esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, ebx
not cl
and cl, 0x18
add eax, edi
cdq
idiv esi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, edi
inc edi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x18], eax
mov eax, 8
add ebx, eax
cmp edi, eax
jne 0x43455c
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004340e4
add esp, 8
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x18]
mov edx, 4
mov dword [ebx + esi*4 + 0x1000], eax
lea ecx, [esi*4]
mov eax, dword [esp + 0x1c]
or ecx, edx
cmp esi, 0x10
lea esi, [esi + 2]
mov dword [ebx + ecx + 0x1000], eax
mov eax, dword [esp]
lea eax, [eax + edi]
jb 0x43454d
mov ebp, dword [esp + 0xc]
add dword [esp], edi
xor edx, edx
mov eax, dword [esp]
mov edi, dword [esp + 0x10]
xor ebx, ebx
xor esi, esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov ecx, ebx
not cl
and cl, 0x18
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x18], eax
mov eax, 8
add ebx, eax
cmp esi, eax
jne 0x4345f7
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004340e4
add esp, 8
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x18]
mov edi, 4
mov dword [ebx + edx*4], eax
lea ecx, [edx*4]
mov eax, dword [esp + 0x1c]
or ecx, edi
cmp edx, 0xfe
lea edx, [edx + 2]
mov dword [ebx + ecx], eax
mov eax, dword [esp + 4]
lea eax, [eax + esi]
mov dword [esp], eax
jb 0x4345e4
mov ebp, dword [esp + 0xc]
add dword [esp + 4], esi
xor edx, edx
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x10]
xor ebx, ebx
xor esi, esi
mov dword [esp], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov ecx, ebx
not cl
and cl, 0x18
add eax, esi
cdq
idiv edi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x18], eax
mov eax, 8
add ebx, eax
cmp esi, eax
jne 0x434693
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.004340e4
add esp, 8
mov edx, dword [esp]
mov eax, dword [esp + 0x18]
mov ebx, 4
mov dword [edi + edx*4 + 0x400], eax
lea ecx, [edx*4]
mov eax, dword [esp + 0x1c]
or ecx, ebx
cmp edx, 0xfe
lea edx, [edx + 2]
mov dword [edi + ecx + 0x400], eax
mov eax, dword [esp + 8]
lea eax, [eax + esi]
mov dword [esp + 4], eax
jb 0x434680
mov ebp, dword [esp + 0x10]
add dword [esp + 8], esi
xor edx, edx
mov eax, dword [esp + 8]
mov esi, dword [esp + 0xc]
xor ebx, ebx
xor edi, edi
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, ebx
not cl
and cl, 0x18
add eax, edi
cdq
idiv ebp
movzx eax, byte [esi + edx]
shl eax, cl
mov ecx, edi
inc edi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x18], eax
mov eax, 8
add ebx, eax
cmp edi, eax
jne 0x434737
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.004340e4
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x18]
mov ebx, 4
mov dword [esi + edx*4 + 0x800], eax
lea ecx, [edx*4]
mov eax, dword [esp + 0x1c]
or ecx, ebx
cmp edx, 0xfe
lea edx, [edx + 2]
mov dword [esi + ecx + 0x800], eax
mov ecx, dword [esp]
lea eax, [ecx + edi]
mov dword [esp + 8], eax
jb 0x434724
mov ebp, dword [esp + 0x10]
mov eax, ecx
xor edx, edx
add eax, edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, ebx
not cl
and cl, 0x18
add eax, esi
cdq
idiv ebp
movzx eax, byte [edi + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x18], eax
mov eax, 8
add ebx, eax
cmp esi, eax
jne 0x4347d5
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x1c]
push eax
call fcn.004340e4
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x18]
mov ebx, 4
mov dword [edi + edx*4 + 0xc00], eax
lea ecx, [edx*4]
mov eax, dword [esp + 0x1c]
or ecx, ebx
mov dword [edi + ecx + 0xc00], eax
mov eax, dword [esp]
add eax, esi
cmp edx, 0xfe
lea edx, [edx + 2]
jb 0x4347c6
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046f0c8
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret