Function at 0x43ef20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 4], 0
jne 0x43ef3c
lea eax, [edi - 0x66]
pop edi
add esp, 8
ret
push ebx
mov ebx, dword [edi + 0x9c]
test ebx, ebx
jne 0x43ef50
lea eax, [ebx - 0x66]
pop ebx
pop edi
add esp, 8
ret
cmp dword [ebx], 0
jne 0x43ef60
pop ebx
mov eax, 0xffffff9c
pop edi
add esp, 8
ret
test ecx, ecx
jne 0x43ef6c
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x5c]
cmp ecx, eax
mov dword [ebx + 0x14], ecx
jbe 0x43ef89
cmp dword [ebx + 0x8c], 0
jne 0x43ef89
mov dword [ebx + 0x14], eax
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 8]
add eax, edx
cmp ecx, eax
jbe 0x43efa1
cmp dword [ebx + 0x8c], 0
je 0x43efa1
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
push ebp
push esi
jbe 0x43f14b
lea ecx, [ecx]
cmp dword [ebx + 8], 0
jne 0x43f076
mov eax, dword [ebx + 0x58]
test eax, eax
jbe 0x43f076
mov esi, 0x4000
cmp eax, esi
mov dword [esp + 0x14], esi
jae 0x43efd8
mov dword [esp + 0x14], eax
mov esi, eax
mov ecx, dword [ebx + 0x88]
add ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0x7c]
push 0
push ecx
mov ecx, dword [ebx + 0x70]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x43f157
mov edx, dword [ebx]
mov eax, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x7c]
push esi
push edx
mov edx, dword [ebx + 0x64]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, esi
jne 0x43f157
cmp dword [edi + 0xa0], 0
je 0x43f068
xor ebp, ebp
test esi, esi
jbe 0x43f068
lea esi, [edi + 0xa4]
mov eax, dword [ebx]
lea edx, [eax + ebp]
mov eax, esi
call fcn.0043e2f0
xor byte [edx], al
mov ecx, dword [ebx]
movsx eax, byte [ecx + ebp]
mov edi, dword [edi + 0xb0]
call fcn.0043e310
mov edx, dword [ebx]
mov edi, dword [esp + 0x1c]
mov byte [edx + ebp], al
add ebp, 1
cmp ebp, dword [esp + 0x14]
jb 0x43f033
mov esi, dword [esp + 0x14]
mov eax, dword [ebx]
add dword [ebx + 0x3c], esi
sub dword [ebx + 0x58], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
cmp dword [ebx + 0x84], 0
je 0x43f0e5
cmp dword [ebx + 0x8c], 0
jne 0x43f0e5
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x18]
lea edx, [ebx + 4]
push 2
push edx
mov dword [esp + 0x1c], ecx
call fcn.0043f860
mov ebp, eax
add esp, 8
test ebp, ebp
jl 0x43f0b1
cmp dword [ebx + 0x1c], 0
je 0x43f0b1
mov ebp, 0xfffffffd
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x14]
sub esi, edi
push eax
mov edx, esi
call fcn.0043f200
sub dword [ebx + 0x5c], esi
add dword [esp + 0x14], esi
add esp, 4
cmp ebp, 1
mov dword [ebx + 0x50], eax
je 0x43f14b
test ebp, ebp
jne 0x43f162
mov edi, dword [esp + 0x1c]
jmp 0x43f141
mov eax, dword [ebx + 8]
test eax, eax
jne 0x43f0f1
cmp dword [ebx + 0x58], eax
je 0x43f14b
mov esi, dword [ebx + 0x14]
cmp esi, eax
jb 0x43f0fa
mov esi, eax
xor eax, eax
test esi, esi
jbe 0x43f113
mov ecx, dword [ebx + 4]
mov cl, byte [eax + ecx]
mov edx, dword [ebx + 0x10]
mov byte [eax + edx], cl
add eax, 1
cmp eax, esi
jb 0x43f100
mov edx, dword [ebx + 0x50]
mov ebp, dword [ebx + 0x10]
push edx
mov edx, esi
mov ecx, ebp
call fcn.0043f200
sub dword [ebx + 0x5c], esi
sub dword [ebx + 8], esi
sub dword [ebx + 0x14], esi
add dword [ebx + 4], esi
add dword [ebx + 0x18], esi
add ebp, esi
add esp, 4
add dword [esp + 0x10], esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x10], ebp
cmp dword [ebx + 0x14], 0
ja 0x43efb0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
pop esi
pop ebp
pop ebx
or eax, 0xffffffff
pop edi
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 8
ret