Function at 0x43bc5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
movzx edx, word [ebx + 0x2e]
movzx eax, word [ebx + 0x2c]
add edx, eax
mov dword [ebp - 8], edi
add edx, dword [ebx + 0x40]
push 0
pop esi
mov dword [ebp + 8], esi
mov dword [edi + 0x14c], esi
mov dword [edi + 0x144], esi
mov dword [edi + 0x148], edx
je 0x43bebc
shl edx, 3
call fcn.00414e36
mov dword [edi + 0x14c], eax
test eax, eax
jne 0x43bcb8
or eax, 0xffffffff
jmp 0x43bebe
mov edx, dword [ebp + 0xc]
jmp 0x43bcfd
movzx eax, word [ebx + 0x2c]
add eax, edx
imul eax, eax, 0x14
add eax, dword [ebx + 0x24]
mov dword [ebp - 0x10], eax
cmp dword [eax + 4], esi
jle 0x43bcfa
mov ecx, dword [edi + 0x144]
push edx
push dword [ebp - 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x144], eax
mov eax, dword [edi + 0x14c]
lea edx, [eax + ecx*8]
mov ecx, dword [ebp - 4]
call fcn.0043bc01
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov edx, dword [eax + 8]
test edx, edx
jns 0x43bcbd
xor eax, eax
cmp edx, 0xfffffffe
je 0x43bdc9
mov dword [ebp - 0xc], esi
cmp ax, word [ebx + 0x2c]
jae 0x43bd68
mov dword [ebp - 0x10], esi
mov edi, dword [edi + 0x144]
mov ecx, dword [ebp - 8]
lea eax, [edi + 1]
mov esi, dword [ecx + 0x14c]
mov dword [ecx + 0x144], eax
mov edx, dword [ebx + 0x24]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov byte [esi + edi*8], 3
mov word [esi + edi*8 + 2], ax
mov edx, dword [edx]
call fcn.00415d8b
mov ecx, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x14
inc ecx
mov dword [esi + edi*8 + 4], eax
movzx eax, word [ebx + 0x2c]
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jl 0x43bd18
xor esi, esi
xor eax, eax
mov edx, esi
mov dword [ebp - 0x10], edx
cmp ax, word [ebx + 0x2e]
jae 0x43be28
movzx eax, word [ebx + 0x2c]
add eax, edx
imul eax, eax, 0x14
add eax, dword [ebx + 0x24]
mov dword [ebp - 0xc], eax
cmp dword [eax + 4], esi
jne 0x43bdbb
cmp dword [eax], 0x58
je 0x43bdbb
mov ecx, dword [edi + 0x144]
push edx
push dword [ebp - 0xc]
lea eax, [ecx + 1]
mov dword [edi + 0x144], eax
mov eax, dword [edi + 0x14c]
lea edx, [eax + ecx*8]
mov ecx, dword [ebp - 4]
call fcn.0043bc01
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
movzx eax, word [ebx + 0x2e]
inc edx
mov dword [ebp - 0x10], edx
cmp edx, eax
jl 0x43bd79
jmp 0x43be28
mov edx, esi
mov dword [ebp - 0x10], edx
cmp ax, word [ebx + 0x2e]
jae 0x43be28
movzx eax, word [ebx + 0x2c]
add eax, edx
imul eax, eax, 0x14
add eax, dword [ebx + 0x24]
mov dword [ebp - 0xc], eax
cmp dword [eax + 4], esi
jne 0x43be1c
mov ecx, eax
call fcn.0043b840
test eax, eax
je 0x43be1c
mov ecx, dword [edi + 0x144]
push edx
push dword [ebp - 0xc]
lea eax, [ecx + 1]
mov dword [edi + 0x144], eax
mov eax, dword [edi + 0x14c]
lea edx, [eax + ecx*8]
mov ecx, dword [ebp - 4]
call fcn.0043bc01
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
movzx eax, word [ebx + 0x2e]
inc edx
mov dword [ebp - 0x10], edx
cmp edx, eax
jl 0x43bdd4
cmp dword [ebx + 0x40], esi
jle 0x43bebc
mov edi, dword [edi + 0x144]
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebp - 8]
lea eax, [edi + 1]
mov esi, dword [ecx + 0x14c]
mov dword [ecx + 0x144], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
and byte [esi + edi*8], 0xfe
mov cl, byte [edx + ecx*8]
xor cl, byte [esi + edi*8]
and cl, 2
xor cl, byte [esi + edi*8]
mov byte [esi + edi*8], cl
mov al, byte [edx + eax*8]
xor al, cl
and al, 4
xor al, cl
mov ecx, dword [ebp + 8]
mov byte [esi + edi*8], al
mov cl, byte [edx + ecx*8]
xor cl, al
and cl, 8
xor cl, al
mov eax, dword [ebp + 8]
mov byte [esi + edi*8], cl
mov al, byte [edx + eax*8]
xor al, cl
mov ecx, dword [ebp + 8]
and al, 0xf
xor al, byte [edx + ecx*8]
mov word [esi + edi*8 + 2], cx
mov byte [esi + edi*8], al
mov edx, dword [edx + ecx*8 + 4]
mov ecx, dword [ebp - 4]
call fcn.00415d8b
mov dword [esi + edi*8 + 4], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x40]
jl 0x43be31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret