Function at 0x43d230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, ecx
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ecx + 4]
test eax, eax
je 0x43d259
cmp eax, 2
je 0x43d2d6
jmp 0x43d420
push 0xfb1631b0
push dword [0x44f3bc]
call fcn.004425e0
add esp, 8
test eax, eax
je 0x43d29a
mov ecx, dword [esi]
test ecx, ecx
je 0x43d2ca
mov dword [esp + 0x10], 0
lea edx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x43d2a6
cmp dword [esp + 0x10], 0
je 0x43d2a6
mov dword [esi + 4], 3
jmp 0x43d2ca
mov dword [esi + 4], 1
jmp 0x43d420
lea eax, [esp + 0x48]
push eax
call fcn.00442e10
add esp, 4
test al, al
je 0x43d2ca
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x43d2c7
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x43d420
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], 0xa285a78e
mov dword [esp + 0x14], 0x9fa1b993
mov dword [esp + 0x18], 0xbabebdb3
mov dword [esp + 0x1c], 0x869dbb8f
mov dword [esp + 0x20], 0xaeb4babf
mov byte [esp + 0x24], 0x28
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x17
ja 0x43d36e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
xor edx, 0x432ae0b
and eax, 0x432ae0b
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
add al, 0xc9
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x18
jb 0x43d330
lea ebx, [esp + 0x10]
lea eax, [esp + 8]
push ebx
push eax
call fcn.00441a00
add esp, 8
mov eax, dword [esi]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x30
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x48]
push 6
push eax
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.00441ae0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
jmp 0x43d517
mov ecx, dword [esi]
mov dword [esp + 8], 0x14151617
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x48]
cmp eax, 3
ja 0x43d48e
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x48]
movzx eax, byte [esp + eax + 8]
lea esi, [edx + edx]
and esi, 0x5e887478
mov edi, edx
not edi
or edi, 0x2f443a3c
add edi, edx
sub edx, esi
lea edx, [edx + edi*2]
add edx, 0xaf443a3e
xor edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xd4
mov edx, dword [esp + 0x48]
mov byte [esp + edx + 8], al
inc dword [esp + 0x48]
mov eax, dword [esp + 0x48]
cmp eax, 4
jb 0x43d440
mov eax, dword [esp + 8]
mov edx, dword [0x44f3c8]
test edx, edx
je 0x43d4e8
xor esi, esi
mov edi, dword [0x44f3cc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x2ee8d390
je 0x43d4c0
inc esi
cmp edx, esi
jne 0x43d4b0
jmp 0x43d4e8
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x43d4e8
lea eax, [esp + 0x10]
push 0
push 0x1c
push eax
push 0
push dword [ebp + 8]
push ecx
push 6
push dword [0x44f3d0]
push edx
call fcn.0043f830
add esp, 0x24
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], 0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18