Function at 0x43f090
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 0x43f0b2
cmp eax, 2
je 0x43f12b
jmp 0x43f268
push 0xbbf966b4
push dword [0x451e3c]
call fcn.00444590
add esp, 8
test eax, eax
je 0x43f0ef
mov ecx, dword [esi]
test ecx, ecx
je 0x43f11f
mov dword [esp], 0
mov edx, esp
push edx
push ecx
call eax
test eax, eax
je 0x43f0fb
cmp dword [esp], 0
je 0x43f0fb
mov dword [esi + 4], 3
jmp 0x43f11f
mov dword [esi + 4], 1
jmp 0x43f268
lea eax, [esp + 0x40]
push eax
call fcn.00444eb0
add esp, 4
test al, al
je 0x43f11f
mov eax, dword [esp + 0x40]
mov ecx, 2
cmp eax, 3
je 0x43f11c
mov ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x43f268
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xaa4fad4a
mov dword [esp + 4], 0x39dbabb9
mov dword [esp + 8], 0xd2d2d7c9
mov dword [esp + 0xc], 0xce27c9c5
mov dword [esp + 0x10], 0xd6d8dac5
mov byte [esp + 0x14], 0x6c
mov dword [esp + 0x15], 0
mov word [esp + 0x19], 0
mov eax, 0x3755d93a
nop
nop
movzx ecx, byte [esp + eax - 0x3755d93a]
lea edx, [eax - 0x3755d900]
and edx, ecx
or ecx, eax
xor ecx, edx
mov edx, ecx
and edx, 0x16
xor edx, 0xc8202416
and ecx, 0x344000e9
sub ecx, edx
add ecx, 0xeb52c1dd
mov edx, ecx
and edx, 0x16
xor ecx, 0x16
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x3755d93a], cl
inc eax
cmp eax, 0x3755d955
jne 0x43f170
mov ebx, esp
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.00443550
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.00443620
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 0x43f340
mov dword [esp + 0x40], 0xf1feff90
mov word [esp + 0x44], 0
mov byte [esp + 0x46], 0
xor eax, eax
xor ecx, ecx
mov edi, eax
and edi, 0xa
mov edx, ecx
xor edx, 0xd5
add edx, edi
xor dl, byte [esp + ecx + 0x40]
add dl, 0xd7
mov byte [esp + ecx + 0x40], dl
inc ecx
add eax, 2
cmp ecx, 7
jne 0x43f280
mov ebx, dword [esp + 0x40]
mov edi, dword [esi]
mov dword [esp], 0x60676665
mov eax, 0xc11c8ee9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x3ee37117]
xor ecx, eax
add ecx, 0x3a713572
mov edx, ecx
xor edx, 0xf3
and ecx, 0xc
add ecx, ecx
sub ecx, edx
add cl, 0xf4
mov byte [esp + eax + 0x3ee37117], cl
inc eax
cmp eax, 0xc11c8eed
jne 0x43f2c0
mov eax, dword [esp]
mov ecx, dword [0x451e48]
test ecx, ecx
je 0x43f31e
xor edx, edx
mov esi, dword [0x451e4c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xba50defc
je 0x43f34a
inc edx
cmp ecx, edx
jne 0x43f310
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 dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov edx, dword [esi + edx*8 + 4]
cmp edx, eax
je 0x43f31e
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 [0x451e50]
call fcn.00441a80
add esp, 0x24
mov ecx, dword [esp]
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
jmp 0x43f31e