Function at 0x43d4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp edi, 0x28
ja 0x43d659
mov eax, dword [ecx + 0xc]
mov esi, edi
shr esi, 5
mov edx, edi
inc esi
mov dword [ebp - 8], eax
mov ebx, dword [eax + 0x30]
xor ebx, edi
cmp edi, esi
jb 0x43d540
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x43d522
mov esi, dword [ebp - 8]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x43d5cc
cmp ebx, dword [edi + 8]
jne 0x43d5c3
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 0xc]
jne 0x43d5c3
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x10]
mov esi, ecx
sub esi, 4
jb 0x43d581
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x43d58a
add edx, 4
add eax, 4
sub esi, 4
jae 0x43d570
cmp esi, 0xfffffffc
je 0x43d63b
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x43d5c3
cmp esi, 0xfffffffd
je 0x43d63b
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x43d5c3
cmp esi, 0xfffffffe
je 0x43d63b
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x43d5c3
cmp esi, 0xffffffff
je 0x43d63b
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x43d63b
mov edi, dword [edi]
test edi, edi
jne 0x43d553
mov esi, dword [ebp - 8]
mov edx, dword [esi + 0x20]
mov ecx, edx
mov edi, dword [ebp - 4]
cmp dword [esi + 0x1c], edx
jb 0x43d5ed
cmp edx, 0x3ffffffe
jg 0x43d5ed
add edx, edx
mov ecx, edi
call fcn.0043d3c0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov esi, dword [ebp + 8]
and ecx, ebx
push ecx
mov edx, 4
lea eax, [eax + ecx*4]
mov ecx, edi
push eax
lea eax, [esi + 0x11]
push eax
call fcn.0043a3b0
mov edi, eax
push esi
push dword [ebp - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 0xc], esi
push ecx
mov dword [edi + 8], ebx
mov byte [edi + 6], 0
call fcn.0058cfa0
mov eax, dword [ebp - 8]
add esp, 0x18
mov byte [edi + esi + 0x10], 0
inc dword [eax + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov cl, byte [edi + 5]
xor cl, 3
mov al, byte [eax + 0x34]
xor al, 3
test cl, al
jne 0x43d632
mov byte [edi + 5], cl
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
cmp eax, 0xffffffed
ja 0x43d6fa
mov ebx, dword [ecx + 0xc]
mov eax, dword [ebx + 0x30]
mov dword [ebp + 8], eax
lea eax, [edi + 0x11]
push eax
mov eax, dword [ebx]
push 4
push 0
push dword [ebx + 4]
call eax
mov esi, eax
add esp, 0x10
lea eax, [edi + 0x11]
test esi, esi
jne 0x43d6b8
test eax, eax
je 0x43d6b8
cmp byte [ebx + 0x37], 0
je 0x43d6ff
mov ecx, dword [ebp - 4]
lea edx, [esi + 1]
call fcn.0043c690
lea eax, [edi + 0x11]
push eax
mov eax, dword [ebx]
push 4
push esi
push dword [ebx + 4]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d6ff
lea eax, [edi + 0x11]
add dword [ebx + 0xc], eax
mov al, byte [ebx + 0x34]
and al, 3
mov byte [esi + 4], 0x14
mov byte [esi + 5], al
mov eax, dword [ebx + 0x3c]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x3c], esi
push edi
push dword [ebp - 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
push eax
mov dword [esi + 0xc], edi
mov byte [esi + 6], 0
call fcn.0058cfa0
add esp, 0xc
mov byte [esi + edi + 0x10], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043de70
mov ecx, dword [ebp - 4]
mov edx, 4
call fcn.004394c0
int3