Function at 0x43f490
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [esp + 0xc], 0x2050407
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x43f4ee
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0xb8c4b231
xor eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0xc9
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x43f4c0
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0xc]
mov eax, dword [0x449d34]
test eax, eax
je 0x43f548
xor ecx, ecx
mov edx, dword [0x449d38]
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x9b15aa7a
je 0x43f520
inc ecx
cmp eax, ecx
jne 0x43f510
jmp 0x43f548
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43f548
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 1
push ebx
push edi
push 6
push dword [0x449d3c]
push eax
call fcn.0043c4a0
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x43f7b1
push dword [esp + 0x14]
call fcn.0043a080
add esp, 4
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 0x2050407
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x43f5be
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
add eax, 0xb8c4b231
xor eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0xc9
mov edx, dword [esp]
mov byte [esp + edx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x43f590
mov esi, dword [esp + 0xc]
mov eax, dword [0x449d34]
test eax, eax
je 0x43f61b
xor edx, edx
mov ebp, dword [0x449d38]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + edx*8], 0x9b15aa7a
je 0x43f5f1
inc edx
cmp eax, edx
jne 0x43f5e0
jmp 0x43f61b
mov edx, dword [ebp + edx*8 + 4]
cmp edx, esi
je 0x43f61b
lea eax, [esp + 0x14]
push eax
push ecx
mov eax, dword [esp + 0xc]
push eax
push 1
push ebx
push edi
push 6
push dword [0x449d3c]
push edx
call fcn.0043c4a0
add esp, 0x24
mov esi, eax
test esi, esi
js 0x43f7a5
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x43f71a
mov edi, dword [esp + 0x38]
test edi, edi
je 0x43f70f
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov ebp, dword [edx]
cmp ebp, eax
jb 0x43f650
mov ebp, eax
test ebp, ebp
je 0x43f70a
mov ebx, dword [esp + 4]
add ebx, 0x14
mov eax, ebp
and ebp, 3
je 0x43f6a0
mov dword [esp + 8], eax
xor edx, edx
nop
nop
nop
nop
movzx eax, word [ebx]
xor ecx, ecx
test ax, ax
setne cl
lea ebx, [ebx + ecx*2]
mov word [edi], ax
add edi, 2
inc edx
cmp ebp, edx
jne 0x43f670
mov eax, dword [esp + 8]
mov ebp, eax
sub ebp, edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
cmp eax, 4
jae 0x43f6b0
jmp 0x43f70a
mov ebp, eax
cmp eax, 4
jb 0x43f70a
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [ebx]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [ebx + ecx*2]
mov word [edi], ax
movzx eax, word [ebx + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea ebx, [edx + ecx*2]
mov word [edi + 2], ax
movzx eax, word [edx + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [ebx + ecx*2]
mov word [edi + 4], ax
movzx ecx, word [ebx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [edi + 6], cx
add edi, 8
lea ebx, [edx + eax*2]
add ebp, 0xfffffffc
jne 0x43f6b0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov word [edi], 0
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
shr eax, 1
mov dword [edx], eax
mov edi, dword [esp + 0x48]
test ecx, ecx
je 0x43f72b
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test edi, edi
je 0x43f7a5
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x43f79c
mov eax, dword [edi]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jb 0x43f746
mov eax, ecx
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 8]
add edx, ecx
mov ecx, eax
shr ecx, 2
mov ebx, eax
and ebx, 0xfffffffc
mov edi, ebp
add ebp, ebx
mov dword [esp + 8], ebp
add ebx, edx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov ecx, eax
xor ecx, 0xfffffffc
mov edx, eax
or edx, 3
and edx, ecx
mov ecx, edx
shr ecx, 1
mov ebp, ebx
mov edi, dword [esp + 8]
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ecx, dword [esp + 8]
test al, 1
mov edi, dword [esp + 0x48]
je 0x43f79c
and edx, 0xfffffffe
movzx eax, byte [ebx + edx]
mov byte [ecx + edx], al
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
push dword [esp + 4]
call fcn.0043a100
add esp, 4
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret