Function at 0x43e840
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x43e88a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x43e860
sar ecx, 1
mov edx, ecx
and edx, 2
mov esi, ecx
or ecx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffd
imul esi, edx
add ecx, esi
jmp 0x43e88c
xor ecx, ecx
mov word [esp + 0x14], cx
mov edx, eax
test eax, eax
je 0x43e89c
add ecx, 2
mov edx, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov word [esp + 0x16], dx
mov dword [esp + 0x18], eax
mov dword [esp], 0x20272625
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx]
mov esi, eax
and esi, 2
mov edx, ecx
xor edx, 0x752dbdb9
add edx, esi
mov esi, edx
and esi, edi
lea ebx, [edx + edi]
not ebx
lea esi, [ebx + esi*2]
mov ebx, edx
not ebx
or esi, ebx
add esi, edx
lea esi, [esi*2 + 2]
xor edx, esi
and ebx, esi
add ebx, ebx
sub edx, ebx
add edx, edi
mov edi, edx
and edi, 1
mov ebx, 0x9d
sub ebx, edx
and edx, 0xfffffffe
add edx, 0x62
xor edx, 0xfe
and ebx, 0xfe
or ebx, edx
not ebx
add ebx, edi
mov byte [esp + ecx], bl
inc ecx
add eax, 2
cmp ecx, 4
jne 0x43e8c0
mov ebx, dword [esp]
mov eax, dword [0x44a4ac]
test eax, eax
je 0x43e97f
xor ecx, ecx
mov edx, dword [0x44a4b0]
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x43e950
inc ecx
cmp eax, ecx
jne 0x43e940
jmp 0x43e97f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x43e97f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x4c]
push 0x18
push eax
push dword [0x44a4b4]
call fcn.00439880
add esp, 0x24
mov ebx, eax
mov dword [esp], 0x539291f3
mov eax, 0xd86d7024
mov ecx, 0x27929090
movzx edi, byte [esp + eax + 0x27928fdc]
mov edx, eax
and edx, edi
add edx, edx
mov esi, edi
sub esi, edx
add esi, eax
add esi, 0xc5dccf4b
mov ebp, esi
and ebp, 1
sub edx, edi
add edx, ecx
and edx, 0xc7
and esi, 0x38
or esi, edx
xor esi, 0xc6
lea edx, [esi + ebp*2]
mov byte [esp + eax + 0x27928fdc], dl
inc eax
dec ecx
cmp eax, 0xd86d7028
jne 0x43e990
cmp ebx, dword [esp]
jne 0x43ebc0
push dword [esp + 0xc]
call fcn.00436bc0
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp], 0xd1cecfce
mov dword [esp + 4], 0
mov edx, 0x1977044d
mov edi, 0xe688fbb2
nop
nop
nop
movzx esi, byte [esp + edx - 0x1977044d]
mov ebx, edi
and ebx, 0xe000e227
mov ecx, edx
and ecx, 0x10300458
or ecx, ebx
xor ecx, esi
xor ecx, 0xe947e227
mov esi, ecx
and esi, 1
or ecx, 1
add ecx, esi
add cl, 0x7e
mov byte [esp + edx - 0x1977044d], cl
inc edx
dec edi
cmp edx, 0x19770455
jne 0x43ea10
mov ecx, dword [esp]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0x20272625
xor ebx, ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + edi + 0x10]
mov esi, ebx
and esi, 2
mov ebp, edi
xor ebp, 0x752dbdb9
add ebp, esi
mov esi, ebp
and esi, ecx
lea edx, [ecx + ebp]
not edx
lea edx, [edx + esi*2]
mov esi, ebp
not esi
or edx, esi
add edx, ebp
lea edx, [edx*2 + 2]
xor ebp, edx
and esi, edx
add esi, esi
sub ebp, esi
add ebp, ecx
mov esi, ebp
and esi, 1
mov ecx, 0x9d
sub ecx, ebp
and ebp, 0xfffffffe
add ebp, 0x62
xor ebp, 0xfe
and ecx, 0xfe
or ecx, ebp
not ecx
add ecx, esi
mov byte [esp + edi + 0x10], cl
inc edi
add ebx, 2
cmp edi, 4
jne 0x43ea70
mov ebx, dword [esp + 0x10]
mov ecx, dword [0x44a4ac]
test ecx, ecx
je 0x43eb36
xor esi, esi
mov edi, dword [0x44a4b0]
cmp dword [edi + esi*8], 0xc0a4c970
je 0x43eb00
inc esi
cmp ecx, esi
jne 0x43eaf0
jmp 0x43eb36
mov ecx, dword [edi + esi*8 + 4]
cmp ecx, ebx
je 0x43eb36
lea edx, [esp + 0xc]
lea esi, [esp + 0x14]
push edx
push dword [esp + 0x24]
push eax
push dword [esp + 0x28]
push esi
push dword [esp + 0x4c]
push 0x18
push ecx
push dword [0x44a4b4]
mov esi, eax
call fcn.00439880
add esp, 0x24
mov ebx, eax
mov eax, esi
test ebx, ebx
mov edx, dword [esp + 0x44]
js 0x43ebb7
mov esi, dword [esp + 0x40]
test esi, esi
je 0x43eb4b
mov ecx, dword [eax + 4]
mov dword [esi], ecx
cmp dword [esp + 0x48], 0
je 0x43ebb7
test edx, edx
je 0x43ebae
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
cmp edx, ecx
jb 0x43eb65
mov edx, ecx
lea esi, [eax + 0xc]
mov ecx, edx
shr ecx, 2
mov edi, dword [esp + 0x44]
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add dword [esp + 8], ecx
lea ebp, [eax + ecx]
add ebp, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov esi, ebp
mov edi, dword [esp + 8]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 8]
test dl, 1
je 0x43ebae
and edx, 2
movzx ecx, byte [ebp + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x48]
mov dword [edx], ecx
push eax
call fcn.00436c60
add esp, 4
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret