Function at 0x43c980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], 0x100000
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0x54554a4b
mov eax, 0x6e
mov ecx, 0x11
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x66]
mov edi, ecx
and edi, 0x14
mov edx, eax
and edx, 0x6b
or edx, edi
mov edi, eax
and edi, esi
xor edx, 0x14
or edx, esi
xor edx, edi
add dl, 0xda
mov byte [esp + eax - 0x66], dl
inc eax
dec ecx
cmp eax, 0x72
jne 0x43c9e0
mov eax, dword [esp + 8]
mov ecx, dword [0x44e804]
test ecx, ecx
je 0x43ca5e
xor edx, edx
mov esi, dword [0x44e808]
cmp dword [esi + edx*8], 0x3e416e49
je 0x43ca30
inc edx
cmp ecx, edx
jne 0x43ca20
jmp 0x43ca5e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x43ca5e
lea eax, [esp + 0x2c]
lea edx, [esp + 0x18]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push ecx
push dword [0x44e80c]
call fcn.0043eb30
add esp, 0x24
test eax, eax
js 0x43d162
cmp dword [ebx + 4], 0
je 0x43d0f0
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 8], 0x13131110
mov word [esp + 0xc], 0
mov ecx, 0x80b27844
mov edx, 0xbb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx + 0x7f4d87c4]
mov esi, edx
xor esi, ecx
and esi, edi
xor esi, ecx
mov edi, esi
not edi
or edi, 0x7c83a6ab
add edi, esi
or esi, 0xfcb3feab
mov eax, 0x46
sub eax, edi
sub eax, esi
lea ebx, [esi + edi]
add ebx, 0x39
and eax, 0xb7
and ebx, 0x48
sub ebx, eax
mov byte [esp + ecx + 0x7f4d87c4], bl
inc ecx
dec edx
cmp ecx, 0x80b2784a
jne 0x43cad0
mov edi, 0x7fff
cmp dword [esp], 2
je 0x43cb2c
mov edi, 0
mov eax, 0xfffeffff
je 0x43cb38
mov eax, 0x7fffffff
mov edx, dword [esp + 8]
mov ecx, edx
sar ecx, 0x1f
mov dword [esp + 0x14], eax
cmp edx, eax
mov dword [esp + 0x28], ecx
mov eax, ecx
sbb eax, edi
mov ebx, dword [esp + 0x1c]
jae 0x43d074
mov dword [esp + 0x20], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x54], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 0x24], edx
mov ecx, ebx
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x38]
push edx
call fcn.0043c4e0
mov edx, dword [esp + 0x24]
cmp eax, 0xbfffffff
ja 0x43d074
test eax, eax
js 0x43d040
cmp dword [esp + 0x60], 0x1000
jne 0x43d040
test byte [esp + 0x5c], 0x66
je 0x43d040
mov esi, dword [esp + 0x40]
cmp dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x44]
mov eax, 0
mov dword [esp + 0x38], ecx
sbb eax, ecx
jae 0x43cd54
mov dword [esp + 8], 0x54554a4b
mov eax, 0x6e
mov ebx, 0x11
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x66]
mov ecx, ebx
and ecx, 0x14
mov edx, eax
and edx, 0x6b
or edx, ecx
mov ecx, eax
and ecx, edi
xor edx, 0x14
or edx, edi
xor edx, ecx
add dl, 0xda
mov byte [esp + eax - 0x66], dl
inc eax
dec ebx
cmp eax, 0x72
jne 0x43cc10
mov eax, dword [0x44e804]
test eax, eax
je 0x43cc8a
mov ecx, dword [esp + 8]
xor edx, edx
mov edi, dword [0x44e808]
nop
cmp dword [edi + edx*8], 0x16194952
je 0x43cc60
inc edx
cmp eax, edx
jne 0x43cc50
jmp 0x43cc8a
mov eax, dword [edi + edx*8 + 4]
cmp eax, ecx
je 0x43cc8a
push 0x8000
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0xffffffffffffffff
push 4
push eax
push dword [0x44e80c]
call fcn.0043eb30
add esp, 0x1c
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 8], 0x54554a4b
mov eax, 0x6e
mov ecx, 0x11
movzx edi, byte [esp + eax - 0x66]
mov ebx, ecx
and ebx, 0x14
mov edx, eax
and edx, 0x6b
or edx, ebx
mov ebx, eax
and ebx, edi
xor edx, 0x14
or edx, edi
xor edx, ebx
add dl, 0xda
mov byte [esp + eax - 0x66], dl
inc eax
dec ecx
cmp eax, 0x72
jne 0x43ccb0
mov eax, dword [esp + 8]
mov ecx, dword [0x44e804]
test ecx, ecx
je 0x43cd10
xor edx, edx
mov edi, dword [0x44e808]
mov ebx, dword [esp + 0x1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x3e416e49
je 0x43cd16
inc edx
cmp ecx, edx
jne 0x43cd00
jmp 0x43cd44
mov ebx, dword [esp + 0x1c]
jmp 0x43cd44
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, eax
je 0x43cd44
push 4
push 0x3000
lea eax, [esp + 0x34]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 6
push ecx
push dword [0x44e80c]
call fcn.0043eb30
add esp, 0x24
test eax, eax
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x24]
js 0x43d074
mov ecx, ebx
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x3c]
push esi
push dword [esp + 0x24]
push dword [esp + 0x38]
push edx
call fcn.0043c800
test eax, eax
jns 0x43cd7d
cmp eax, 0x8000000d
jne 0x43d040
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp + 0x10]
cmp eax, edx
sbb ecx, 0
jb 0x43d040
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
call fcn.0043d1b0
add esp, 0x18
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x58], ecx
cmp eax, ecx
je 0x43d01f
mov ebx, edi
mov dword [esp + 0x64], eax
mov esi, eax
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x24]
mov eax, dword [esp]
jmp 0x43ce2c
push dword [esp + 4]
call fcn.0040c8f0
add esp, 4
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x20]
lea eax, [edi + eax*8]
mov dword [esp + 0x20], eax
mov eax, edi
add eax, esi
mov ecx, edi
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x6c]
mov dword [ecx + esi], edi
mov edi, dword [esp + 0x68]
mov dword [ecx + esi + 4], edi
add eax, 8
mov esi, dword [esp + 0x38]
add esi, 4
cmp esi, dword [esp + 0x58]
je 0x43cfdc
mov dword [esp], eax
mov dword [esp + 0x38], esi
mov esi, dword [esi]
sub esi, dword [esp + 0x18]
mov edi, esi
sar edi, 0x1f
add esi, edx
mov dword [esp + 0x6c], esi
adc edi, dword [esp + 0x28]
mov dword [esp + 0x68], edi
mov esi, ecx
not esi
and esi, eax
mov eax, dword [esp]
not eax
and eax, ecx
sub esi, eax
mov eax, dword [esp]
cmp eax, dword [esp + 0x20]
jne 0x43ce09
mov dword [esp + 4], ecx
sub eax, ecx
mov dword [esp + 0x30], eax
sar eax, 3
mov edx, eax
shr edx, 1
add edx, eax
mov eax, esi
sar eax, 3
inc eax
cmp edx, eax
ja 0x43ce83
mov edx, eax
mov eax, edx
and eax, 0xfffffff7
mov ecx, edx
and ecx, 8
mov ebx, edx
mov dword [esp + 0x20], edx
or edx, 8
imul edx, ecx
xor ecx, 8
imul ecx, eax
add edx, ecx
push edx
call fcn.0040c8e0
add esp, 4
mov edi, eax
mov edx, dword [esp + 4]
test edx, edx
je 0x43cdf0
cmp edi, edx
mov eax, dword [esp]
mov dword [esp + 0x34], edi
jbe 0x43cf86
cmp eax, edi
jbe 0x43cf86
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x43cde0
mov edx, dword [esp + 4]
lea eax, [edx + ebx]
dec eax
mov ecx, dword [esp + 0x34]
add ecx, ebx
dec ecx
mov edi, ebx
and edi, 7
je 0x43cf1a
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43cf00
add eax, edx
add ecx, edx
mov ebx, dword [esp + 0x30]
add ebx, edx
mov edx, dword [esp + 4]
sub edx, dword [esp]
cmp edx, 0xfffffff8
ja 0x43cde0
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
nop
mov edi, ebx
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x43cf30
jmp 0x43cde0
mov ebx, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 2
mov dword [esp], edx
mov eax, dword [esp]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
not ecx
or ecx, 0xfffffffc
add ecx, ebx
mov eax, dword [esp + 0x34]
lea edi, [eax + ecx]
inc edi
lea eax, [edx + ecx]
inc eax
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov edx, eax
mov dword [esp], edi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test bl, 1
je 0x43cde0
and ebx, 2
movzx eax, byte [eax + ebx]
mov ecx, dword [esp]
mov byte [ecx + ebx], al
jmp 0x43cde0
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [esp], edx
mov dword [eax + 4], edx
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x43d064
mov dword [esp + 4], ecx
cmp eax, dword [esp + 0x58]
mov esi, dword [esp + 0x14]
mov edi, ebx
je 0x43d019
push eax
call fcn.0040c8f0
add esp, 4
mov dword [esp + 8], 0
mov ebx, dword [esp + 0x1c]
jmp 0x43d044
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
add edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
adc eax, dword [esp + 0x4c]
cmp edx, esi
mov dword [esp + 0x28], eax
sbb eax, edi
jb 0x43cb80
jmp 0x43d074
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x14]
mov edi, ebx
mov ebx, dword [esp + 0x1c]
jmp 0x43d044
mov dword [esp + 8], 0x54554a4b
mov eax, 0x6e
mov ecx, 0x11
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x66]
mov edi, ecx
and edi, 0x14
mov edx, eax
and edx, 0x6b
or edx, edi
mov edi, eax
and edi, esi
xor edx, 0x14
or edx, esi
xor edx, edi
add dl, 0xda
mov byte [esp + eax - 0x66], dl
inc eax
dec ecx
cmp eax, 0x72
jne 0x43d090
mov eax, dword [0x44e804]
test eax, eax
je 0x43d162
mov ecx, dword [esp + 8]
xor edx, edx
mov esi, dword [0x44e808]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x16194952
je 0x43d138
inc edx
cmp eax, edx
jne 0x43d0e0
jmp 0x43d162
push 0xbbf966b4
push dword [0x44e7f8]
call fcn.00441720
add esp, 8
test eax, eax
je 0x43d16f
mov ecx, dword [ebx]
test ecx, ecx
je 0x43ca70
mov dword [esp + 8], 0
lea edx, [esp + 8]
push edx
push ecx
call eax
test eax, eax
je 0x43d17b
cmp dword [esp + 8], 0
je 0x43d17b
mov dword [ebx + 4], 3
jmp 0x43ca70
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x43d162
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x18]
push 0x8000
push ecx
push edx
push 0xffffffffffffffff
push 4
push eax
push dword [0x44e80c]
call fcn.0043eb30
add esp, 0x1c
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [ebx + 4], 1
jmp 0x43ca70
lea eax, [esp + 0x48]
push eax
call fcn.00441e50
add esp, 4
test al, al
je 0x43ca70
mov eax, dword [esp + 0x48]
mov ecx, 2
cmp eax, 3
je 0x43d1a0
mov ecx, eax
mov dword [ebx + 4], ecx
jmp 0x43ca70