Function at 0x43a740
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 eax, dword [ecx + 4]
test eax, eax
je 0x43a762
cmp eax, 2
je 0x43a7db
jmp 0x43a908
push 0xbbf966b4
push dword [0x44c3ac]
call fcn.0043faf0
add esp, 8
test eax, eax
je 0x43a79f
mov ecx, dword [esi]
test ecx, ecx
je 0x43a7cf
mov dword [esp], 0
mov edx, esp
push edx
push ecx
call eax
test eax, eax
je 0x43a7ab
cmp dword [esp], 0
je 0x43a7ab
mov dword [esi + 4], 3
jmp 0x43a7cf
mov dword [esi + 4], 1
jmp 0x43a908
lea eax, [esp + 0x40]
push eax
call fcn.00440320
add esp, 4
test al, al
je 0x43a7cf
mov eax, dword [esp + 0x40]
mov ecx, 2
cmp eax, 3
je 0x43a7cc
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x43a908
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x6205670e
mov dword [esp + 4], 0x1f617913
mov dword [esp + 8], 0x7a7e7d73
mov dword [esp + 0xc], 0x61d7b0f
mov dword [esp + 0x10], 0x6e747a7f
mov byte [esp + 0x14], 0xe8
mov dword [esp + 0x15], 0
mov dword [esp + 0x18], 0
mov eax, esp
mov ecx, 0x7e2e3c54
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
xor edx, ecx
mov ebx, edx
not ebx
and ebx, 0x28
xor edx, 0x8918d257
lea ebx, [edx + ebx*2]
and edx, 1
or ebx, 1
add ebx, edx
mov byte [eax], bl
inc eax
dec ecx
cmp ecx, 0x7e2e3c38
jne 0x43a830
mov ebx, esp
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.0043eb50
add esp, 8
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
lea eax, [esp + 0x40]
push 6
push eax
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.0043ec20
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov esi, dword [ebp + 0x10]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x1c]
mov dword [edx], ecx
jmp 0x43aa10
mov dword [esp + 0x40], 0x4f4e4924
mov dword [esp + 0x44], 0
mov eax, 0x295e6572
mov ecx, 0x8d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x295e6532]
mov edx, ecx
xor edx, eax
and edx, edi
xor edx, eax
mov edi, edx
not edi
and edi, 0x3b
and edx, 0xc4
sub edx, edi
inc dl
mov byte [esp + eax - 0x295e6532], dl
inc eax
dec ecx
cmp eax, 0x295e657a
jne 0x43a930
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov dword [esp + 0x3c], eax
mov dword [esp], 0xd8dbdac5
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + esi]
mov ecx, esi
and ecx, 1
xor ecx, 0x7ea16831
mov eax, esi
and eax, 2
sub eax, ecx
mov ecx, eax
and ecx, edi
mov ebx, ecx
or ebx, 0xfd
inc ebx
mov edx, ecx
and edx, 0xffffffdd
imul edx, ebx
mov ebx, ecx
and ebx, 2
or ecx, 2
imul ecx, ebx
sub edx, ecx
add eax, edi
add eax, edx
add al, 0xf5
mov byte [esp + esi], al
inc esi
cmp esi, 4
jne 0x43a980
mov eax, dword [esp]
mov ecx, dword [0x44c3b8]
test ecx, ecx
je 0x43a9ee
xor edx, edx
mov esi, dword [0x44c3bc]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xba50defc
je 0x43aa1a
inc edx
cmp ecx, edx
jne 0x43a9e0
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], ebx
mov dword [ecx + 4], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edi
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
mov edx, dword [esi + edx*8 + 4]
cmp edx, eax
je 0x43a9ee
mov eax, esp
push 0
push dword [esp + 0x3c]
push eax
push 0
push dword [ebp + 8]
push dword [esp + 0x50]
push 6
push edx
push dword [0x44c3c0]
call fcn.0043ce20
add esp, 0x24
mov ecx, dword [esp]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43a9ee